[antlr-interest] Passing parameters to lexer grammars.

Michael LeBlanc Mike at LeBlanc-Engineering.com
Tue Oct 23 05:27:49 PDT 2007


I have something like the following in a combined parser/lexer  
grammar.  I want this to be visible to the lexer, but it isn't.

     @members {
         myClass mine = new myClass();
     }

How can I pass the myClass reference to the lexer grammar?


More information about the antlr-interest mailing list