The function
single-form-form-parser
is the predefined parser for
defvar
,
defparameter
,
defconstant
,
define-symbol-macro
,
define-compiler-macro
,
deftype
,
defsetf
,
define-setf-expander
,
defpackage
,
defclass
,
define-condition
and
define-method-combination
top level forms. It is also the parser for various LispWorks extensions such as defsystem. It returns a dspec of length 2.
You can define it to be the parser for your defining forms. using define-form-parser.