- 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:
parent
82ac2081b6
commit
d139ee9f68
6 changed files with 138 additions and 24 deletions
|
|
@ -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 &);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue