- 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

@ -491,7 +491,7 @@ state_call_params(X) ::= LPAREN func_expr_list(A) RPAREN. { X = A; /*X-overwrite
/* Definition of a default class instance. */
%type default_def {ZCC_CompoundStmt *}
default_def(X) ::= DEFAULT compound_statement(A). { X = A; /*X-overwrites-A*/ }
default_def(X) ::= DEFAULT compound_statement(A). { X = A; /*X-overwrites-A*/ X->NodeType = AST_Default; }
/* Type names */
%type type_name {ZCC_BasicType *}