Re: Trailing comments in bison

"John P. Hartmann" <[email protected]> Sun, 6 Dec 2020 18:03:20 +0100
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
First of all, my commiserations.

Second, you need to deal with this in the scanner, not in the parser.

Essentially, any scanner that processes random data (aka comment) as if 
it were program statements is going to fail miserably.  And so will any 
parser that attempts to make sense of the maelstrom of random tokens it 
receives as a result.

On 12/6/20 17:24, Maury Markowitz wrote:
> In (8-bit) MS BASIC, you can do this:
>