[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/11] glr2.cc: tests: simplify
From: |
Akim Demaille |
Subject: |
[PATCH 09/11] glr2.cc: tests: simplify |
Date: |
Sun, 10 Jan 2021 17:59:08 +0100 |
* tests/glr-regression.at: Remove useless qualification for tokens.
---
tests/glr-regression.at | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/glr-regression.at b/tests/glr-regression.at
index 6b36eede..7905a581 100644
--- a/tests/glr-regression.at
+++ b/tests/glr-regression.at
@@ -1565,7 +1565,7 @@ alt1:
USE ($][1);
if (]AT_GLR2_CC_IF(
[[yytoken != YYTRANSLATE('d') && yytoken != symbol_kind::S_YYEOF]],
- [[yychar != 'd' && yychar !=
]AT_GLR2_CC_IF([yy::parser::token::])[YYEOF]])[)
+ [[yychar != 'd' && yychar != ]AT_GLR2_CC_IF([token::])[YYEOF]])[)
PRINT_LOOKAHEAD ("Incorrect lookahead during stack explosion.");
}
;
@@ -1576,7 +1576,7 @@ alt2:
USE ($][1);
if (]AT_GLR2_CC_IF(
[[yytoken != YYTRANSLATE('d') && yytoken != symbol_kind::S_YYEOF]],
- [[yychar != 'd' && yychar !=
]AT_GLR2_CC_IF([yy::parser::token::])[YYEOF]])[)
+ [[yychar != 'd' && yychar != ]AT_GLR2_CC_IF([token::])[YYEOF]])[)
PRINT_LOOKAHEAD ("Incorrect lookahead during stack explosion.");
}
;
@@ -1587,7 +1587,7 @@ alt3:
USE ($][1);
if (]AT_GLR2_CC_IF(
[[yytoken != YYTRANSLATE('d') && yytoken != symbol_kind::S_YYEOF]],
- [[yychar != 'd' && yychar !=
]AT_GLR2_CC_IF([yy::parser::token::])[YYEOF]])[)
+ [[yychar != 'd' && yychar != ]AT_GLR2_CC_IF([token::])[YYEOF]])[)
PRINT_LOOKAHEAD ("Incorrect lookahead during stack explosion.");
}
;
@@ -1597,7 +1597,7 @@ no_look:
{
if (]AT_GLR2_CC_IF(
[[yytoken != symbol_kind::S_YYEMPTY]],
- [[yychar != ]AT_GLR2_CC_IF([yy::parser::token::])[YYEMPTY]])[)
+ [[yychar != ]AT_GLR2_CC_IF([token::])[YYEMPTY]])[)
PRINT_LOOKAHEAD ("Found lookahead where shouldn't during stack
explosion.");
}
;
--
2.30.0
- [PATCH 00/11] glr2.cc: add support for token constructors, Akim Demaille, 2021/01/10
- [PATCH 01/11] tests: fix definition for parser class name, Akim Demaille, 2021/01/10
- [PATCH 02/11] glr: tests: formatting changes, Akim Demaille, 2021/01/10
- [PATCH 03/11] glr: tests: more macros, Akim Demaille, 2021/01/10
- [PATCH 04/11] glr: examples: fix locations, Akim Demaille, 2021/01/10
- [PATCH 05/11] glr2.cc: fix memory leak, Akim Demaille, 2021/01/10
- [PATCH 06/11] glr2.cc: use references to print symbols, Akim Demaille, 2021/01/10
- [PATCH 07/11] glr2.cc: example: style changes, Akim Demaille, 2021/01/10
- [PATCH 08/11] glr2.cc: rely on symbol kinds rather than token kinds, Akim Demaille, 2021/01/10
- [PATCH 09/11] glr2.cc: tests: simplify,
Akim Demaille <=
- [PATCH 11/11] glr2.cc: add support for api.token.constructor, Akim Demaille, 2021/01/10
- [PATCH 10/11] glr2.cc: introduce the yytranslate_ member function, Akim Demaille, 2021/01/10