aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parser.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.y b/src/parser.y
index c225b57..5a4c409 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -49,9 +49,11 @@ input
line
: EOL { $$.eqn = NULL; }
- | exp EOL { $$ = $1; }
+ | exp eol { $$ = $1; }
;
+eol: EOL | YYEOF;
+
exp
: IDENT {
$$.eqn = xmalloc(sizeof(eqn_t));