aboutsummaryrefslogtreecommitdiff
path: root/argot.lisp
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-07-29 09:19:39 -0700
committercolin <colin@cicadas.surf>2023-07-29 09:19:39 -0700
commite8dfcee463d771c21c513dea4af30c5c51a2525e (patch)
tree32b67d39f58783bb5f827344c53c0e33a00ae357 /argot.lisp
parentfbfa64ec69870d424d3f94bd87380efe565b64b5 (diff)
more of the same
Diffstat (limited to 'argot.lisp')
-rw-r--r--argot.lisp10
1 files changed, 5 insertions, 5 deletions
diff --git a/argot.lisp b/argot.lisp
index 99da9bd..4c1dfdc 100644
--- a/argot.lisp
+++ b/argot.lisp
@@ -72,23 +72,23 @@ and it returns VAR in that case."
(defun parse-rule-def (ruledef)
(handler-case
(ematch ruledef
- ((guard (list lhs :-> pattern)
+ ((guard (list lhs :match pattern)
(and (nonterminal? lhs) (pattern? pattern)))
(list lhs pattern (collect-vars pattern) nil nil))
- ((guard (list lhs :-> pattern :if check)
+ ((guard (list lhs :match pattern :if check)
(and (nonterminal? lhs) (pattern? pattern)))
(list lhs pattern (collect-vars pattern) check nil))
- ((guard (list lhs :-> pattern :then action)
+ ((guard (list lhs :match pattern :then action)
(and (nonterminal? lhs) (pattern? pattern)))
(list lhs pattern (collect-vars pattern) nil action))
- ((guard (list lhs :-> pattern :then action :if check)
+ ((guard (list lhs :match pattern :then action :if check)
(and (nonterminal? lhs) (pattern? pattern)))
(list lhs pattern (collect-vars pattern) check action))
- ((guard (list lhs :-> pattern :if check :then action)
+ ((guard (list lhs :match pattern :if check :then action)
(and (nonterminal? lhs) (pattern? pattern)))
(list lhs pattern (collect-vars pattern) check action)))
(trivia::match-error ()