diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-04-12 12:12:01 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-04-12 13:56:44 +0200 |
commit | ff50f6f223777c910ad5b2c4d7da542db0f1006d (patch) | |
tree | a41b4cd852c3c4090bc15f57440dba480c0d8357 /tests/regression.at | |
parent | 05be0fef9517ab75bbd6da6741eb9d2e864e11c3 (diff) | |
download | bison-ff50f6f223777c910ad5b2c4d7da542db0f1006d.tar.gz |
skeletons: use "invalid token" instead of "$undefined"
* src/output.c (prepare_symbol_names): Also handle undeftoken.
* tests/actions.at, tests/calc.at, tests/regression.at: Adjust.
Diffstat (limited to 'tests/regression.at')
-rw-r--r-- | tests/regression.at | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/regression.at b/tests/regression.at index 52c88e98..67866d20 100644 --- a/tests/regression.at +++ b/tests/regression.at @@ -701,7 +701,7 @@ static const yytype_int8 yyrline[] = }; static const char *const yytname[] = { - "\"end of file\"", "error", "$undefined", "\"if\"", "\"const\"", + "\"end of file\"", "error", "\"invalid token\"", "\"if\"", "\"const\"", "\"then\"", "\"else\"", "$accept", "statement", "struct_stat", "if", "else", YY_NULLPTR }; @@ -1461,14 +1461,14 @@ AT_PARSER_CHECK([[input --debug]], [[2]], [], Entering state 0 Stack now 0 Reading a token -Next token is token $undefined () -LAC: initial context established for $undefined -LAC: checking lookahead $undefined: Always Err +Next token is token "invalid token" () +LAC: initial context established for "invalid token" +LAC: checking lookahead "invalid token": Always Err Constructing syntax error message LAC: checking lookahead "end of file": R2 G3 R2 G5 R2 G6 R2 G7 R2 G8 R2 G9 R2 G10 R2 G11 R2 (max size exceeded) syntax error memory exhausted -Cleanup: discarding lookahead token $undefined () +Cleanup: discarding lookahead token "invalid token" () Stack now 0 ]]) |