From 9beaef57b74cd9246482d684e04a4b3fbda9b262 Mon Sep 17 00:00:00 2001 From: colin Date: Thu, 18 Apr 2024 23:34:28 -0700 Subject: added > #:>> (:literals= #'literals-equal) +(argot:deflanguage >> (:literals= #'literals-equal) ( :match (:seq (:* ) (:eof)) :then (expand-clauses (first ))) @@ -78,14 +93,22 @@ ( :match (:or + + )) ( :match (:seq (:= :<-) (:item)) :then (destructuring-bind (bindings _ form) (declare (ignore _)) - (list :multiple-value-bind bindings form))) + (list :mvbind bindings form))) + ( + :match (:seq (:@ var (:item)) (:= : :match (:item) :if values-binding-p @@ -95,15 +118,19 @@ :match (:seq (:= :<~) (:item)) :then (destructuring-bind (bindings _ form) (declare (ignore _)) - (list :destructuring-bind bindings form))) + (list :dsbind bindings form))) ( :match (:item) :if destructuring-bind-list-p :note "An list that might be passed as the first argument to DESTRUCTURING-BIND.") + + ( + :match (:seq (:= :?) (:item)) + :then (list :unless nil (second ))) ( :match (:@ simple (:item)) - :if (not (member simple '(:<~ :<-))) + :if (not (member simple '(:<~ :<- :? :