Olivier Lefevre wrote:
> class MyToken {
> 
>     static Set<String, String> legalOptions = new HashSet<String, String>();
> 
>     static { legalOptions.add(defaultOption); }
> 
>     ...
> }

PS: The static initializer above is the equivalent of a C# static constructor.

_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org:8080/mailman/listinfo/antlr-dev

Reply via email to