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