diff options
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))) |