| Home | Trees | Index | Help |
|
|---|
| Module pyparsing :: Class ParseExpression |
|
object--+ |ParserElement--+ | ParseExpression
And,
MatchFirst,
Or| Method Summary | |
|---|---|
__init__(self,
exprs,
savelist)
| |
__getitem__(self,
i)
| |
__str__(self)
| |
append(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. | |
leaveWhitespace(self)
| |
Define name for referencing matching tokens as a nested attribute of the returned parse results. | |
streamline(self)
| |
Check defined expressions for valid structure, check for infinite recursive definitions. | |
Inherited from ParserElement:
__add__,
__invert__,
__or__,
__radd__,
__repr__,
__ror__,
__rxor__,
__xor__,
checkRecursion,
parse,
parseFile,
parseImpl,
parseString,
parseWithTabs,
postParse,
preParse,
scanString,
setDebug,
setName,
setParseAction,
skipIgnorables,
suppress,
transformString,
tryParse
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
| |
| Method Details |
|---|
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.
|
setResultsName(self, name, listAllMatches=False)Define name for referencing matching tokens as a nested attribute of the returned parse results. NOTE: this returns a *copy* of the original ParseElement object; this is so that the client can define a basic element, such as an integer, and reference it in multiple places with different names.
|
validate(self, validateTrace=[])Check defined expressions for valid structure, check for infinite recursive definitions.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Sep 27 00:24:58 2004 | http://epydoc.sf.net |