diff options
author | colin <colin@cicadas.surf> | 2023-07-19 06:58:45 -0700 |
---|---|---|
committer | colin <colin@cicadas.surf> | 2023-07-19 06:58:45 -0700 |
commit | 726468c883e75b883a440216e2fd0742f357615a (patch) | |
tree | bc81993c855868c0fa2f48c7758110face57df3a /argot.lisp | |
parent | fbe7ae96e394e87e0dfa890e7419064ef3525cfc (diff) |
Change: adding whole rule match to bindings for action application
Diffstat (limited to 'argot.lisp')
-rw-r--r-- | argot.lisp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -225,7 +225,8 @@ any pattern fails the whole parse fails." (let ((*bindings* nil)) (try-parse (result) (parse-pattern (rule-pattern rule)) (if (rule-action rule) - (succeed (funcall (rule-action rule) *bindings*)) + (succeed (funcall (rule-action rule) + (acons nonterminal result *bindings*))) (succeed result)))) (fail))) |