[antlr-interest] Java *_return Access Level
Terence Parr
parrt at cs.usfca.edu
Thu Oct 9 17:46:05 PDT 2008
On Oct 9, 2008, at 5:43 PM, Randall R Schulz wrote:
> So a couple of options suggest themselves right off:
>
> 1) (Crude) A single option that specifies the protection level of the
> generated parser code's returns classes (or structs or whatever
> they're
> called in other target languages).
>
> 2) (Refined) An option that enumerates which returns classes require
> public access.
Or, cut/paste/munge the output template to add private keyword. Put
the text file first in the class path and, Bob's your uncle, you're in
heaven. Or,Just edit the template file in place. Should be org/antlr/
codegen/templates/yourlanguage/AST.stg
Ter
More information about the antlr-interest
mailing list