[antlr-interest] Resolving ambiguity
Miguel Ping
miguel.ping at gmail.com
Fri May 4 15:34:34 PDT 2007
I guess you will have to use semantic predicates to decide what to choose
from the table, and actions as bookeeping to know whether a
function has been defined or not.
On 5/4/07, Stefan <jan_ek at op.pl> wrote:
>
> Micheal J napisał(a):
> > Use a symbol table. Works as long as declarations preceeds use in your
> > language.
>
> OK, but how do I do it without changing the grammar? How do I make ANTLR
> choose the 4th alternative instead of the 2nd, when IDENTIFIER is a
> variable?
>
>
> Stefan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20070504/52ba1f30/attachment.html
More information about the antlr-interest
mailing list