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