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