Re: quirks in parse-gram.y
Kaz Kylheku <[email protected]> Thu, 22 Apr 2021 08:07:00 -0700
| Newsgroups | gmane.comp.parsers.bison.bugs |
|---|---|
| Message-ID | <[email protected]> |
On 2021-04-21 22:06, Akim Demaille wrote: >> 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! This recently came up in comp.compilers https://compilers.iecc.com/comparch/article/21-03-005