Arto Viitanen wrote:
> Frans Bouma [C# MVP] wrote:
>
> > It's my understanding that the C++ syntaxis (similar to C) isn't
> > LR(n) compatible in 100% of the cases (so you WILL get shift/reduce
> > conflicts).
>
> But what does that have to do with ANTLR? It is LL parser, and
> actually it is something they call LL(*). If I understood it right,
> the "*" can be dynamic, and as long as the whole program.
isn't the LR in antLR stand for LR(n) parser generator? i.e. it
generates the action/goto shift/reduce tables for the generic parser
core?
It's been a while since I've looked at antlr, so I might be mistaken
in this. If AntLR is an LL parser generator, it can be done indeed.
Lookaheads longer than a couple of tokens aren't really recommended
btw.
FB
--
------------------------------------------------------------------------
Lead developer of LLBLGen Pro, the productive O/R mapper for .NET
LLBLGen Pro website:
http://www.llblgen.com
My .NET blog:
http://weblogs.asp.net/fbouma
Microsoft MVP (C#)
------------------------------------------------------------------------