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