Thank you Bart! That of course did the trick. I dont know why I didnt think of that.
I appreciate the quick response, have a nice week! -- David Daeschler On Tue, Apr 5, 2011 at 2:31 PM, Bart Kiers <bki...@gmail.com> wrote: > This is enough to demonstrate the problem. When I create a program such as: >> >> state hello >> { >> >> } >> } >> >> The trailing close bracket is not detected as an error. >> <http://www.antlr.org/mailman/options/antlr-interest/your-email-address> > > > Try to "anchor" it by adding an EOF at the end of your entry-rule: > > public prog > : globalStmt+ EOF > ; > > > That way, you force the parser to go through the entire token stream, and > not stop prematurely. > > Regards, > > Bart. > > 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 il-antlr-inter...@googlegroups.com. To unsubscribe from this group, send email to il-antlr-interest+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en.