Tom,
How can I add a rule to the code below which would allow me to enter a
number (like a zip code?)
I can already enter letters.
OK...The following is ANTLR Code
grammar T;
r : 'call' ID ';' {System.out.println("invoke "+$ID.text);};
ID : 'a'..'z'+;
WS : (' ' | '\n' | '\r')+ {$channel=HIDDEN;};
Bryan
"When you have eliminated the impossible, whatever remains, however
improbable, must be the truth."
--Sherlock Holmes from Sir Arthur Conan Doyle's The Sign of Four.
I AM an information warrior...
--~--~---------~--~----~------------~-------~--~----~
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