diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-07-06 19:31:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-06 19:31:16 (GMT) |
commit | 1ac0cbca369f16f9191833dd54536482fb141a98 (patch) | |
tree | 1800eafad7ec998d61d6172c13194979b86533d6 /Tools | |
parent | dcbaa1b49cd9062fb9ba2b9d49555ac6cd8c60b5 (diff) | |
download | cpython-1ac0cbca369f16f9191833dd54536482fb141a98.zip cpython-1ac0cbca369f16f9191833dd54536482fb141a98.tar.gz cpython-1ac0cbca369f16f9191833dd54536482fb141a98.tar.bz2 |
bpo-41215: Don't use NULL by default in the PEG parser keyword list (GH-21355)
Automerge-Triggered-By: @lysnikolaou
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/peg_generator/pegen/c_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/peg_generator/pegen/c_generator.py b/Tools/peg_generator/pegen/c_generator.py index 58a44fb..aee668c 100644 --- a/Tools/peg_generator/pegen/c_generator.py +++ b/Tools/peg_generator/pegen/c_generator.py @@ -440,7 +440,7 @@ class CParserGenerator(ParserGenerator, GrammarVisitor): num_groups = max(groups) + 1 if groups else 1 for keywords_length in range(num_groups): if keywords_length not in groups.keys(): - self.print("NULL,") + self.print("(KeywordToken[]) {{NULL, -1}},") else: self.print("(KeywordToken[]) {") with self.indent(): |