The function name-only-form-parser
is a predefined form parser for use with define-form-parser. The parser consumes one subform and returns it.
name-only-form-parser
can be used for function definitions where the function name is an abbreviation for the full dspec. It is the predefined parser for defun
, defmacro
and defgeneric
forms.
You can define it to be the parser for your defining forms. using define-form-parser.
(defmacro my-definer (name &body body)
`(defun ,name (x)
,@body))
(dspec:define-form-parser
(my-definer (:parser
dspec:name-only-form-parser)))
LispWorks User Guide and Reference Manual - 20 Sep 2017