[antlr-interest] Tom, a question
Tom Nurkkala
tnurkkala at cse.taylor.edu
Fri Jul 17 08:51:12 PDT 2009
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090717/959e9a00/attachment.html
More information about the antlr-interest
mailing list