Accept name constants in the grammar

This commit is contained in:
Randy Heit 2013-09-10 21:56:13 -05:00
commit 33e835b58d
3 changed files with 18 additions and 0 deletions

View file

@ -537,6 +537,10 @@ static void PrintExprConstant(FLispString &out, ZCC_TreeNode *node)
{
out.AddFloat(enode->DoubleVal);
}
else if (enode->Type == TypeName)
{
out.AddName(ENamedName(enode->IntVal));
}
else if (enode->Type->IsKindOf(RUNTIME_CLASS(PInt)))
{
out.AddInt(enode->IntVal, static_cast<PInt *>(enode->Type)->Unsigned);