Java compiler-compiler:

http://www.suntest.com/JavaCC/

IBM's Jikes compiler:

http://www.alphaworks.ibm.com/tech/jikes

Jikes parser generator:

http://www.alphaWorks.ibm.com/tech/JikesPG

There are lots of other Java parsers and parser generators around;
try a web search and you should see quite a few.

HTH,

Rod McChesney, Korobra


Peter Hornsby wrote:
>
> I'm trying to write a class to process Java code - I want to throw some
> (text) code at it and be able to identify:
>
> type (e.g. (general) class, servlet, applet, application)
> class name
> class code
> method signatures
> method names
> method code
>
> I have a number of routines that can do some of this already.  What I'm
> looking for is to implement this using a servlet.  Since javadoc likes to
> have about 32M, I'd prefer to avoid using the complete javadoc program.  Is
> the source code available anywhere?  Another alternative would be to use
> reflection; however AFAIK reflection can only operate on compiled code
> rather than raw text.
>
> Pete
>
> ------------------------------------------------------------------------
> Peter Hornsby,
> Department of Computer Science
> Loughborough University,
> Loughborough,
> Leicestershire,UK       EMAIL:[EMAIL PROTECTED]
> LE11 3TU.               Tel: +44 (0)1509 222799
>                         Fax: +44 (0)1509 211586
>
> "My dad's this long-haired drug-taking weirdo, hangs out with a
> heap of Goths - of COURSE I became a computer geek."
>         - attrib. to Ada B. Lovelace
> ------------------------------------------------------------------------
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to