> -----Original Message-----
> 
> 
> As a workaround, I changed my production, adding EOF as an 
> optional terminal as follows:
> 
> objectMember : functionExpression EOF? | ID EOF?;
> 
> Everything now works but I'm curious if a better solution for 
> testing individual grammar productions exists.  Suggestions 
> or alternatives?
> 

While it's not the best answer, you could change your test code so that
instead of passing "foo", it passed "foo junk".  That way, your fix is
in the test code, and the production grammar says what you want it to
say.  Better would be for Antlr to include EOF in the follow set if it's
possible.

Troy

> Thanks.
> 
> --Kaleb
> 
> http://twitter.com/kalebpederson
> http://kalebpederson.com
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> 

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to