mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 06:13:02 +00:00
* src/parse-gram.y (YYPRINT, yyprint): Don't mess with the parser
internals. * src/reader.h, src/reader.c (grammar_current_rule_prec_set): Takes a location. * src/symtab.h, src/symtab.c (symbol_class_set) (symbol_user_token_number_set): Likewise. Adjust all callers. Promote complain_at. * tests/input.at (Type Clashes): Adjust.
This commit is contained in:
@@ -290,8 +290,8 @@ blanks [ \t\f]+
|
||||
{
|
||||
YY_OBS_FINISH;
|
||||
yylval->symbol = getsym (last_string, *yylloc);
|
||||
symbol_class_set (yylval->symbol, token_sym);
|
||||
symbol_user_token_number_set (yylval->symbol, last_string[1]);
|
||||
symbol_class_set (yylval->symbol, token_sym, *yylloc);
|
||||
symbol_user_token_number_set (yylval->symbol, last_string[1], *yylloc);
|
||||
YY_OBS_FREE;
|
||||
yy_pop_state ();
|
||||
return ID;
|
||||
|
||||
Reference in New Issue
Block a user