[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trailing comments in bison
From: |
John P. Hartmann |
Subject: |
Re: Trailing comments in bison |
Date: |
Sun, 6 Dec 2020 18:03:20 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
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: