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