Dan Baumberger wrote:
There may be other things in your grammar (you have removed all the warnings and errors?), but this fragment does not do what you want. Use: prog : (b=ID '{' (ID ';')+ '}' ';')+ { System.out.println("Found block: " + $b.text);} EOF; See the ';' and the EOF? Jim --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
