mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
bistromathic: don't stupidly reset the location for each token
That quite defeats the whole point of locations... But anyway, we should not see these messages at all. * examples/c/bistromathic/parse.y (expected_tokens): Fix (useless) location tracking.
This commit is contained in:
@@ -473,8 +473,8 @@ expected_tokens (const char *input,
|
||||
// Parse the current state of the line.
|
||||
yypstate *ps = yypstate_new ();
|
||||
int status = 0;
|
||||
YYLTYPE lloc = { 1, 1, 1, 1 };
|
||||
do {
|
||||
YYLTYPE lloc = { 1, 1, 1, 1 };
|
||||
YYSTYPE lval;
|
||||
yytoken_kind_t token = yylex (&input, &lval, &lloc);
|
||||
// Don't let the parser know when we reach the end of input.
|
||||
|
||||
Reference in New Issue
Block a user