mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
bison: use consistently "token kind", not "token type"
* src/output.c, src/reader.c, src/scan-gram.l, src/tables.c: here.
This commit is contained in:
@@ -596,9 +596,7 @@ prepare_symbol_definitions (void)
|
||||
static void
|
||||
prepare_actions (void)
|
||||
{
|
||||
/* Figure out the actions for the specified state, indexed by
|
||||
lookahead token type. */
|
||||
|
||||
/* Figure out the actions for the specified state. */
|
||||
muscle_insert_rule_number_table ("defact", yydefact,
|
||||
yydefact[0], 1, nstates);
|
||||
|
||||
|
||||
@@ -817,9 +817,9 @@ check_and_convert_grammar (void)
|
||||
/* Assign the symbols their symbol numbers. */
|
||||
symbols_pack ();
|
||||
|
||||
/* Scan rule actions after invoking symbol_check_alias_consistency (in
|
||||
symbols_pack above) so that token types are set correctly before the rule
|
||||
action type checking.
|
||||
/* Scan rule actions after invoking symbol_check_alias_consistency
|
||||
(in symbols_pack above) so that token types are set correctly
|
||||
before the rule action type checking.
|
||||
|
||||
Before invoking grammar_rule_check_and_complete (in packgram
|
||||
below) on any rule, make sure all actions have already been
|
||||
|
||||
@@ -51,7 +51,7 @@ static boundary scanner_cursor;
|
||||
|
||||
#define YY_USER_ACTION location_compute (loc, &scanner_cursor, yytext, yyleng);
|
||||
|
||||
/* Report that yytext is an extension, and evaluate to its token type. */
|
||||
/* Report that yytext is an extension, and evaluate to its token kind. */
|
||||
#define BISON_DIRECTIVE(Directive) \
|
||||
(bison_directive (loc, yytext), PERCENT_ ## Directive)
|
||||
|
||||
|
||||
@@ -412,7 +412,7 @@ save_row (state_number s)
|
||||
|
||||
/*------------------------------------------------------------------.
|
||||
| Figure out the actions for the specified state, indexed by |
|
||||
| lookahead token type. |
|
||||
| lookahead token kind. |
|
||||
| |
|
||||
| The YYDEFACT table is output now. The detailed info is saved for |
|
||||
| putting into YYTABLE later. |
|
||||
|
||||
Reference in New Issue
Block a user