diff options
| author | kartofen <kartofen.mail.0@protonmail.com> | 2025-07-24 23:43:25 +0300 |
|---|---|---|
| committer | kartofen <kartofen.mail.0@protonmail.com> | 2025-07-24 23:43:25 +0300 |
| commit | 059ee9afcc575572f87f224c93288e2835cd1a52 (patch) | |
| tree | 07c315c5bfa192722e4bfb974b1df651089fbacc /lr-parser.c | |
| parent | 1d6f6e7c6a07832b3524871fdec86f5329736598 (diff) | |
actually parsing grammar and generating a def.c file
Diffstat (limited to 'lr-parser.c')
| -rw-r--r-- | lr-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lr-parser.c b/lr-parser.c index 3b6be84..621a9e7 100644 --- a/lr-parser.c +++ b/lr-parser.c @@ -60,7 +60,7 @@ int lr_parser(intptr_t *value) push(a_goto.arg); break; case ACTION_ACCEPT: - *value = *(stack_head-1); + *value = semantic_actions[0](stack_head); return 0; case ACTION_NOT_SET: default: |
