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