diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2021-02-02 07:28:22 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2021-02-09 07:05:08 +0100 |
commit | 2d1d2f87f9550c1d575ee1832b462c7a6abc08f1 (patch) | |
tree | 5f0e7188c98db792ce1744cb9a75dc6838e93c30 /NEWS | |
parent | f50fff58d10a029799fd9d62b1a52fb98119b6ee (diff) | |
download | bison-2d1d2f87f9550c1d575ee1832b462c7a6abc08f1.tar.gz |
doc: printing locations
Document YYLOCATION_PRINT.
* doc/bison.texi (Printing Locations): New node.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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] |