From 26ab73172038366a3796b7cac5ebd82e7a4a12e0 Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 19 Apr 2024 09:04:10 -0700 Subject: Syntax changes --- obwyn.lisp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/obwyn.lisp b/obwyn.lisp index 19e2501..2fddfca 100644 --- a/obwyn.lisp +++ b/obwyn.lisp @@ -2,7 +2,7 @@ (:use #:cl) (:local-nicknames (#:a #:alexandria-2)) - (:export #:<- #:<~ #:>> #:)) (in-package :obwyn) @@ -85,7 +85,7 @@ (defun literals-equal (a b) (and (symbolp a) (symbolp b) (string-equal a b))) -(argot:deflanguage >> (:literals= #'literals-equal) +(argot:deflanguage do> (:literals= #'literals-equal) ( :match (:seq (:* ) (:eof)) :then (expand-clauses (first ))) @@ -98,13 +98,13 @@ )) ( - :match (:seq (:= :<-) (:item)) + :match (:seq (:= :=) (:item)) :then (destructuring-bind (bindings _ form) (declare (ignore _)) (list :mvbind bindings form))) ( - :match (:seq (:@ var (:item)) (:= : - :match (:seq (:= :<~) (:item)) + :match (:seq (:= :match=) (:item)) :then (destructuring-bind (bindings _ form) (declare (ignore _)) (list :dsbind bindings form))) @@ -126,11 +126,11 @@ :note "An list that might be passed as the first argument to DESTRUCTURING-BIND.") ( - :match (:seq (:= :?) (:item)) + :match (:seq (:or= :when :?) (:item)) :then (list :when nil (second ))) ( :match (:@ simple (:item)) - :if (not (member simple '(:<~ :<- :? :