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