summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-07-05 09:14:17 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-07-05 09:59:25 +0200
commit49f1e5f42813f9d8bccedac9e5108b59ae71e8b7 (patch)
tree0a8c312492aa0d6de6513916f9c5df91dabc419b /src
parent238692ad77e7bdceaadc400e391783397855bb87 (diff)
downloadbison-49f1e5f42813f9d8bccedac9e5108b59ae71e8b7.tar.gz
style: update comments in the skeletons
* data/skeletons/c++.m4, data/skeletons/glr.c, data/skeletons/lalr1.d, * data/skeletons/lalr1.java, data/skeletons/yacc.c: Be more accurate about yychar and yytoken. Don't name local variables as if they were members.
Diffstat (limited to 'src')
-rw-r--r--src/parse-gram.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parse-gram.c b/src/parse-gram.c
index 89e5064c..1eaaf794 100644
--- a/src/parse-gram.c
+++ b/src/parse-gram.c
@@ -627,6 +627,7 @@ union yyalloc
/* YYNSTATES -- Number of states. */
#define YYNSTATES 167
+/* YYMAXUTOK -- Last valid token kind. */
#define YYMAXUTOK 315
@@ -1752,7 +1753,7 @@ yydestruct (const char *yymsg,
int
yyparse (void)
{
-/* The lookahead symbol. */
+/* Lookahead token kind. */
int yychar;
@@ -1807,7 +1808,7 @@ YYLTYPE yylloc = yyloc_default;
int yyn;
/* The return value of yyparse. */
int yyresult;
- /* Lookahead token as an internal (translated) token number. */
+ /* Lookahead symbol kind. */
yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
/* The variables used to return semantic value and location from the
action routines. */