A convenience class for the parser's results.
More...
|
def | __init__ (cls, parser) |
| Initialize the this result object from the parser object. More...
|
|
def | __str__ (cls) |
| Generate a string representation of the parser state. More...
|
|
A convenience class for the parser's results.
Definition at line 8 of file parser.py.
◆ __init__()
def apg_py.lib.parser.ParserResult.__init__ |
( |
|
cls, |
|
|
|
parser |
|
) |
| |
Initialize the this result object from the parser object.
Definition at line 11 of file parser.py.
◆ __str__()
def apg_py.lib.parser.ParserResult.__str__ |
( |
|
cls | ) |
|
Generate a string representation of the parser state.
The string will be displayed by print() function.
- Returns
- Returns the string representation to display.
Definition at line 40 of file parser.py.
◆ input_length
apg_py.lib.parser.ParserResult.input_length |
◆ max_phrase_length
apg_py.lib.parser.ParserResult.max_phrase_length |
◆ max_tree_depth
apg_py.lib.parser.ParserResult.max_tree_depth |
◆ node_hits
apg_py.lib.parser.ParserResult.node_hits |
◆ phrase_length
apg_py.lib.parser.ParserResult.phrase_length |
◆ state
apg_py.lib.parser.ParserResult.state |
◆ STATE
apg_py.lib.parser.ParserResult.STATE |
◆ sub_begin
apg_py.lib.parser.ParserResult.sub_begin |
◆ sub_end
apg_py.lib.parser.ParserResult.sub_end |
◆ sub_length
apg_py.lib.parser.ParserResult.sub_length |
◆ success
apg_py.lib.parser.ParserResult.success |
The documentation for this class was generated from the following file:
Python APG, Version 1.0, is licensed under the
2-Clause BSD License,
an
Open Source Initiative Approved License.