[antlr-interest] Java.g [version 1.0.6]: are now non-Javadoc comments suppressed?

Roberto Mannai robermann at gmail.com
Fri Aug 27 01:59:04 PDT 2010


Hi all

Maybe I'm overlooking something, but it seems to me that the Java.g
v.1.0.6 grammar (
http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g )
does not emit the standard Java comments  ( /* COMMENT */ ).

When I process the following file, with antlr 3.2:

/** Is this comment returned?*/
public class TestComment {
        /* Is this comment returned?*/
}

I get:
      /** Is this comment returned?*/publicclassTestComment{}

One "previous version" (*) returned:
      /** Is this comment returned?*/
      public class TestComment {
              /* Is this comment returned?*/
      }


Is this behaviour really changed or am I missing/forgetting anything?

Thanks,

Roberto

(*) The previous version was based on Java.g v.1.0.5 (it contains also
some template calls, anyway):
http://codesounding.svn.sourceforge.net/viewvc/codesounding/CodeSounding/trunk/src/codesounding/antlr/JavaRewrite.g?view=markup


More information about the antlr-interest mailing list