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