next up previous contents
Next: The fun-matcher class Up: The matcher API Previous: The matcher API   Contents


The matcher class

All matchers are of the matcher class.

Slots:

how-many, initarg :how-many--a symbol indicating how many times the matcher can match children of its parent tag. One of:

  1. :one--matches one
  2. :one-or-more--matches one or more
  3. :zero-or-more--matches zero or more
  4. :zero-or-one--matches zero or one (an optional matcher, in other words)

name, initarg :name--a string or other data type specifying the name of the matcher, used in error reporting and debugging.

The base matcher class is not much good for real use. For actual matching, you must subclass it.



root 2004-10-26