From 9260e5ca4fa62ff971fc52a2dd64474dd60e5990 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 22 Apr 2019 19:24:11 +0200 Subject: api.location.type: support it in C MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- NEWS | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'NEWS') 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 {} +*** 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 -- cgit v1.2.1