as it turns out, my grammar has 'python-like' indentation which is 
handled in an 'IndentedTokenStream' class that already wraps a 
'CommonTokenStream'; i was able to interpolate my own EOF_TOKEN within....

at this point, everything is working just fine....

thanks for all of the help :-)



Gavin Lambert wrote:
> <div class="moz-text-flowed">At 17:34 11/11/2009, David-Sarah Hopwood 
> wrote:
> >On closer investigation, it seems that this problem is due to
> >CommonTokenStream using Token.EOF_TOKEN, which is hardcoded to a
> >CommonToken.
>
> It's probably not too surprising that CommonTokenStream expects to 
> have a stream of CommonTokens... :)
>
> Does deriving your custom token type from CommonToken sort out the 
> problem?  If so, then things are as I'd expect; if not, that might be 
> a codegen bug.
>
>
> </div>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to