report: use %empty to denote empty rules

* src/gram.c (rule_rhs_print): Use %empty for empty rules.
* tests/conflicts.at, tests/regression.at, tests/sets.at: Adjust.
This commit is contained in:
Akim Demaille
2013-02-16 12:46:09 +01:00
parent 42d101da8d
commit 8b807f1177
4 changed files with 17 additions and 19 deletions

View File

@@ -263,11 +263,11 @@ AT_CHECK([cat input.output], [],
0 $accept: expr $end
1 $@1: /* empty */
1 $@1: %empty
2 expr: 'a' $@1 'b'
3 $@2: /* empty */
3 $@2: %empty
4 expr: $@2 'c'
@@ -573,7 +573,7 @@ AT_CHECK([cat input.output], 0,
2 CONST_DEC_LIST: CONST_DEC
3 | CONST_DEC_LIST CONST_DEC
4 $@1: /* empty */
4 $@1: %empty
5 CONST_DEC: $@1 undef_id_tok '=' const_id_tok ';'