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