]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Remove d_initial from the parser as it is unused (GH-12212)
authortyomitch <tyomitch@gmail.com>
Sat, 9 Mar 2019 15:35:50 +0000 (17:35 +0200)
committerPablo Galindo <Pablogsal@gmail.com>
Sat, 9 Mar 2019 15:35:50 +0000 (15:35 +0000)
commit1b304f992ddfc1cc40758dd633bc6a2595399189
treee396a399606beef20618b596c092714c1626bffb
parentd70a359adfdbe02538559cceaa0b459d055651be
Remove d_initial from the parser as it is unused (GH-12212)

d_initial, the first state of a particular DFA in the parser has always been initialized to 0 in the old pgen as well as the new pgen. As this value is not used and the first state of each DFA is assumed to be the first element in the array representing it, remove d_initial from the parser to reduce complexity.
Include/grammar.h
Modules/parsermodule.c
Parser/pgen/grammar.py
Python/graminit.c