Abstract subclass of ParserElement, for combining and post-processing
parsed tokens.
|
__init__(self,
exprs,
savelist=False)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
|
leaveWhitespace(self)
Extends leaveWhitespace defined in base class, and also invokes
leaveWhitespace on all contained expressions. |
source code
|
|
|
ignore(self,
other)
Define expression to be ignored (e.g., comments) while doing pattern
matching; may be called repeatedly, to define multiple comment or
other ignorable patterns. |
source code
|
|
|
|
|
|
|
setResultsName(self,
name,
listAllMatches=False)
Define name for referencing matching tokens as a nested attribute of
the returned parse results. |
source code
|
|
|
validate(self,
validateTrace=[ ] )
Check defined expressions for valid structure, check for infinite
recursive definitions. |
source code
|
|
Inherited from ParserElement :
__add__ ,
__and__ ,
__call__ ,
__eq__ ,
__getattr__ ,
__hash__ ,
__invert__ ,
__mul__ ,
__ne__ ,
__or__ ,
__radd__ ,
__rand__ ,
__repr__ ,
__req__ ,
__rmul__ ,
__rne__ ,
__ror__ ,
__rsub__ ,
__rxor__ ,
__sub__ ,
__xor__ ,
addParseAction ,
checkRecursion ,
copy ,
getException ,
parseFile ,
parseImpl ,
parseString ,
parseWithTabs ,
postParse ,
preParse ,
scanString ,
searchString ,
setBreak ,
setDebug ,
setDebugActions ,
setFailAction ,
setName ,
setParseAction ,
setWhitespaceChars ,
suppress ,
transformString ,
tryParse
Inherited from object :
__delattr__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__
|