[antlr-interest] Language Design Patterns Section 12.5 Problem
Jim Idle
jimi at temporal-wave.com
Tue Sep 1 08:27:00 PDT 2009
Snapshot is on Hudson. But you can also get it from www.antlr.org/download
Look for 3.1.4 master snapshot jar.
Jim
On Sep 1, 2009, at 9:36 AM, Jan Nielsen <jan.sture.nielsen at gmail.com>
wrote:
> It appears to be this issue:
>
> http://www.antlr.org/jira/browse/ANTLR-374
>
> This issue is marked as resolved in 3.1.4 - but 3.1.4 has not been
> released yet. And, unfortunately, it does not look like a
> 3.1.4-SNAPSHOT build is available from Hudson:
>
> http://antlr.org/hudson/
>
> The ANTLR FishEye tar-ball, as of this morning, unfortunately does not
> build, either, so it looks like I'm stuck at this point, unless
> someone has an idea?
>
>
> Thanks,
>
> Jan
>
>
>
> On Mon, Aug 31, 2009 at 11:24 PM, Jan
> Nielsen<jan.sture.nielsen at gmail.com> wrote:
>> I'm not sure if this is the right forum to discuss a little problem I
>> encountered in section 12.5 of Language Design Patterns (B6.0), but
>> I'm sure this is the most likely spot for some help...I got the
>> following:
>>
>> java -cp antlr-3.1.3.jar org.antlr.Tool Cymbol.g Gen.g
>> warning(200): Cymbol.g:94:45: Decision can match input such as
>> "'else'" using multiple alternatives: 1, 2
>> As a result, alternative(s) 2 were disabled for that input
>> error(100): :1:1: syntax error: antlr: Gen.g:1:1: unexpected
>> token: operator
>> error(10): internal error: Exception java.lang.ClassCastException:
>> antlr.CommonToken cannot be cast to
>> antlr.TokenWithIndex at antlr.TokenStreamRewriteEngine.next
>> Token(TokenStreamRewriteEngine.java:161): can't parse template
>> action
>>
>> error(100): Gen.g:0:0: syntax error: codegen: <AST>:0:0: unexpected
>> end of subtree
>>
>> Per the eBook, I'm expecting the warning(200) but the errors end up
>> causing the generated Gen.java to break:
>>
>> Gen.java:1851: illegal start of expression
>> retval.st = ;
>> ^
>> 1 error
>>
>> Any thoughts from those of you who have paid for the EA eBook (or
>> written it :-)?
>>
>>
>> Thanks,
>>
>> Jan
>>
>
> 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