summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authortyomitch <tyomitch@gmail.com>2019-03-09 17:35:50 +0200
committerPablo Galindo <Pablogsal@gmail.com>2019-03-09 15:35:50 +0000
commit1b304f992ddfc1cc40758dd633bc6a2595399189 (patch)
treee396a399606beef20618b596c092714c1626bffb /Include
parentd70a359adfdbe02538559cceaa0b459d055651be (diff)
downloadcpython-git-1b304f992ddfc1cc40758dd633bc6a2595399189.tar.gz
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')
-rw-r--r--Include/grammar.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/Include/grammar.h b/Include/grammar.h
index e1703f4b36..68b928c971 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;