mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-19 01:03:04 +00:00
* tests/sets.at (Broken Closure): Add the ending `;'.
* src/reader.at (readgram): Complain if a rule is not ended with a semi-colon.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2002-03-04 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* tests/sets.at (Broken Closure): Add the ending `;'.
|
||||||
|
* src/reader.at (readgram): Complain if a rule is not ended with a
|
||||||
|
semi-colon.
|
||||||
|
|
||||||
2002-03-04 Akim Demaille <akim@epita.fr>
|
2002-03-04 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
* src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
|
* src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
|
||||||
|
|||||||
@@ -1326,7 +1326,10 @@ readgram (void)
|
|||||||
unlex (t1);
|
unlex (t1);
|
||||||
symval = ssave;
|
symval = ssave;
|
||||||
if (t1 == tok_colon)
|
if (t1 == tok_colon)
|
||||||
break;
|
{
|
||||||
|
complain (_("previous rule lacks an ending `;'"));
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (!first_rhs) /* JF */
|
if (!first_rhs) /* JF */
|
||||||
first_rhs = symval;
|
first_rhs = symval;
|
||||||
|
|||||||
@@ -151,14 +151,14 @@ AT_SETUP([Broken Closure])
|
|||||||
|
|
||||||
AT_DATA([input.y],
|
AT_DATA([input.y],
|
||||||
[[%%
|
[[%%
|
||||||
a: b
|
a: b;
|
||||||
b: c
|
b: c;
|
||||||
c: d
|
c: d;
|
||||||
d: e
|
d: e;
|
||||||
e: f
|
e: f;
|
||||||
f: g
|
f: g;
|
||||||
g: h
|
g: h;
|
||||||
h: 'h'
|
h: 'h';
|
||||||
]])
|
]])
|
||||||
|
|
||||||
AT_CHECK([[bison --trace input.y]], [], [], [stderr])
|
AT_CHECK([[bison --trace input.y]], [], [], [stderr])
|
||||||
|
|||||||
Reference in New Issue
Block a user