mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
There are two errors that this commit fixes:
* The parser was not correctly computing the offset and the string
source for E_LINECONT errors due to the incorrect usage of strtok().
* The parser was not correctly unwinding the call stack when a tokenizer
exception happened in rules involving optionals ('?', [...]) as we
always make them return valid results by using the comma operator. We
need to check first if we don't have an error before continuing..
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| __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 | ||
| validator.py | ||