aboutsummaryrefslogtreecommitdiff
path: root/lr-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lr-parser.c')
-rw-r--r--lr-parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lr-parser.c b/lr-parser.c
index 621a9e7..bca8a52 100644
--- a/lr-parser.c
+++ b/lr-parser.c
@@ -60,6 +60,7 @@ int lr_parser(intptr_t *value)
push(a_goto.arg);
break;
case ACTION_ACCEPT:
+ for(size_t i = 0; i < 3; i++) push(0); // todo: better fix for reducing the final production expecting an END_INPUT on the stack
*value = semantic_actions[0](stack_head);
return 0;
case ACTION_NOT_SET: