[antlr-interest] Cosmetic Issue in Generated Java Parsers w.r.t. JavaDoc Comments
Terence Parr
parrt at cs.usfca.edu
Fri Jul 27 16:41:35 PDT 2007
Hi. I think I meant the javadoc comment on the grammar to be used;
probably not injected yet
/** Javadoc */
grammar T;
...
Ter
On Jul 27, 2007, at 4:29 PM, Randall R Schulz wrote:
> Hi,
>
> I added a JavaDoc comment in the @header section of my grammar
> specification hoping to have it show up in the generated JavaDocs when
> run on the resulting Java sources.
>
> Unfortunately, ANTLR injects import directives between the end of the
> content it copies from the @header section and the beginning of the
> Java "class" definition. This precludes the JavaDoc comment from being
> recognized as applying to the parser class.
>
> It would be nice if the imports were placed above / before the @header
> content.
>
>
> Randall Schulz
More information about the antlr-interest
mailing list