mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-11 13:23:04 +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:
@@ -127,10 +127,13 @@ void symbol_precedence_set PARAMS ((symbol_t *symbol, location_t location,
|
||||
int prec, associativity assoc));
|
||||
|
||||
/* Set the CLASS associated to SYMBOL. */
|
||||
void symbol_class_set PARAMS ((symbol_t *symbol, symbol_class class));
|
||||
void symbol_class_set PARAMS ((symbol_t *symbol,
|
||||
symbol_class class, location_t location));
|
||||
|
||||
/* Set the USER_TOKEN_NUMBER associated to SYMBOL. */
|
||||
void symbol_user_token_number_set PARAMS ((symbol_t *symbol, int user_number));
|
||||
void symbol_user_token_number_set PARAMS ((symbol_t *symbol,
|
||||
int user_number,
|
||||
location_t location));
|
||||
|
||||
|
||||
/* Distinguished symbols. AXIOM is the real start symbol, that used
|
||||
|
||||
Reference in New Issue
Block a user