Next Prev Up Top Contents Index

name-only-form-parser

Function
Summary

A pre-defined form parser.

Package

dspec

Signature

name-only-form-parser top-level-form => dspec

Arguments

top-level-form

A top level defining form.

Values

dspec

A dspec.

Description

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.

Example
(defmacro my-definer (name &body body)
  `(defun ,name (x)
     ,@body))
 
(dspec:define-form-parser 
    (my-definer (:parser 
                 dspec:name-only-form-parser)))
See also

define-form-parser


LispWorks Reference Manual - 13 Jun 2003

Next Prev Up Top Contents Index