Graeme Geldenhuys schrieb:
> On 29 April 2010 14:51, Florian Klaempfl <flor...@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).
> 

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to