glr.cc: no longer require location support

* data/glr.cc: Use b4_locations_if where appropriate.
* data/lalr1.cc: M4 quotation changes to highlight code duplication
with glr.cc.
* tests/calc.at: Check glr.cc with and without %location.
While at it, fuse multiple %parse-params into one.
* tests/actions.at: Simplify.
* NEWS: Doc this.
Some other wording changes.
This commit is contained in:
Akim Demaille
2012-07-30 14:40:18 +02:00
parent 7cb40fd2b5
commit 34904c575a
5 changed files with 57 additions and 63 deletions

10
NEWS
View File

@@ -12,7 +12,7 @@ GNU Bison NEWS
** Warnings
*** Warning categories are now displayed in warnings
*** Warning categories are now displayed
For instance:
@@ -82,7 +82,13 @@ GNU Bison NEWS
Also, it is possible to add code to the parser's constructors using
"%code init" and "%define init_throws".
** C++ skeleton improvements
** C++ skeletons improvements
*** locations are no longer mandatory (lalr1.cc, glr.cc)
Both lalr1.cc and glr.cc no longer require %location.
*** syntax_error exception (lalr1.cc)
The C++ parser features a syntax_error exception, which can be
thrown from the scanner or from user rules to raise syntax errors.