[antlr-interest] Getting the hang of this
Bryan S Follins
asalh at mindspring.com
Thu Jul 16 16:22:17 PDT 2009
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?
More information about the antlr-interest
mailing list