Related articles |
---|
Java Comment-Preserving Grammar matthew-google@faredge.com.au (2004-05-24) |
RE: Java Comment-Preserving Grammar quinn-j@shaw.ca (Quinn Tyler Jackson) (2004-05-30) |
RE: Java Comment-Preserving Grammar matt@faredge.com.au (Matthew Herrmann) (2004-05-30) |
Re: Java Comment-Preserving Grammar dobes@dobesland.com (Dobes Vandermeer) (2004-05-30) |
RE: Java Comment-Preserving Grammar matt@faredge.com.au (Matthew Herrmann) (2004-05-30) |
RE: Java Comment-Preserving Grammar quinn-j@shaw.ca (Quinn Tyler Jackson) (2004-06-21) |
From: | "Matthew Herrmann" <matt@faredge.com.au> |
Newsgroups: | comp.compilers |
Date: | 30 May 2004 13:21:52 -0400 |
Organization: | Compilers Central |
References: | 04-05-085 04-05-075 |
Keywords: | Java, parse, summary |
Posted-Date: | 30 May 2004 13:21:52 EDT |
Hi All,
Thankyou to everyone who wrote back to me regarding this problem.
The solution which I got to work (for posterity) was to modify the grammar
to accept my comment tags as modifiers. I'm then browsing the AST and
manually
outputting the requisite code (advantage is simplicity and precise control
over handling of indenting, comments, etc).
I took a look at the JavaFront tool and StrategoXT. They look excellent
for performing global code cleanups and project-specific lint checks
in the future, similar to what the DMS can do (from my reading).
Many thanks again for your time,
Matt
Return to the
comp.compilers page.
Search the
comp.compilers archives again.