[antlr-interest] Global scopes for lexers

Alex Shneyderman a.shneyderman at gmail.com
Thu Aug 2 00:38:20 PDT 2007


> Interesting...well, the stack was not meant to work across lexer
> nextToken calls, only nested function calls.  The dyn scoping here is
> for nesting not for stacks across method calls.

.... ahh yes global scopes will not help me as I do not have a lexer
rule that starts with '{' and ends with '}'. I guess that would be one
silly lexer anyway.

I guess the hackish solution as it exists is the best we can do for now.
Thanks, for making me think through this :-)

Alex.


More information about the antlr-interest mailing list