From 81dbd0d82e5812d620bc16184583df10b1738cee Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 10 Dec 2018 17:41:24 +0100 Subject: C++: support variadic emplace Suggested by Askar Safin. http://lists.gnu.org/archive/html/bug-bison/2018-12/msg00006.html * data/variant.hh: Implement. * tests/types.at: Check. * doc/bison.texi: Document. --- NEWS | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 3b714d6a..5f23fa79 100644 --- a/NEWS +++ b/NEWS @@ -100,6 +100,22 @@ GNU Bison NEWS until it sees the '='. So we notate the two possible reductions to indicate that each conflicts in one rule. +*** C++: Variadic emplace + + If your application requires C++11, you may now use a variadic emplace for + semantic values: + + %define api.value.type variant + %token > PAIR + + in your scanner: + + int yylex (parser::semantic_type *lvalp) + { + lvalp->emplace > (1, 2); + return parser::token::PAIR; + } + *** More POSIX Yacc compatibility warnings More Bison specific directives are now reported with -y or -Wyacc. This -- cgit v1.2.1