mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 08:43:03 +00:00
* src/reader.c, src/symlist.h, src/symlist.c: s/mid_rule/midrule/.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2006-01-05 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* src/reader.c, src/symlist.h, src/symlist.c: s/mid_rule/midrule/.
|
||||||
|
|
||||||
2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
|
2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
|
||||||
|
|
||||||
* data/c.m4 (b4_c_modern): New macro, with a new provision for
|
* data/c.m4 (b4_c_modern): New macro, with a new provision for
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ static bool
|
|||||||
symbol_typed_p (const symbol_list *s)
|
symbol_typed_p (const symbol_list *s)
|
||||||
{
|
{
|
||||||
return (s->sym->type_name
|
return (s->sym->type_name
|
||||||
|| s->mid_rule && s->mid_rule->used);
|
|| s->midrule && s->midrule->used);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*----------------------------------------------------------------.
|
/*----------------------------------------------------------------.
|
||||||
@@ -341,7 +341,7 @@ grammar_midrule_action (void)
|
|||||||
/* Insert the dummy nonterminal replacing the midrule action into
|
/* Insert the dummy nonterminal replacing the midrule action into
|
||||||
the current rule. Bind it to its dedicated rule. */
|
the current rule. Bind it to its dedicated rule. */
|
||||||
grammar_current_rule_symbol_append (dummy, dummy_location);
|
grammar_current_rule_symbol_append (dummy, dummy_location);
|
||||||
grammar_end->mid_rule = midrule;
|
grammar_end->midrule = midrule;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the precedence symbol of the current rule to PRECSYM. */
|
/* Set the precedence symbol of the current rule to PRECSYM. */
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ symbol_list_new (symbol *sym, location loc)
|
|||||||
res->sym = sym;
|
res->sym = sym;
|
||||||
res->location = loc;
|
res->location = loc;
|
||||||
|
|
||||||
res->mid_rule = NULL;
|
res->midrule = NULL;
|
||||||
|
|
||||||
res->action = NULL;
|
res->action = NULL;
|
||||||
res->used = false;
|
res->used = false;
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ typedef struct symbol_list
|
|||||||
|
|
||||||
/* If this symbol is the generated lhs for a mid-rule, a pointer to
|
/* If this symbol is the generated lhs for a mid-rule, a pointer to
|
||||||
that mid-rule. */
|
that mid-rule. */
|
||||||
struct symbol_list *mid_rule;
|
struct symbol_list *midrule;
|
||||||
|
|
||||||
/* The action is attached to the LHS of a rule. */
|
/* The action is attached to the LHS of a rule. */
|
||||||
const char *action;
|
const char *action;
|
||||||
|
|||||||
Reference in New Issue
Block a user