[fpc-pascal] deprecated syntax is inconsistent.

Michael Van Canneyt michael at freepascal.org
Thu Apr 29 14:48:39 CEST 2010



On Thu, 29 Apr 2010, Graeme Geldenhuys wrote:

> On 29 April 2010 12:39, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
>>
>> The compiler uses only a single lookahead token, while disambiguating your
>> example would require two.
>
> I did look at the links you posted and still couldn't see the problem.
> The paragraph above gives the key information -  the FPC parses only
> uses a single lookahead.

As far as I remember, this was one of the key strengths of the Pascal
Language: that parsing is possible using a single lookahead token.
(it makes for faster parsing)

The other parsers simply parse the source 'wrong', hence they need
more than one lookahead.

Michael.



More information about the fpc-pascal mailing list