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