mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
tests: use %empty
* tests/actions.at, tests/input.at, tests/reduce.at, * tests/regression.at: here.
This commit is contained in:
@@ -373,7 +373,7 @@ AT_DATA([input.y],
|
||||
%token <operator> LE 134 "<="
|
||||
%left OR "<="
|
||||
%%
|
||||
exp: ;
|
||||
exp: %empty;
|
||||
%%
|
||||
]])
|
||||
|
||||
@@ -721,7 +721,7 @@ AT_KEYWORDS([report])
|
||||
AT_DATA([input.y],
|
||||
[[%%
|
||||
statement: struct_stat;
|
||||
struct_stat: /* empty. */ | if else;
|
||||
struct_stat: %empty | if else;
|
||||
if: "if" "const" "then" statement;
|
||||
else: "else" statement;
|
||||
%%
|
||||
@@ -869,7 +869,7 @@ type: DATA
|
||||
| INVALID
|
||||
;
|
||||
|
||||
body: /* empty */
|
||||
body: %empty
|
||||
| body member
|
||||
;
|
||||
|
||||
@@ -929,7 +929,7 @@ $1
|
||||
%token B
|
||||
|
||||
%%
|
||||
program: /* empty */
|
||||
program: %empty
|
||||
| program e ';'
|
||||
| program error ';';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user