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