[antlr-interest] Scopes in lexers don't work

Kay Roepke kroepke at classdump.org
Sun Jul 22 16:32:41 PDT 2007


On Jul 22, 2007, at 10:12 AM, Johannes Luber wrote:

> I've discovered that scopes declared in lexer grammar are generated  
> only
> half correct. There is simply no code which pushes a new object on the
> stack. This results in an access violation every time I want to use  
> the
> scope. Below is Kay's grammar for testing purposes. I find it strange
> that one can use scopes in pure lexers, if they aren't entirely
> supported. Did this bug just fall through the cracks or am I forced to
> use some global variables instead?


I'm sorry, you are right. There were two template invocations missing  
from
lexerRule.
When Ter is back, I'll talk to him and then submit. Should then be  
included
in the next daily build/release.

cheers,
-k
-- 
Kay Röpke
http://classdump.org/






More information about the antlr-interest mailing list