summaryrefslogtreecommitdiff
path: root/parser.y
diff options
context:
space:
mode:
Diffstat (limited to 'parser.y')
-rw-r--r--parser.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/parser.y b/parser.y
index 78bf123..48bd13f 100644
--- a/parser.y
+++ b/parser.y
@@ -69,7 +69,7 @@ void yyerror(const char *msg)
%type <inst> inst
%%
-input: %empty
+input: line
| input line
;
@@ -151,6 +151,5 @@ inst: T_ADD
;
eol: T_EOL
- | T_SPACE END
- | END
+ | T_SPACE T_EOL
;