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