mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
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.
This commit is contained in:
9
NEWS
9
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
|
||||
|
||||
Reference in New Issue
Block a user