summaryrefslogtreecommitdiff
path: root/tests/regression.at
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-04-12 18:03:37 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-04-12 19:24:12 +0200
commit7a226860efc290972b78d5595589e9fb1b2879da (patch)
treed71463f3e43cb420f57e122c619a6b6872f0bc9a /tests/regression.at
parentc9733611386ecbeb71036018c2b08faf2de3560e (diff)
downloadbison-7a226860efc290972b78d5595589e9fb1b2879da.tar.gz
doc: promote yytoken_kind_t, not yytokentype
* data/skeletons/c.m4 (yytoken_kind_t): New. * data/skeletons/c++.m4, data/skeletons/lalr1.cc (yysymbol_kind_type): New. * examples/c/lexcalc/parse.y, examples/c/reccalc/parse.y, * tests/regression.at: Use them. * doc/bison.texi: Replace "enum yytokentype" by "yytoken_kind_t". (api.token.raw): Explain that it forces "yytoken_kind_t" to coincide with "yysymbol_kind_t". (Calling Convention): Mention YYEOF. (Table of Symbols): Add entries for "yytoken_kind_t" and "yysymbol_kind_t". (Glossary): Add entries for "Kind", "Token kind" and "Symbol kind".
Diffstat (limited to 'tests/regression.at')
-rw-r--r--tests/regression.at5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/regression.at b/tests/regression.at
index 67866d20..6014bc8d 100644
--- a/tests/regression.at
+++ b/tests/regression.at
@@ -146,8 +146,9 @@ void print_my_token (void);
void
print_my_token (void)
{
- enum yytokentype my_token = MY_TOKEN;
- printf ("%d\n", my_token);
+ enum yytokentype tok1 = MY_TOKEN;
+ yytoken_kind_t tok2 = MY_TOKEN;
+ printf ("%d, %d\n", tok1, tok2);
}
%}
%token MY_TOKEN