The function
name-only-form-parser
is the predefined parser for
defun
,
defmacro
, and
defgeneric
forms, returning the dspec-name.
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)))