summaryrefslogtreecommitdiffstats
path: root/Include/grammar.h
diff options
context:
space:
mode:
authortyomitch <tyomitch@gmail.com>2019-03-09 15:35:50 (GMT)
committerPablo Galindo <Pablogsal@gmail.com>2019-03-09 15:35:50 (GMT)
commit1b304f992ddfc1cc40758dd633bc6a2595399189 (patch)
treee396a399606beef20618b596c092714c1626bffb /Include/grammar.h
parentd70a359adfdbe02538559cceaa0b459d055651be (diff)
downloadcpython-1b304f992ddfc1cc40758dd633bc6a2595399189.zip
cpython-1b304f992ddfc1cc40758dd633bc6a2595399189.tar.gz
cpython-1b304f992ddfc1cc40758dd633bc6a2595399189.tar.bz2
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.
Diffstat (limited to 'Include/grammar.h')
-rw-r--r--Include/grammar.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Include/grammar.h b/Include/grammar.h
index e1703f4..68b928c 100644
--- a/Include/grammar.h
+++ b/Include/grammar.h
@@ -50,7 +50,6 @@ typedef struct {
typedef struct {
int d_type; /* Non-terminal this represents */
char *d_name; /* For printing */
- int d_initial; /* Initial state */
int d_nstates;
state *d_state; /* Array of states */
bitset d_first;