From 1b304f992ddfc1cc40758dd633bc6a2595399189 Mon Sep 17 00:00:00 2001 From: tyomitch Date: Sat, 9 Mar 2019 17:35:50 +0200 Subject: 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 | 1 - 1 file changed, 1 deletion(-) (limited to 'Include') 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; -- cgit v1.2.1