Re: quirks in parse-gram.y
Akim Demaille <[email protected]> Wed, 4 Aug 2021 09:39:21 +0200
| Newsgroups | gmane.comp.parsers.bison.bugs |
|---|---|
| Message-ID | <[email protected]> |
> Le 22 avr. 2021 à 07:06, Akim Demaille <[email protected]> a écrit : > > Hi! > >> Le 20 avr. 2021 à 04:18, 叶雨飞 <[email protected]> a écrit : >> 2. The rules grammar indicate an ending “;” is actually optional. In fact, >> the parse-gram.y missed two “;” in separate places. However the doc is >> pretty clear an “;” is expected. Not sure which is intended . > > Good catch. The grammar would be definitely much simpler if the semicolon > were mandatory, but YACC compliance forbids this. So it's the documentation > which is wrong. I'll fix that, thanks! FTR, I have looked for "semicolon" in the documentation, and couldn't find a place where it was falsely declared as mandated. So I don't believe that the documentation was actually wrong. Cheers!