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