Pablo Galindo
db9163ceef
bpo-40555: Check for p->error_indicator in loop rules after the main loop is done (GH-19986)
2020-05-08 03:38:44 +01:00
Pablo Galindo
470aac4d8e
bpo-40334: Generate comments in the parser code to improve debugging (GH-19966)
2020-05-06 23:14:43 +01:00
Anthony Shaw
c95e691c90
Clean up unused imports for the peg generator module (GH-19891)
2020-05-04 03:03:05 +01:00
Pablo Galindo
d2baff4301
bpo-40334: regenerate metaparser as part of regen-all (GH-19854)
2020-05-02 05:23:39 +01:00
Pablo Galindo
9dbaa8d9f0
Fix some scripts in the peg generator folder (GH-19853)
2020-05-02 05:23:06 +01:00
Pablo Galindo
7ba08ff7b4
bpo-40334: use the TOKENS file when checking dangling rules (GH-19849)
2020-05-01 23:14:12 +01:00
Pablo Galindo
6bd99d5f00
Fix the Tools/peg_generator/scripts/benchmark.py script (GH-19848)
2020-05-01 22:33:54 +01:00
Pablo Galindo
b796b3fb48
bpo-40334: Simplify type handling in the PEG c_generator (GH-19818)
2020-05-01 12:32:26 +01:00
Pablo Galindo
4db245ee9d
bpo-40334: refactor and cleanup for the PEG generators (GH-19775)
2020-04-29 10:42:21 +01:00
Pablo Galindo
5b9f4988c9
bpo-40334: Refactor peg_generator to receive a Tokens file when building c code (GH-19745)
2020-04-28 13:11:55 +01:00
Pablo Galindo
2b74c835a7
bpo-40334: Support CO_FUTURE_BARRY_AS_BDFL in the new parser (GH-19721)
...
This commit also allows to pass flags to the new parser in all interfaces and fixes a bug in the parser generator that was causing to inline rules with actions, making them disappear.
2020-04-27 18:02:07 +01:00
Lysandros Nikolaou
24ffe705c3
bpo-40334: Rewrite test_c_parser to avoid memory leaks (GH-19694)
...
Previously every test was building an extension module and
loading it into sys.modules. The tearDown function was thus
not able to clean up correctly, resulting in memory leaks.
With this commit, every test function now builds the extension
module and runs the actual test code in a new process
(using assert_python_ok), so that sys.modules stays intact
and no memory gets leaked.
2020-04-24 14:51:09 +01:00
Pablo Galindo
50f28dea32
bpo-40334: Allow to run make regen-pegen without distutils (GH-19684)
2020-04-24 00:53:29 +01:00
Pablo Galindo
9e6a1312c1
bpo-40370: Use the same compile and link args as the interpreter used in test_peg_generator (GH-19674)
2020-04-23 14:46:22 +01:00
Pablo Galindo
1df5a9e88c
bpo-40334: Fix build errors and warnings in test_peg_generator (GH-19672)
2020-04-23 12:42:13 +01:00
Pablo Galindo
0b7829e089
Compile extensions in test_peg_generator with C99 (GH-19668)
2020-04-23 03:24:25 +01:00
Pablo Galindo
c5fc156852
bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503)
...
Co-authored-by: Guido van Rossum <guido@python.org>
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
2020-04-22 23:29:27 +01:00