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