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