Staging
v0.5.1
https://github.com/python/cpython
Revision bca701403253379409dece03053dbd739c0bd059 authored by Lysandros Nikolaou on 26 October 2020, 22:42:04 UTC, committed by GitHub on 26 October 2020, 22:42:04 UTC
* 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.
1 parent c8c4200
History
Tip revision: bca701403253379409dece03053dbd739c0bd059 authored by Lysandros Nikolaou on 26 October 2020, 22:42:04 UTC
bpo-42123: Run the parser two times and only enable invalid rules on the second run (GH-22111)
Tip revision: bca7014
File Mode Size
c-api
data
distributing
distutils
extending
faq
howto
includes
install
installing
library
reference
tools
tutorial
using
whatsnew
Makefile -rw-r--r-- 8.5 KB
README.rst -rw-r--r-- 4.6 KB
about.rst -rw-r--r-- 1.5 KB
bugs.rst -rw-r--r-- 4.7 KB
conf.py -rw-r--r-- 7.1 KB
contents.rst -rw-r--r-- 538 bytes
copyright.rst -rw-r--r-- 451 bytes
glossary.rst -rw-r--r-- 52.9 KB
license.rst -rw-r--r-- 46.5 KB
make.bat -rw-r--r-- 5.5 KB
requirements.txt -rw-r--r-- 381 bytes
runtime.txt -rw-r--r-- 3 bytes

README.rst

back to top