diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-04-12 18:03:37 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-04-12 19:24:12 +0200 |
commit | 7a226860efc290972b78d5595589e9fb1b2879da (patch) | |
tree | d71463f3e43cb420f57e122c619a6b6872f0bc9a /examples/c/reccalc | |
parent | c9733611386ecbeb71036018c2b08faf2de3560e (diff) | |
download | bison-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 'examples/c/reccalc')
-rw-r--r-- | examples/c/reccalc/parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/c/reccalc/parse.y b/examples/c/reccalc/parse.y index ae80942c..bcea1b83 100644 --- a/examples/c/reccalc/parse.y +++ b/examples/c/reccalc/parse.y @@ -26,7 +26,7 @@ // Tell Flex the expected prototype of yylex. // The scanner argument must be named yyscanner. #define YY_DECL \ - enum yytokentype yylex (YYSTYPE* yylval, yyscan_t yyscanner, result *res) + yytoken_kind_t yylex (YYSTYPE* yylval, yyscan_t yyscanner, result *res) YY_DECL; void yyerror (yyscan_t scanner, result *res, const char *msg, ...); |