Accept name constants in the grammar
This commit is contained in:
parent
b6e525d935
commit
33e835b58d
3 changed files with 18 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue