[antlr-interest] 2nd edition - Passing parameters to lexer grammars.
Michael LeBlanc
Mike at LeBlanc-Engineering.com
Tue Oct 23 05:44:07 PDT 2007
> Use
>
> @lexer::members {
> myClass mine = new myClass();
> }
>
> instead. BTW, please create a new email instead changing the
> subject of
> a reply, as this messes the thread view up.
Now it's visible ONLY in the lexer grammar. I need to create it in
the parser grammar (or at some higher level) and use it in both
parser and lexer grammars.
Sorry about the earlier message. Is this better?
Mike
More information about the antlr-interest
mailing list