mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
* src/reduce.c (reduce_grammar): First reduce the nonterminals,
and then the grammar.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2002-04-08 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/reduce.c (reduce_grammar): First reduce the nonterminals,
|
||||||
|
and then the grammar.
|
||||||
|
|
||||||
|
|
||||||
2002-04-08 Akim Demaille <akim@epita.fr>
|
2002-04-08 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* src/system.h: No longer using strndup.
|
* src/system.h: No longer using strndup.
|
||||||
|
|||||||
@@ -487,10 +487,13 @@ reduce_grammar (void)
|
|||||||
fatal (_("Start symbol %s does not derive any sentence"),
|
fatal (_("Start symbol %s does not derive any sentence"),
|
||||||
quotearg_style (escape_quoting_style, symbols[start_symbol]->tag));
|
quotearg_style (escape_quoting_style, symbols[start_symbol]->tag));
|
||||||
|
|
||||||
if (nuseless_productions > 0)
|
/* First reduce the nonterminals, as they renumber themselves in the
|
||||||
reduce_grammar_tables ();
|
whole grammar. If you change the order, nonterms would be
|
||||||
|
renumbered only in the reduced grammar. */
|
||||||
if (nuseless_nonterminals > 0)
|
if (nuseless_nonterminals > 0)
|
||||||
nonterminals_reduce ();
|
nonterminals_reduce ();
|
||||||
|
if (nuseless_productions > 0)
|
||||||
|
reduce_grammar_tables ();
|
||||||
|
|
||||||
if (trace_flag)
|
if (trace_flag)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user