On Fri/17-Jul, at 1:10 AM, Bryan S Follins wrote: > Tom, > > How can I add a rule to the code below which would allow me to enter > a number (like a zip code?)
To accept a simple string of numbers, you can do something equivalent to ID for alphabetic tokens: ZIP : '0'..'9'+ Then you'd ned to add ZIP somewhere on the right-hand side of a rule. tom. --~--~---------~--~----~------------~-------~--~----~ 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
