mirror of https://github.com/python/cpython
bca7014032
* Implement running the parser a second time for the errors messages The first parser run is only responsible for detecting whether there is a `SyntaxError` or not. If there isn't the AST gets returned. Otherwise, the parser is run a second time with all the `invalid_*` rules enabled so that all the customized error messages get produced. |
||
---|---|---|
.. | ||
__init__.py | ||
__main__.py | ||
ast_dump.py | ||
build.py | ||
c_generator.py | ||
first_sets.py | ||
grammar.py | ||
grammar_parser.py | ||
grammar_visualizer.py | ||
keywordgen.py | ||
metagrammar.gram | ||
parser.py | ||
parser_generator.py | ||
python_generator.py | ||
sccutils.py | ||
testutil.py | ||
tokenizer.py |