« Return to Thread: parsing conflict

Re: parsing conflict

by eugenio_ :: Rate this Message:

Reply to Author | View in Thread

It doesn't work with LOOKAHEAD = 2 or 3 or whatever and I don't understand why

Tim Vernum wrote:
On 09/06/2009, at 11:02 PM, eugenio_ wrote:

> I get a conflict error because of <IDENTIFIER> in the rule a(). Now  
> I moved
> the identifier() in the rule a() but I would like to maintain rules  
> as they
> are here.

It sounds like you want to insert a lookahead. From a quick  
inspection it seems like a LOOKAHEAD(2) will do what you want.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@javacc.dev.java.net
For additional commands, e-mail: users-help@javacc.dev.java.net

 « Return to Thread: parsing conflict