[antlr-interest] grammar works in antlrworks debug mode but not eclipse

D. Frej dieter_frej at gmx.net
Fri Nov 11 00:03:56 PST 2011


 >java -version
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)

exactly what is stated in my %PATH%. And I have only one JDK/JRE 
installed. And that is what eclipse shows (at least from what I figured 
in eclipse ... so thinking about it, I do not even exactly know 
how/where to check that in eclipse).

So, answering your question: yes, I am sure that the same JVM is used

Cheers,

Didi



Am 10.11.2011 18:07, schrieb David Wood:
> Do you have multiple JVMs installed and are you sure the one used by
> Eclipse is the same as that used at the command line?
>
>
> David Wood
> Computing Systems for Wireless Networks
> IBM TJ Watson Research Center
> dawood at us.ibm.com
> 914-784-5123 (office), 914-396-6515 (mobile)
>
>
>
>
> From:   Jim Idle<jimi at temporal-wave.com>
> To:     antlr-interest at antlr.org
> Date:   11/10/2011 10:48 AM
> Subject:        Re: [antlr-interest] grammar works in antlrworks debug
> mode but not    eclipse
> Sent by:        antlr-interest-bounces at antlr.org
>
>
>
> There is not enough information here for anyone to help. What do you mean
> by " only some rules works but not all"? They give syntax errors? Lexer?
> Parser? Exception? etc.
>
> Jim
>
>> -----Original Message-----
>> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
>> bounces at antlr.org] On Behalf Of D. Frej
>> Sent: Thursday, November 10, 2011 2:05 AM
>> To: antlr-interest at antlr.org
>> Subject: [antlr-interest] grammar works in antlrworks debug mode but
>> not eclipse
>>
>> Hi,
>>
>> I created a grammar with the latest antlrworks. With antlrworks' debug
>> functionality I "tested" the grammar. For proper throughout testing I
>> copied the generated Lexer and Parser code to my eclipse project. The
>> only change I made to the code was to add a package declaration.
>>
>> However, when I ran the code in eclipse only some rules works but not
>> all. An input that works perfectly in antlrworks debug functionality is
>> not working in eclipse. Any suggestions? I tried it with antlr-3.4 as
>> well as an older version (3.1.1).
>>
>> This behaviour happens to me for the first time, even though I am using
>> antlr for quite some time and in different versions.
>>
>> Thanks,
>>
>> - Didi
>>
>> List: http://www.antlr.org/mailman/listinfo/antlr-interest
>> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
>> email-address
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
>
>
> 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