[antlr-interest] what does /** do?

Benjamin Shropshire shro8822 at vandals.uidaho.edu
Mon Feb 25 16:00:17 PST 2008


Loring Craymer wrote:
> That's actually the expected behavior:  ANTLR accepts javadoc comments just before grammar or rule declarations and nowhere else.  Regular comments (/* .. */ or // ) are accepted anywhere--they are filtered out before they can be seen by the parser.
>
> --Loring
OK

Is that normal for Javadoc like systems? The only other one I've used* 
won't throw an error no mater where you put a /** */ or what you  put in 
it. It just does it's best and keeps on going if it can't make out what 
you want.

*http://www.digitalmars.com/d/1.0/ddoc.html


More information about the antlr-interest mailing list