The range 'a'..'z' does not mean the letters a to z but the token numbers assigned by ANTLR - you need to read the 5 minute getting started articles in the WIKI or use the search on the support page.
Jim > -----Original Message----- > From: antlr-interest-boun...@antlr.org [mailto:antlr-interest- > boun...@antlr.org] On Behalf Of D. Frej > Sent: Thursday, November 17, 2011 12:15 AM > To: antlr-interest@antlr.org > Subject: [antlr-interest] valid grammar does not compile > > Hi, > > I build the following grammar with antlrworks: > > grammar questionmark; > > horef > : '\?' ('a'..'z') > ; > > antlrworks tells me "check grammar succeeded". However, debugging does > not works because the generated code does not compile !? > > My question: how does the rule have to look like so that the code > compile? > I want to parse text of the form ?a which should be a trivial task for > antlr. > > Thanks, > > Didi > -- > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie > mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de > > 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 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.