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