All Manuals > LispWorks User Guide and Reference Manual > 7 Dspecs: Tools for Handling Definitions > 7.9 Users of location information

NextPrevUpTopContentsIndex

7.9.2 Using pre-defined form parsers

LispWorks provides form parsers name-only-form-parser, single-form-form-parser and single-form-with-options-form-parser. You can use single-form-with-options-form-parser as the parser for my-defun definitions (see Dspec aliases), like this:

(dspec:define-form-parser (my-defun
   (:parser dspec:single-form-with-options-form-parser)))

This allows the Editor to locate definitions like:

(my-defun (foo x y)
  (+ x y))

You can identify the form parser defined for a dspec class using get-form-parser.


LispWorks User Guide and Reference Manual - 21 Dec 2011

NextPrevUpTopContentsIndex