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