From 9289f299cffe96f87483064e71c60fb7da0cb0ad Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 29 Jul 2023 10:22:44 -0700 Subject: Add better grammar parsing for subexpressions --- examples/calc.lisp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/calc.lisp b/examples/calc.lisp index 4d8766a..d3140ee 100644 --- a/examples/calc.lisp +++ b/examples/calc.lisp @@ -6,7 +6,7 @@ (in-package #:argot.examples.calc) (deflanguage calc (:documentation "A calculator language") - ( + ( :match (:or (:seq (:eof)) (:seq (:eof)) @@ -16,9 +16,7 @@ ( :match (:or )) ( - :match (:item) - :if listp - :then (argot:parse calc )) + :match (:{} calc)) ( :match (:item) :if numberp) -- cgit v1.2.3