summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-04-22 19:24:11 +0200
committerAkim Demaille <akim.demaille@gmail.com>2019-04-25 20:20:59 +0200
commit9260e5ca4fa62ff971fc52a2dd64474dd60e5990 (patch)
tree45640c9b3a1b8aba85841f3ad9aafeae9409ca1a /NEWS
parent971e72514fd38938ae5370ff13473e5111e886ce (diff)
downloadbison-9260e5ca4fa62ff971fc52a2dd64474dd60e5990.tar.gz
api.location.type: support it in C
Reported by Balázs Scheidler. * data/skeletons/c.m4 (b4_location_type_define): Use api.location.type if defined. * doc/bison.texi: Document it. * tests/local.at (AT_C_IF, AT_LANG_CASE): New. Support Span in C. * tests/calc.at (Span): Convert it to be usable in C and C++. Check api.location.type with yacc.c and glr.c.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS9
1 files changed, 9 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 3228a6fd..f9cd2b42 100644
--- a/NEWS
+++ b/NEWS
@@ -86,6 +86,15 @@ GNU Bison NEWS
%define api.header.include {<parser/parse.h>}
+*** api.location.type is now supported in C (yacc.c, glr.c)
+
+ The %define variable api.location.type defines the name of the type to use
+ for locations. When defined, Bison no longer defines YYLTYPE.
+
+ This can be used in programs with several parsers to factor their
+ definition of locations: let one of them generate them, and the others
+ just use them.
+
** Documentation
A new example in C shows an simple infix calculator with a hand-written