Home | Trees | Index | Help |
---|
Package ZestyParser :: Module Tokens |
|
Version: 0.6.0
Author: Adam Atlas
Contact: adam@atlas.st
Copyright: Copyright 2006-2007 Adam Atlas. Released under the terms of the GNU General Public License.
Classes | |
---|---|
AbstractToken |
Base class from which most tokens defined in this module derive. |
Basic Tokens | |
RawToken |
A class whose instances match only a particular string. |
Token |
A class whose instances match Python regular expressions. |
TakeToken |
A class whose instances match and return a given number of characters
from the parser's data . |
Complex Tokens | |
CompositeToken |
A class whose instances match any of a number of tokens. |
TokenSequence |
A class whose instances match a sequence of tokens. |
TokenSeries |
A particularly versatile class whose instances match one token multiple times. |
Special Tokens | |
Defer |
A token which takes a callable (generally a lambda) which takes no arguments and itself returns a token. |
Default |
A class whose instances always return desc and do not advance the parser's
cursor. |
TokenSequence Flags | |
Omit |
See TokenSequence . |
Skip |
See TokenSequence . |
Variable Summary | |
---|---|
Special Tokens | |
_EOF |
EOF : A token which matches (and returns None ) if the parser is
at the end of its data sequence. |
Default |
EmptyToken : A Default instance initialized with the empty
string. |
Variable Details |
---|
EOFA token which matches (and returns In ZestyParser, a token object must, at minimum, be a callable taking
a Tokens module contains a variety of
predefined token classes (instances of which are callable) and other
valid token objects which should cover most parsing situations.
|
EmptyTokenADefault instance initialized with the empty
string.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Jan 11 23:26:09 2007 | http://epydoc.sf.net |