[fpc-pascal] deprecated syntax is inconsistent.

Florian Klaempfl florian at freepascal.org
Thu Apr 29 15:01:14 CEST 2010


Graeme Geldenhuys schrieb:
> On 29 April 2010 14:51, Florian Klaempfl <florian at freepascal.org> wrote:
>> Having a bigger lookahead makes a lot more things far more complex
>> epecially in combination with include files, macros, generics.
> 
> Why?  

Because you've always to take care of the possible extra lookahead. The
scanner knows nothing about syntax.

> You only apply the extra lookaheads where needed (code that
> could be ambiguous). All other parts of the code will be parsed as
> normal - as it is done now.
> 
> So far I know of only two examples where extra lookaheads need to be used.
>   * wiki example where 'default' is used
>   * my example to fix the inconsistent syntax for hint directives (deprecated).
> 




More information about the fpc-pascal mailing list