Trees | Indices | Help |
---|
|
Classes for nodes in the Expression tree. Expression |--- Any - match (or don't match) a set of characters |--- AnyEol - match any newline representation (" ", " " or " ") |--- Assert - used for positive and negative lookahead assertions |--- AtBeginning - match the beginning of a line |--- AtEnd - match the end of a line |--- Debug - print a debug message |--- Dot - match any character except newline |--- Group - give a group name to an expression |--- GroupRef - match a previously identified expression |--- Literal - match (or don't match) a single character |--- MaxRepeat - greedy repeat of an expression, within min/max bounds |--- NullOp - does nothing (useful as an initial seed) |--- PassThrough - used when overriding 'make_parser'; match its subexp | |--- FastFeature - keeps information about possibly optional tags | |--- HeaderFooter - files with a header, records and a footer | `--- ParseRecords - parse a record at a time |--- Str - match a given string `--- ExpressionList - expressions containing several subexpressions |--- Alt - subexp1 or subexp2 or subexp3 or ... `--- Seq - subexp1 followed by subexp2 followed by subexp3 ...
|
|||
Expression Base class for nodes in the Expression tree |
|||
Any | |||
Assert | |||
AtBeginning Match the beginning of a line |
|||
AtEnd Match the end of a line |
|||
Debug | |||
Dot Match any character except newline |
|||
AnyEol Match a newline (" ", " " or " ") |
|||
Group | |||
GroupRef | |||
Literal | |||
MaxRepeat | |||
NullOp | |||
PassThrough | |||
FastFeature | |||
HeaderFooter | |||
ParseRecords | |||
Str | |||
ExpressionList shares implementation used by 'Expressions with subexpressions' |
|||
Alt An Expression tree with a list of alternate matches. |
|||
Seq An Expression matching a set of subexpressions, in sequential order |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
MAXREPEAT = msre_parse.MAXREPEAT
|
|||
IterParser = None hash(x) |
|||
_fast_quote_lookup = None hash(x) |
|||
_minimize_escape_chars = {"\a": r"\a", "\b": r"\b", "\n": r"\n
|
|
s -> a string useable inside [] which matches all the characters in s For example, passing in "0123456789" returns "\d". This code isn't perfect. |
modify an expression in place to remove case dependencies may return a new top-level node |
|
_minimize_escape_chars
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Dec 25 10:43:35 2008 | http://epydoc.sourceforge.net |