[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison C++ mid-rule value lost with variants

From: Hans Åberg
Subject: Re: Bison C++ mid-rule value lost with variants
Date: Mon, 27 Aug 2018 23:15:29 +0200

> On 27 Aug 2018, at 22:10, Akim Demaille <address@hidden> wrote:
>> Most of my porting work, apart from writing the new skeletons, was
>> general grammar cleanup and conversion of semantic types from raw
>> pointers and containers to smart pointers and other RAII classes
>> (which was my main goal of the port, of course), and changes in the
>> lexer (dropping flex, but that’s another story).
> I fought a lot with Flex, but it works ok in C++ too with lalr1.cc.
> I have one parser here, 
> https://gitlab.lrde.epita.fr/vcsn/vcsn/tree/master/lib/vcsn/dot,
> and another there 
> https://gitlab.lrde.epita.fr/vcsn/vcsn/tree/master/lib/vcsn/rat
> for instance, using Flex.

That is probably versions before 2.6; the yyin and yyout have been changed in 
the C++ header so that they are no longer pointers, so it is not only 
incompatible with the header of older versions, but also with the code it 
writes, resulting in the issue [1].


reply via email to

[Prev in Thread] Current Thread [Next in Thread]