On Thu, 29 Apr 2010, Graeme Geldenhuys wrote:
On 29 April 2010 12:39, Jonas Maebe <jonas.ma...@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.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal