[antlr-interest] Access Specifier for lexer's and parsers
Johannes Luber
jaluber at gmx.de
Tue Feb 10 14:21:59 PST 2009
Jason Moore schrieb:
> Using ANTLR v3 and the CSharp2 language specifier, is there any way to
> indicate that you want the generated lexer or parser to be internal
> versus the default of public?
>
> The namespace is specified with:
>
> @lexer::namespace {My.Namespace}
>
> and I would assume something similar exists for the access specifier,
> but I have been unable to find it.
>
> Thanks,
> Jason
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
Currently there is no way to do so. At least with the Java version of
the tool. Sam Harwell is working a C# port with some extended features,
which allows at least to use access modifiers on rules. Currently there
is only a preview somewhere I can't find the link to - maybe Sam can
help out? Otherwise I hope that things can be ported back to the Java
original.
Johannes
More information about the antlr-interest
mailing list