Basic constructor macro for tree-list-tuple2 structures.
(make-tree-list-tuple2 [:1st <1st>] [:2nd <2nd>])
This is the usual way to construct tree-list-tuple2 structures. It simply conses together a structure with the specified fields.
This macro generates a new tree-list-tuple2 structure from scratch. See also change-tree-list-tuple2, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro abnf::make-tree-list-tuple2 (&rest args) (std::make-aggregate 'abnf::tree-list-tuple2 args '((:1st) (:2nd)) 'abnf::make-tree-list-tuple2 nil))
Function:
(defun abnf::tree-list-tuple2 (1st 2nd) (declare (xargs :guard (and (abnf::tree-listp 1st) (abnf::tree-listp 2nd)))) (declare (xargs :guard t)) (let ((__function__ 'abnf::tree-list-tuple2)) (declare (ignorable __function__)) (b* ((1st (mbe :logic (abnf::tree-list-fix 1st) :exec 1st)) (2nd (mbe :logic (abnf::tree-list-fix 2nd) :exec 2nd))) (list (cons '1st 1st) (cons '2nd 2nd)))))