tests: use %empty

* tests/actions.at, tests/input.at, tests/reduce.at,
* tests/regression.at:
here.
This commit is contained in:
Akim Demaille
2013-02-16 12:57:31 +01:00
parent 8ecac08f2d
commit 684083f065
4 changed files with 53 additions and 53 deletions

View File

@@ -261,7 +261,7 @@ AT_DATA_GRAMMAR([[input.y]],
]AT_YYLEX_DECLARE[
}
%%
exp: /* empty */;
exp: %empty;
%%
]AT_YYERROR_DEFINE[
]AT_YYLEX_DEFINE[
@@ -1706,7 +1706,7 @@ AT_DATA_GRAMMAR([input.y],
// that has set yychar might not always return normally. Instead,
// skeletons must translate before every use of yytoken.
start: 'a' accept { USE($1); } ;
accept: /*empty*/ {
accept: %empty {
assert (yychar == YYEMPTY);
yychar = 'b';
YYACCEPT;