summaryrefslogtreecommitdiff
path: root/tests/actions.at
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-06-16 08:01:48 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-06-16 08:14:42 +0200
commitefb65daa36db3e918ace73c8a500373340867fbe (patch)
tree454070b09a3231a0f838c03b819a22bddce00704 /tests/actions.at
parente077bf1ebcdcd91de5de8944be3bf3c35a00b1fe (diff)
downloadbison-efb65daa36db3e918ace73c8a500373340867fbe.tar.gz
c++: get rid of global_tokens_and_yystype
This was a hack to make it easier for people to migrate from yacc.c to lalr1.cc and from glr.c to glr.cc: when set, YYSTYPE and YYLTYPE were `#defined`. It was never documented (just mentioned in NEWS for Bison 2.2, 2006-05-19), but was used to simplify the test suite. Stop that: adjust the test suite to the skeletons, not the converse. In C++ use yy::parser::semantic_type, yy::parser::location_type, and yy::parser::token::MY_TOKEN, instead of YYSTYPE, YYLTYPE and MY_TOKEN. * data/skeletons/glr.cc, data/skeletons/lalr1.cc: Remove its support. * tests/actions.at, tests/c++.at, tests/calc.at: Adjust.
Diffstat (limited to 'tests/actions.at')
-rw-r--r--tests/actions.at1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/actions.at b/tests/actions.at
index 46761c25..d90851de 100644
--- a/tests/actions.at
+++ b/tests/actions.at
@@ -607,7 +607,6 @@ $5
{
int ival;
}])
-AT_LALR1_CC_IF([%define global_tokens_and_yystype])
m4_ifval([$6], [[%code provides {]], [[%code {]])
AT_LALR1_CC_IF([typedef yy::location YYLTYPE;])[
]AT_YYLEX_DECLARE[