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