mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 23:03:04 +00:00
* src/gram.h (associativity): New enum type which replaces the
former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with `right_assoc', `left_assoc' and `non_assoc'. Adjust all dependencies. * src/reader.c: Formatting changes. (LTYPESTR): Don't define it, use it as a literal in `reader_output_yylsp'. * src/symtab.h (symbol_class): New enum type which replaces the former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with `sunknown', `stoken and `snterm'.
This commit is contained in:
@@ -418,7 +418,7 @@ lex (void)
|
||||
*p++ = '\'';
|
||||
*p = 0;
|
||||
symval = getsym (token_buffer);
|
||||
symval->class = STOKEN;
|
||||
symval->class = token_sym;
|
||||
if (!symval->user_token_number)
|
||||
symval->user_token_number = code;
|
||||
return IDENTIFIER;
|
||||
@@ -440,7 +440,7 @@ lex (void)
|
||||
*p = 0;
|
||||
|
||||
symval = getsym (token_buffer);
|
||||
symval->class = STOKEN;
|
||||
symval->class = token_sym;
|
||||
|
||||
return IDENTIFIER;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user