diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-04-22 19:24:11 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-04-25 20:20:59 +0200 |
commit | 9260e5ca4fa62ff971fc52a2dd64474dd60e5990 (patch) | |
tree | 45640c9b3a1b8aba85841f3ad9aafeae9409ca1a /NEWS | |
parent | 971e72514fd38938ae5370ff13473e5111e886ce (diff) | |
download | bison-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-- | NEWS | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |