opensubscriber
   Find in this group all groups
 
Unknown more information…

b : bison-patches@gnu.org 14 February 2012 • 5:11PM -0500

Re: Rename variant and lex_symbols options
by Akim Demaille

REPLY TO AUTHOR
 
REPLY TO GROUP




Hi Hans!

Le 13 févr. 2012 à 15:50, Hans Aberg a écrit :

>>> %token <::std::string> TEXT;
>>> %token <int> NUMBER;
>>>
>>> list:
>>> /* nothing */ { /* Generates an empty string list */ }
>>> | list item     { std::swap ($$, $1); $$.push_back ($2); }
>>> ;
>
> C++11 allows unions having members of types with non-trivial constructors/destructors, which however, must be called explicitly.

Hi Hans,

I don't plan to require C++11 for Bison generated parsers.
That's way too early.



Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.