[antlr-interest] Newbie question
Marcos Tengelmann
mtengelmann at yahoo.com.br
Fri Sep 8 13:08:25 PDT 2006
Hi,
I am very new to ANTLR (Which BTW is great...) and have a doubt in order to
accomplish the following:
I am trying to do a parser to read a user written file.
In this file we are gonna have the structure (Example):
Function String[] getNames(int bucket) {
return new String[] {"Name1", "Name2", "Name3"};
}
The whole idea is AFTER the word function, it is a Java Lanaguage method
definition.
What I would like to do is parse this and get the text:
"String[] getNames(int bucket) {
return new String[] {"Name1", "Name2", "Name3"};
}"
I really do not care for parsing anything after the word function, just to
pick up the text and send it to a java compiler.
Any ideas of how to do it?
Thanks in Advance!
Marcos
_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale
o discador agora!
http://br.acesso.yahoo.com
More information about the antlr-interest
mailing list