From 80daf736ecced4bd615747630abdfc2fd3cfb75c Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 24 Aug 2013 20:28:26 -0500 Subject: [PATCH] Accept enums and structs defined at global scope --- src/zscript/zcc-parse.lemon | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zscript/zcc-parse.lemon b/src/zscript/zcc-parse.lemon index bb85f30160..2d6eb131fb 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 ::= .