bug-bison
[Top][All Lists]
Advanced

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

Re: Bison 3.2.90 released [beta]


From: Akim Demaille
Subject: Re: Bison 3.2.90 released [beta]
Date: Tue, 15 Jan 2019 20:41:42 +0100


> Le 15 janv. 2019 à 16:42, Derek Clegg <address@hidden> a écrit :
> 
>> On Jan 14, 2019, at 11:56 PM, Akim Demaille <address@hidden> wrote:
>> 
>> I don't think flex's scanner depend on YYSTYPE.
> 
> It does if you specify %option bison-bridge in your flex file.

I have never used it, and I'm sad that this feature was designed with 
consulting Bison's maintainers.

>> #define YY_DECL int cmap_yylex (CMAP_YYSTYPE* yylval, CMAP_YYLTYPE* yylloc)
> 
> While this is correct, it doesn’t fix the problem when %option bison-bridge 
> is specified.

What does bison-bridge brings you?  Does it give you more than declaring yylex? 
How can it possibly work with %lex-param?

I think it's impossible for Flex to guess what it has to do, the parser needs 
to tell it.

[doc]
> I think this is good, but there still needs a way to deal with %option 
> bison-bridge in my opinion.

Well, Flex introduced a feature on top of a broken feature of Bison without 
consulting us.  I don't think it makes sense to try to save it.


reply via email to

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