style: rename grammar_start_symbols_set as grammar_start_symbols_add

* src/reader.h, src/reader.c (grammar_start_symbols_set): Rename as...
(grammar_start_symbols_add): this.
Adjust dependencies.
This commit is contained in:
Akim Demaille
2020-11-22 11:18:20 +01:00
parent 5af04b99dd
commit d798851e48
4 changed files with 4 additions and 7 deletions

View File

@@ -2189,7 +2189,7 @@ yyreduce:
case 34: /* grammar_declaration: "%start" symbols.1 */
{
grammar_start_symbols_set ((yyvsp[0].yykind_90));
grammar_start_symbols_add ((yyvsp[0].yykind_90));
}
break;

View File

@@ -382,7 +382,7 @@ grammar_declaration:
symbol_declaration
| "%start" symbols.1
{
grammar_start_symbols_set ($2);
grammar_start_symbols_add ($2);
}
| code_props_type "{...}" generic_symlist
{

View File

@@ -51,12 +51,9 @@ bool union_seen = false;
/* Should rules have a default precedence? */
bool default_prec = true;
/*-----------------------.
| Set the start symbol. |
`-----------------------*/
void
grammar_start_symbols_set (symbol_list *syms)
grammar_start_symbols_add (symbol_list *syms)
{
start_symbols = symbol_list_append (start_symbols, syms);
}

View File

@@ -49,7 +49,7 @@ extern symbol_list *start_symbols;
foo. */
symbol *switching_token (const symbol *start);
void grammar_start_symbols_set (symbol_list *syms);
void grammar_start_symbols_add (symbol_list *syms);
void grammar_current_rule_begin (symbol *lhs, location loc,
named_ref *lhs_named_ref);