summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-04-12 08:14:12 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-04-12 13:56:44 +0200
commitecf5cb7e0e1f7d025dee1e40cf345d5728dab2b2 (patch)
treeb06fd36b3165c6c12e8db7aa7b8cbe843e66a542 /tests
parente50de09886bfdf4febb75accdd1549952787b5e0 (diff)
downloadbison-ecf5cb7e0e1f7d025dee1e40cf345d5728dab2b2.tar.gz
c++: remove the yy prefix from some functions
yy::parser features a parse() function, not a yyparse() one. * data/skeletons/lalr1.cc (yyreport_syntax_error) (context::yyexpected_tokens): Rename as... (report_syntax_error, context::expected_tokens): these.
Diffstat (limited to 'tests')
-rw-r--r--tests/local.at4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/local.at b/tests/local.at
index 3e1cc1a8..73319a18 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -746,7 +746,7 @@ void
std::cerr << ]AT_LOCATION_IF([l << ": " << ])[m << '\n';
}]AT_ERROR_CUSTOM_IF([[
void
-]AT_NAMESPACE[::parser::yyreport_syntax_error (const context& ctx) const
+]AT_NAMESPACE[::parser::report_syntax_error (const context& ctx) const
{]AT_PARAM_IF([m4_bpatsubst(m4_defn([AT_PARSE_PARAMS]),
[[^,]+[^A-Za-z_0-9]\([A-Za-z_][A-Za-z_0-9]*\),* *], [
YYUSE (\1);])])[]m4_bmatch(m4_defn([AT_PARSE_PARAMS]), [nerrs],[[
@@ -762,7 +762,7 @@ void
{
enum { TOKENMAX = 10 };
symbol_kind_type expected[TOKENMAX];
- int n = ctx.yyexpected_tokens (expected, TOKENMAX);
+ int n = ctx.expected_tokens (expected, TOKENMAX);
if (0 < n)
{
std::cerr << " (expected:";