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