- give the 'default' block its own node type in the AST.

- group a class's body the same way as the global AST. Only partially implemented so far so that constants can be processed.
This commit is contained in:
Christoph Oelckers 2016-10-08 15:27:20 +02:00
commit d139ee9f68
6 changed files with 138 additions and 24 deletions

View file

@ -93,6 +93,7 @@ enum EZCCTreeNodeType
AST_Declarator,
AST_VarDeclarator,
AST_FuncDeclarator,
AST_Default,
NUM_AST_NODE_TYPES
};
@ -463,6 +464,10 @@ struct ZCC_FuncDeclarator : ZCC_Declarator
ZCC_Statement *Body;
};
struct ZCC_Default : ZCC_CompoundStmt
{
};
typedef ZCC_ExprConstant *(*EvalConst1op)(ZCC_ExprConstant *);
typedef ZCC_ExprConstant *(*EvalConst2op)(ZCC_ExprConstant *, ZCC_ExprConstant *, FSharedStringArena &);