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