Re: Possible bug or simple nuisance compiler warning

Akim Demaille <[email protected]>
Newsgroups gmane.comp.parsers.bison.bugs
Message-ID <[email protected]>
Hi Jot,

> Le 27 nov. 2020 à 09:52, Jot Dot <[email protected]> a écrit :
> 
> > Have you looked at the examples in examples/c++?
> 
> Yes. I can't see anything I'm doing different in that respect. btw: I've been aware of lex/yacc for about 40 years (I'm a fossil) but, up till now, preferred hand coding recursive decent parsers.

You mean recursive descent—Bison's parsers are pretty decent too.


> > The definition of state_type depends on the grammar.  What is your definition?
> 
> Ahhh!!. I see, by putting in the second error token in the rule, the definition for yytable_ changes from an initial
> static const signed char
> to:
> static const short

Right.


> I think this is a possibility of a bug happening here. Just my luck. Things like this just always happen to follow me around.

I would very much like to have your grammar, so that I can check if there is really a danger or not.  It is super unlikely that there is, but I would appreciate to be able to have a closer look.  If you prefer, you can send me your grammar privately, and I promise I won't publish it.

Cheers!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.