[antlr-interest] ANTLR 3: No way to specify member variables for embedded lexer

Oliver Zeigermann oliver.zeigermann at gmail.com
Fri Sep 9 09:21:54 PDT 2005


If you have a combined lexer/parser grammar there seems to be no way
to specify additional member variables for the lexer like this:

grammar XML;
{

    boolean textMode = false;
}

This is possible only if you split the grammar. Any better solutions?

Oliver


More information about the antlr-interest mailing list