mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
skeletons: clarify the tag of special tokens
From
GRAM_EOF = 0, /* $end */
GRAM_ERRCODE = 1, /* error */
GRAM_UNDEF = 2, /* $undefined */
to
GRAM_EOF = 0, /* "end of file" */
GRAM_ERRCODE = 1, /* error */
GRAM_UNDEF = 2, /* "invalid token" */
* src/output.c (symbol_tag): New.
Use it to pass the token names and the symbol tags to the skeletons.
* tests/input.at: Adjust.
This commit is contained in:
@@ -431,9 +431,9 @@ exp:;
|
||||
AT_BISON_CHECK([-Wno-other -S./dump-symbols.m4 input.y])
|
||||
AT_CHECK([cat symbols.csv], [],
|
||||
[[number, class, tag, id, user_number, type,
|
||||
0, Token, $end, YYEOF, 0, ,
|
||||
0, Token, "end of file", YYEOF, 0, ,
|
||||
1, Token, error, YYERRCODE, 256, ,
|
||||
2, Token, $undefined, YYUNDEF, 257, ,
|
||||
2, Token, "invalid token", YYUNDEF, 257, ,
|
||||
3, Token, 'a', , 97, ,
|
||||
4, Token, "A1", A1, 1, ,
|
||||
5, Token, A2, A2, 258, ,
|
||||
|
||||
Reference in New Issue
Block a user