summaryrefslogtreecommitdiff
path: root/data/skeletons/lalr1.cc
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2021-08-08 08:53:11 +0200
committerAkim Demaille <akim.demaille@gmail.com>2021-08-09 07:17:19 +0200
commitb2a00ed5dd5aafb878bbcd5d32579c2ce07ddc4b (patch)
treed90b59a10952aa26e4ef7ba848fe097061e6adc3 /data/skeletons/lalr1.cc
parent3c5f73fe51a6d61e6a2f6219a9320bf4fd32ae66 (diff)
downloadbison-b2a00ed5dd5aafb878bbcd5d32579c2ce07ddc4b.tar.gz
style: rename b4_lex as b4_yylex
For consistency with b4_yyerror_formals, etc. * data/skeletons/bison.m4, data/skeletons/c.m4, data/skeletons/d.m4, * data/skeletons/glr.c, data/skeletons/glr2.cc, * data/skeletons/java.m4, data/skeletons/lalr1.cc, * data/skeletons/lalr1.d, data/skeletons/lalr1.java, * data/skeletons/yacc.c (b4_lex, b4_lex_formals): Rename as... (b4_yylex, b4_yylex_formals): these.
Diffstat (limited to 'data/skeletons/lalr1.cc')
-rw-r--r--data/skeletons/lalr1.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/data/skeletons/lalr1.cc b/data/skeletons/lalr1.cc
index 56b23f6f..c94cf4e4 100644
--- a/data/skeletons/lalr1.cc
+++ b/data/skeletons/lalr1.cc
@@ -145,10 +145,10 @@ b4_dollar_popdef[]dnl
])])
-# b4_lex
-# ------
+# b4_yylex
+# --------
# Call yylex.
-m4_define([b4_lex],
+m4_define([b4_yylex],
[b4_token_ctor_if(
[b4_function_call([yylex],
[symbol_type], m4_ifdef([b4_lex_param], b4_lex_param))],
@@ -912,9 +912,9 @@ b4_dollar_popdef])[]dnl
try
#endif // YY_EXCEPTIONS
{]b4_token_ctor_if([[
- symbol_type yylookahead (]b4_lex[);
+ symbol_type yylookahead (]b4_yylex[);
yyla.move (yylookahead);]], [[
- yyla.kind_ = yytranslate_ (]b4_lex[);]])[
+ yyla.kind_ = yytranslate_ (]b4_yylex[);]])[
}
#if YY_EXCEPTIONS
catch (const syntax_error& yyexc)