[antlr-interest] ANTLRV3: internal error: org.antlr.tool.Message.toString(Message.java:124): Assertion failed! Message ID 10 created but is not present in errorMsgIDs or warningMsgIDs.
Kay Röpke
kroepke at classdump.org
Sun Aug 10 08:13:37 PDT 2008
Hi!
On Aug 10, 2008, at 2:25 PM, Francis ANDRE wrote:
> Here is the error message
> [14:24:16] error(10): internal error:
> org.antlr.tool.Message.toString(Message.java:124): Assertion failed!
> Message ID 100 created but is not present in errorMsgIDs or
> warningMsgIDs.
>
> I got it when declaring a empty tokens block as
>
> grammar Foo;
>
> tokens {
> }
>
> @header {
> package pippo;
> }
This seems to be fixed in at least 3.1b1:
classdump:tmp kroepke$ antlr31 Foo.g
ANTLR Parser Generator Version 3.1b1 (May 20, 2008) 1989-2008
error(100): Foo.g:4:1: syntax error: antlr: Foo.g:4:1: unexpected
token: }
you might want to get ANTLRWorks 1.2 beta and ANTLR 3.1b2.
cheers,
-k
--
Kay Röpke
http://classdump.org/
More information about the antlr-interest
mailing list