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