diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-04-13 14:18:51 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-04-13 16:54:14 +0200 |
commit | 42ab6c1e44d3c1665f9f81c41010b85291c94d90 (patch) | |
tree | c594e7d35e91e4d5b3febb527484281f5e74afd4 /data/skeletons/lalr1.cc | |
parent | dc1035bada3fcc793c388b33869b7298e0643860 (diff) | |
download | bison-42ab6c1e44d3c1665f9f81c41010b85291c94d90.tar.gz |
doc: c++: document parser::context
* doc/bison.texi (C++ Parser Context): New.
* data/skeletons/lalr1.cc (parser::yysymbol_name): Rename as...
(parser::symbol_name): this.
(A Complete C++ Example): Promote LAC, now that we have it.
Promote parse.error detailed over verbose.
* examples/c++/calc++/calc++.test, tests/local.at: Adjust.
Diffstat (limited to 'data/skeletons/lalr1.cc')
-rw-r--r-- | data/skeletons/lalr1.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/skeletons/lalr1.cc b/data/skeletons/lalr1.cc index 5b6dbd3b..dd9d97e4 100644 --- a/data/skeletons/lalr1.cc +++ b/data/skeletons/lalr1.cc @@ -308,7 +308,7 @@ m4_define([b4_shared_declarations], ]b4_parse_error_bmatch([custom\|detailed], [[ /// The user-facing name of the symbol whose (internal) number is /// YYSYMBOL. No bounds checking. - static const char *yysymbol_name (symbol_kind_type yysymbol); + static const char *symbol_name (symbol_kind_type yysymbol); ]])[ // Tables. @@ -586,7 +586,7 @@ m4_if(b4_prefix, [yy], [], /* The user-facing name of the symbol whose (internal) number is YYSYMBOL. No bounds checking. */ const char * - ]b4_parser_class[::yysymbol_name (symbol_kind_type yysymbol) + ]b4_parser_class[::symbol_name (symbol_kind_type yysymbol) { static const char *const yy_sname[] = { @@ -1503,7 +1503,7 @@ b4_dollar_popdef])[]dnl { yyres += ]b4_parse_error_case([verbose], [[yytnamerr_ (yytname_[yyarg[yyi++]])]], - [[yysymbol_name (yyarg[yyi++])]])[; + [[symbol_name (yyarg[yyi++])]])[; ++yyp; } else |