diff options
| author | kartofen <kartofen.mail.0@protonmail.com> | 2025-08-03 23:53:24 +0300 |
|---|---|---|
| committer | kartofen <kartofen.mail.0@protonmail.com> | 2025-08-03 23:53:24 +0300 |
| commit | 1c83c514c8108fccfec9764da5e4563b98eb871b (patch) | |
| tree | ccc6657a0b24900a17cf90cfd0676c8123492566 /lr-parser.c | |
| parent | 059ee9afcc575572f87f224c93288e2835cd1a52 (diff) | |
calc implemented in my grammar
Diffstat (limited to 'lr-parser.c')
| -rw-r--r-- | lr-parser.c | 1 |
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: |
