[antlr-interest] Java recognizer

Terence Parr parrt at cs.usfca.edu
Tue Jul 20 16:18:06 PDT 2004


On Jul 20, 2004, at 12:24 PM, Ashwin Shripathi Raj wrote:

> Hi,
>
>   I started using ANTLR today for a project. I need to use it to
> recognize Java code, spit out comments, classnames and methodnames.
> Any suggestions on how I should go about it ? I changed the Java
> grammar slightly to print out the className and methodName. Is there a
> better way to do this ? I dont want to spend much time on this part
> and am looking for more examples. I dont mind reading docs as long as
> they are filled with good examples.

If all you need is the method names and such, just add some prints as 
you've done. :)

Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
Cofounder, http://www.peerscope.com pure link sharing





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

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



More information about the antlr-interest mailing list