Staging
v0.8.1
https://github.com/python/cpython
Revision 1f0f4abb110b9fbade6175842b6a26ab0b8df6dd authored by Lysandros Nikolaou on 27 June 2020, 23:41:48 UTC, committed by GitHub on 27 June 2020, 23:41:48 UTC
This commit changes the parsing of f-string expressions with the new parser. The parser gets pre-fed with the location of the expression itself (not the f-string, which was what we were doing before). This allows us to completely skip the shifting of the AST nodes after the parsing is completed.
1 parent 89e82c4
History
Tip revision: 1f0f4abb110b9fbade6175842b6a26ab0b8df6dd authored by Lysandros Nikolaou on 27 June 2020, 23:41:48 UTC
bpo-41076: Pre-feed the parser with the f-string expression location (GH-21054)
Tip revision: 1f0f4ab
File Mode Size
Python.asdl -rw-r--r-- 5.2 KB
asdl.py -rw-r--r-- 12.7 KB
asdl_c.py -rwxr-xr-x 48.3 KB
myreadline.c -rw-r--r-- 11.9 KB
parser.c -rw-r--r-- 830.7 KB
peg_api.c -rw-r--r-- 2.2 KB
pegen.c -rw-r--r-- 58.9 KB
pegen.h -rw-r--r-- 9.7 KB
string_parser.c -rw-r--r-- 38.5 KB
string_parser.h -rw-r--r-- 1.8 KB
token.c -rw-r--r-- 4.5 KB
tokenizer.c -rw-r--r-- 56.9 KB
tokenizer.h -rw-r--r-- 3.8 KB

back to top