Java Comment-Preserving Grammar

matthew-google@faredge.com.au (Matthew Herrmann)
24 May 2004 00:32:15 -0400

          From comp.compilers

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 sreeni@viswanadha.net (Sreenivasa Viswanadha) (2004-05-30)
Re: Java Comment-Preserving Grammar martin@cs.uu.nl (Martin Bravenboer) (2004-05-30)
Re: Java Comment-Preserving Grammar cdodd@acm.org (Chris Dodd) (2004-05-30)
Re: Java Comment-Preserving Grammar dobes@dobesland.com (Dobes Vandermeer) (2004-05-30)
[11 later articles]
| List of all articles for this month |

From: matthew-google@faredge.com.au (Matthew Herrmann)
Newsgroups: comp.compilers
Date: 24 May 2004 00:32:15 -0400
Organization: http://groups.google.com
Keywords: Java, parse, question
Posted-Date: 24 May 2004 00:32:15 EDT

Hi All,


Is there an available Java grammar which preserves comments in an
output AST tree? I know there are plenty of java grammars out there,
but all ignore comments. I'm happy to use any tool providing I can
gain access to the comments in the tree.


My end goal is to parse commented-out extensions to the java language:


class /*#immutable*/ Blah {


public /*#input*/ int x;
public /*#result*/ int y;


}


Any suggestions appreciated,


Matt


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.