[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].
1.
https://stackoverflow.com/questions/34438023/openfoam-flex-yyin-rdbufstdcin-rdbuf-error
- Re: Bison C++ mid-rule value lost with variants, Akim Demaille, 2018/08/12
- Re: Bison C++ mid-rule value lost with variants, Frank Heckenbach, 2018/08/26
- Re: Bison C++ mid-rule value lost with variants, Akim Demaille, 2018/08/27
- Re: Bison C++ mid-rule value lost with variants,
Hans Åberg <=
- Re: Bison C++ mid-rule value lost with variants, Frank Heckenbach, 2018/08/28
- Bison lexer, Hans Åberg, 2018/08/29
- Re: Bison lexer, Frank Heckenbach, 2018/08/31
- Re: Bison lexer, Hans Åberg, 2018/08/31
- Re: Bison lexer, Frank Heckenbach, 2018/08/31
- Re: Bison lexer, Hans Åberg, 2018/08/31
- Re: Bison C++ mid-rule value lost with variants, Frank Heckenbach, 2018/08/28