[ Module Hierarchy
| Class Hierarchy ]
Class Hierarchy
- object:
The most base type
- exceptions.BaseException:
Common base class for all exceptions
- exceptions.Exception:
Common base class for all non-exit exceptions.
- pyparsing.OnlyOnce:
Wrapper for parse actions, to ensure they are only called once.
- pyparsing.ParseResults:
Structured parse results, to provide multiple means of access to
the parsed data:
- pyparsing.ParserElement:
Abstract base level parser element class.
- pyparsing.ParseElementEnhance:
Abstract subclass of
ParserElement
, for combining and
post-processing parsed tokens.
- pyparsing.ParseExpression:
Abstract subclass of ParserElement, for combining and
post-processing parsed tokens.
- pyparsing.And:
Requires all given
ParseExpression
s to be found in the
given order.
- pyparsing.Each:
Requires all given
ParseExpression
s to be found, but
in any order.
- pyparsing.MatchFirst:
Requires that at least one
ParseExpression
is found.
- pyparsing.Or:
Requires that at least one
ParseExpression
is found.
- pyparsing.Token:
Abstract
ParserElement
subclass, for defining atomic
matching patterns.
- pyparsing.CharsNotIn:
Token for matching words composed of characters *not* in a given
set (will include whitespace in matched characters if not listed in
the provided exclusion set - see example).
- pyparsing.Empty:
An empty token, will always match.
- pyparsing.Keyword:
Token to exactly match a specified string as a keyword, that is, it
must be immediately followed by a non-keyword character.
- pyparsing.Literal:
Token to exactly match a specified string.
- pyparsing.NoMatch:
A token that will never match.
- pyparsing.QuotedString:
Token for matching strings that are delimited by quoting
characters.
- pyparsing.Regex:
Token for matching strings that match a given regular expression.
- pyparsing.White:
Special matching class for matching whitespace.
- pyparsing.Word:
Token for matching words composed of allowed character sets.
- pyparsing._PositionToken
- pyparsing.GoToColumn:
Token to advance to a specific column of input text; useful for
tabular report scraping.
- pyparsing.LineEnd:
Matches if current position is at the end of a line within the
parse string
- pyparsing.LineStart:
Matches if current position is at the beginning of a line within
the parse string
- pyparsing.StringEnd:
Matches if current position is at the end of the parse string
- pyparsing.StringStart:
Matches if current position is at the beginning of the parse string
- pyparsing.WordEnd:
Matches if the current position is at the end of a Word, and is not
followed by any character in a given set of
wordChars
(default=printables
).
- pyparsing.WordStart:
Matches if the current position is at the beginning of a Word, and
is not preceded by any character in a given set of
wordChars
(default=printables
).
- pyparsing.Regex.compiledREtype:
Compiled regular expression objects
- pyparsing.pyparsing_common:
Here are some common low-level expressions that may be useful in
jump-starting parser development: