[antlr-interest] Getting the hang of this
Bryan S Follins
asalh at mindspring.com
Thu Jul 16 22:24:41 PDT 2009
Is anyone out there?
-----Original Message-----
From: Bryan S Follins [mailto:asalh at mindspring.com]
Sent: Thursday, July 16, 2009 17:43
To: 'Bryan S Follins'; 'antlr-interest'
Subject: RE: [antlr-interest] Getting the hang of this
Or in other words, how can I add a rule to the code below which would allow
me to enter a number (like a zip code?)
-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Bryan S Follins
Sent: Thursday, July 16, 2009 16:22
To: 'antlr-interest'
Subject: [antlr-interest] Getting the hang of this
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;};
Lets say, in addition, I wanted to add some code that also give me a
numerical password, how would I do it? In other words, after entering text
for a name to be compiled, what code could I use to let me enter a number in
ANTLRWorks?
List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe:
http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list