[antlr-interest] I am planning to write a beautifier for Java (jaboby..)

Jon Schewe jpschewe at mtu.net
Fri Jul 30 20:08:36 PDT 2004


On Fri, 2004-07-30 at 09:50, thirumalaikv wrote:
> Hi 
> I am planning to write a beautifier for Java, which will 
> automatically beautify the code based on certain rules. I have 

Any particular reason the ones that currently exist don't fit your
needs?  You might be better off enhancing an existing one, rather than
starting from scratch.

> 1. I want Special Tokens(spaces, comments, javadocs,...) part of the 
> Token 

You'll probably want to have two Parsers here, one for the Java code and
one for the Javadoc comments.

> 2. I would like to know how to add/remove tokens/nodes of AST/Token. 

I seem to remember this is in the tree construction documentation for
antlr, but could be mistaken.

> 3. Java 1.3.1 grammar 

One can be found on the antlr website, although it tosses comments,
which is why I suggested two parsers in 1.
 
-- 
Jon Schewe | http://mtu.net/~jpschewe
GPG signature at http://mtu.net/~jpschewe/gpg.sig.html
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20040730/682bf359/attachment.bin


More information about the antlr-interest mailing list