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