Method | __call__ |
No summary |
Method | __init__ |
No summary |
Method | __or__ |
Allow new parsers to be constructed by combining parser objects with the "|" operator. |
Method | backup_parser_offset |
Undocumented |
Instance Variable | process_unmatched |
function (or object) to process un-matched text, or None. The function should take a Builder object as first argument, followed by one or more parameters for matched groups in the regular expression. |
Instance Variable | rules |
list with Rule objects, can be modified until the parser is used for the first time for parsing (the attribute becomes a tuple afterwards) |
Static Method | _raise_exception |
Undocumented |
Method | _process_unmatched |
Undocumented |
Instance Variable | _backup_iter |
Undocumented |
Instance Variable | _re |
Undocumented |
Parameters | |
*rules | list of rules to match (each should derive from SimpleReParser , so be either a single rule, or a compound rule.) |
Builder
object as first argument, followed by one or more parameters for matched groups in the regular expression.Rule
objects, can be modified until the parser is used for the first time for parsing (the attribute becomes a tuple afterwards)