[antlr-interest] Fragment tokens are not generated by emit() -- breaks setting TokenLabelType

David-Sarah Hopwood david-sarah at jacaranda.org
Thu Jul 9 13:51:12 PDT 2009


Jim Idle wrote:
> David-Sarah Hopwood wrote:
>> [...] The problem is that the generated code has compilation errors because
>> not all creation of token objects goes through emit(); there are some
>> direct uses of 'new CommonToken(...)':
>>
>> org\jacaranda\verifier\JacarandaLexer.java:4006: incompatible types
>> found   : org.antlr.runtime.CommonToken
>> required: org.jacaranda.verifier.JacarandaToken
>>   d = new CommonToken(input, Token.INVALID_TOKEN_TYPE,
>>           Token.DEFAULT_CHANNEL, dStart1982, getCharIndex()-1);
>>       ^
>
> Fixed (in Java target so far) by: http://www.antlr.org/jira/browse/ANTLR-398

Now that's impressive. I love open-source projects that are responsive to
bug-reports.


At <http://www.antlr.org/hudson/job/ANTLR_Tool/323/changes>, there doesn't
seem to be a way to browse the changes on-line. Are there any plans to
allow that, or have I missed a way to do it already?

-- 
David-Sarah Hopwood  ⚥  http://davidsarah.livejournal.com



More information about the antlr-interest mailing list