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