[antlr-interest] analysing java source code

Suma Venkatesh sumav_99 at yahoo.com
Thu Oct 2 23:59:44 PDT 2003


Hi
  terence,

 Can you please tell me where in jguru I can get the file needed to make xref run/compile
so that i can build it from there.

Iam working on an obfuscator tool and would like to build it using antlr.Iam totally new
to this and would like to learn it more .

Could u please help me.iam sorry abt delays in the response.trying to squeeze in this
project in the middle of 2 others

thanks in advance,
suma

--- Terence Parr <parrt at antlr.org> wrote:
> See the cross referencing headstart in the file sharing area.
> 
> Terence
> On Wednesday, October 1, 2003, at 10:01 AM, Suma Venkatesh wrote:
> 
> > Hi,
> >
> >   Iam looking for  parsing which can parse an input java source code.I 
> > mean the parser
> > should read the source code and identify the variable names and types 
> > and control
> > structures.I saw java.g example of antlr.But can anyone help me on how 
> > to use that for
> > getting specific results like below.ALso it should the read from an 
> > input file ,parse it
> > and write the output in a file.
> >
> > Eg: Input is :
> >   import java.util.*;
> >
> > public class HelloWorld{
> >
> > public static void main(String args[]) {
> >
> > String message = "Hello World";
> > int count =0;
> >
> > 	while(count <10) {
> >              System.out.println(message);
> >              count++;
> >         }
> >
> > }
> >
> > Output should be :
> >
> > Variables: type name
> >            int  count
> >            String message
> >
> > Can ANTLR do this and if so how ??
> >
> > PLEASE HELP ME!!
> >
> > thanks in advance,
> > suma
> >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Shopping - with improved product search
> > http://shopping.yahoo.com
> >
> >
> >
> > Your use of Yahoo! Groups is subject to 
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> --
> Professor Comp. Sci., University of San Francisco
> Creator, ANTLR Parser Generator, http://www.antlr.org
> Co-founder, http://www.jguru.com
> Co-founder, http://www.knowspam.net enjoy email again!
> Co-founder, http://www.peerscope.com pure link sharing
> 
> 
> 
> 
>  
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list