summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2021-02-02 07:28:22 +0100
committerAkim Demaille <akim.demaille@gmail.com>2021-02-09 07:05:08 +0100
commit2d1d2f87f9550c1d575ee1832b462c7a6abc08f1 (patch)
tree5f0e7188c98db792ce1744cb9a75dc6838e93c30 /NEWS
parentf50fff58d10a029799fd9d62b1a52fb98119b6ee (diff)
downloadbison-2d1d2f87f9550c1d575ee1832b462c7a6abc08f1.tar.gz
doc: printing locations
Document YYLOCATION_PRINT. * doc/bison.texi (Printing Locations): New node.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS15
1 files changed, 12 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 0c51287b..16d1a2c2 100644
--- a/NEWS
+++ b/NEWS
@@ -29,7 +29,7 @@ GNU Bison NEWS
*** GLR traces
- There were not debug traces for deferred calls to user actions. They are
+ There were no debug traces for deferred calls to user actions. They are
logged now.
** New features
@@ -84,8 +84,17 @@ GNU Bison NEWS
*** Abort parsing for memory exhaustion (C)
- The user actions may now use YYNOMEM to abort the current parse with
- memory exhaustion.
+ User actions may now use `YYNOMEM` (similar to `YYACCEPT` and `YYABORT`)
+ to abort the current parse with memory exhaustion.
+
+*** Printing locations in debug traces (C)
+
+ The `YYLOCATION_PRINT(File, Loc)` macro prints a location. It is defined
+ when (i) locations are enabled, (ii) the default type for locations is
+ used, (iii) debug traces are enabled, and (iv) `YYLOCATION_PRINT` is not
+ already defined.
+
+ Users may define `YYLOCATION_PRINT` to cover other cases.
* Noteworthy changes in release 3.7.5 (2021-01-24) [stable]