From ffa46e651686a684bd4bf95e7a1cb9ae8989915e Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Sun, 12 Apr 2020 13:44:57 +0200 Subject: 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. --- tests/input.at | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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, , -- cgit v1.2.1