* src/reduce.c (reduce_grammar): When the language is empty,

complain about the start symbol, not the axiom.
Use its location.
* tests/reduce.at (Empty Language): New.
This commit is contained in:
Akim Demaille
2002-07-29 17:28:56 +00:00
parent fc5734fe23
commit 1bfb97dba5
3 changed files with 31 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
2002-07-29 Akim Demaille <akim@epita.fr>
* src/reduce.c (reduce_grammar): When the language is empty,
complain about the start symbol, not the axiom.
Use its location.
* tests/reduce.at (Empty Language): New.
2002-07-26 Akim Demaille <akim@epita.fr>
* src/reader.h, src/reader.c (gram_error): ... can't get