BlockIt
|
Public Member Functions | |
def | __init__ |
def | __getitem__ |
def | append |
def | leaveWhitespace |
def | ignore |
def | __str__ |
def | streamline |
def | setResultsName |
def | validate |
Public Attributes | |
exprs | |
callPreparse | |
strRepr | |
skipWhitespace |
Abstract subclass of ParserElement, for combining and post-processing parsed tokens.
Definition at line 2215 of file pyparsing.py.
def blockit::external::pyparsing::ParseExpression::__init__ | ( | self, | |
exprs, | |||
savelist = False |
|||
) |
Reimplemented in blockit::external::pyparsing::And, blockit::external::pyparsing::Or, blockit::external::pyparsing::MatchFirst, and blockit::external::pyparsing::Each.
Definition at line 2217 of file pyparsing.py.
def blockit::external::pyparsing::ParseExpression::__getitem__ | ( | self, | |
i | |||
) |
Definition at line 2230 of file pyparsing.py.
def blockit::external::pyparsing::ParseExpression::__str__ | ( | self | ) |
Reimplemented from blockit::external::pyparsing::ParserElement.
Reimplemented in blockit::external::pyparsing::And, blockit::external::pyparsing::Or, blockit::external::pyparsing::MatchFirst, and blockit::external::pyparsing::Each.
Definition at line 2259 of file pyparsing.py.
def blockit::external::pyparsing::ParseExpression::append | ( | self, | |
other | |||
) |
Definition at line 2233 of file pyparsing.py.
def blockit::external::pyparsing::ParseExpression::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.
Reimplemented from blockit::external::pyparsing::ParserElement.
Definition at line 2247 of file pyparsing.py.
def blockit::external::pyparsing::ParseExpression::leaveWhitespace | ( | self | ) |
Extends leaveWhitespace defined in base class, and also invokes leaveWhitespace on all contained expressions.
Reimplemented from blockit::external::pyparsing::ParserElement.
Definition at line 2238 of file pyparsing.py.
def blockit::external::pyparsing::ParseExpression::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 ParserElement 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.
Reimplemented from blockit::external::pyparsing::ParserElement.
Definition at line 2301 of file pyparsing.py.
def blockit::external::pyparsing::ParseExpression::streamline | ( | self | ) |
Reimplemented from blockit::external::pyparsing::ParserElement.
Definition at line 2269 of file pyparsing.py.
def blockit::external::pyparsing::ParseExpression::validate | ( | self, | |
validateTrace = [] |
|||
) |
Check defined expressions for valid structure, check for infinite recursive definitions.
Reimplemented from blockit::external::pyparsing::ParserElement.
Definition at line 2305 of file pyparsing.py.
Reimplemented from blockit::external::pyparsing::ParserElement.
Reimplemented in blockit::external::pyparsing::And.
Definition at line 2217 of file pyparsing.py.
Definition at line 2217 of file pyparsing.py.
Reimplemented from blockit::external::pyparsing::ParserElement.
Reimplemented in blockit::external::pyparsing::And, and blockit::external::pyparsing::Each.
Definition at line 2239 of file pyparsing.py.
Reimplemented from blockit::external::pyparsing::ParserElement.
Reimplemented in blockit::external::pyparsing::And, blockit::external::pyparsing::Or, blockit::external::pyparsing::MatchFirst, and blockit::external::pyparsing::Each.
Definition at line 2233 of file pyparsing.py.