diff options
-rw-r--r-- | source/mod_student/parser.mly | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/mod_student/parser.mly b/source/mod_student/parser.mly index 7f9174a..ab095ef 100644 --- a/source/mod_student/parser.mly +++ b/source/mod_student/parser.mly @@ -61,8 +61,6 @@ let mkTag = file: | declarations= list(func) EOF { ModuleDefinition {global_declarations=declarations } } - | EOF - { ModuleDefinition {global_declarations=[] } } func: | id=identifier LPAREN parameters=separated_list(COMMA,var_decl) RPAREN return=return_type body=option(statement_block) @@ -159,6 +157,7 @@ expression_base: | node=expression_integer { node } | node=expression_char { node } | node=expression_string { node } + | node=expression_bool { node } | node=expression_struct { node } | LPAREN node=expression RPAREN { node } expression_identifier: |