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