[antlr-interest] Fragment tokens are not generated by emit() -- breaks setting TokenLabelType
Jim Idle
jimi at temporal-wave.com
Thu Jul 9 14:57:49 PDT 2009
See the fisheye source browser, or download the source tarball from
Hudson, or request a perforce login by emailing here or the developers
list.
Jim
On Jul 9, 2009, at 1:51 PM, David-Sarah Hopwood <david-sarah at jacaranda.org
> wrote:
> 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
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
More information about the antlr-interest
mailing list