diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-04-12 13:44:57 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-04-12 13:56:44 +0200 |
commit | ffa46e651686a684bd4bf95e7a1cb9ae8989915e (patch) | |
tree | 96b5d281ecdaafddf3e22cbfee2e90edaa388c63 /tests | |
parent | ff50f6f223777c910ad5b2c4d7da542db0f1006d (diff) | |
download | bison-ffa46e651686a684bd4bf95e7a1cb9ae8989915e.tar.gz |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/input.at | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/input.at b/tests/input.at index 7cf2eccb..f1cab823 100644 --- a/tests/input.at +++ b/tests/input.at @@ -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, , |