diff --git a/src/zscript/zcc-parse.lemon b/src/zscript/zcc-parse.lemon index bb85f3016..2d6eb131f 100644 --- a/src/zscript/zcc-parse.lemon +++ b/src/zscript/zcc-parse.lemon @@ -79,6 +79,8 @@ translation_unit(X) ::= error. { X = NULL; } %type external_declaration {ZCC_TreeNode *} external_declaration(X) ::= class_definition(A). { X = A; } +external_declaration(X) ::= struct_def(A). { X = A; } +external_declaration(X) ::= enum_def(A). { X = A; } /* Optional bits. */ opt_semicolon ::= .