Home | Trees | Index | Help |
---|
Package ZestyParser :: Module Tokens :: Class CompositeToken |
|
object
--+ |AbstractToken
--+ |ListReplacing
--+ | CompositeToken
Method Summary | |
---|---|
__call__(self,
parser,
origCursor)
| |
__ior__(self,
other)
| |
Allows you to construct CompositeToken s with the | operator. | |
__str__(self)
| |
Inherited from AbstractToken | |
| |
Allows you to construct TokenSequence s with the + operator. | |
| |
| |
| |
| |
Allows you to construct TokenSeries with the * operator. | |
| |
Allows you to construct TokenSeries with the * operator. | |
Convenience overloading for setting the callback of a token whose initializer you
do not call directly, such as the result of combining tokens with + or | . | |
| |
Allows you to construct TokenSequence s with the - operator,
automatically padded with Whitespace . | |
Overloading for setting the failMessage of a token. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle |
Instance Variable Summary | |
---|---|
list | desc : A list of token objects. |
Inherited from AbstractToken | |
NoneType |
callback : An optional callable which, if not None, will be called whenever an
instance matches successfully. |
NoneType |
to : An optional callable which, if not None, will be called in the same
manner as a callback (after any callback and before returning to the
parser instance), but will be passed only one argument: the data matched
(or returned by the callback, if any). |
Class Variable Summary | |
---|---|
Inherited from AbstractToken | |
NoneType |
failMessage = None |
NoneType |
name = None |
Method Details |
---|
__or__(self,
other)
Allows you to construct |
Instance Variable Details |
---|
descA list of token objects.
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Apr 26 01:32:22 2007 | http://epydoc.sf.net |