[il-antlr-interest: 32450] [antlr-interest] Problem while compiling/debugging: int cannot be dereferenced

2011-05-14 Thread Dominik Halfkann
Hello everybody, I have a problem with ANTLR and I hope it's ok that I'm asking that here. I also posted something in the forum, but it seems to be very inactive depending on other posts I saw there... (from http://www.jguru.com/forums/view.jsp?EID=1639158) When I want to debug/compile my

[il-antlr-interest: 32451] Re: [antlr-interest] Problem while compiling/debugging: int cannot be dereferenced

2011-05-14 Thread Jeff Hair
http://www.coderanch.com/t/379354/java/java/int-not-dereferenced-means http://www.coderanch.com/t/379354/java/java/int-not-dereferenced-meansDoesn't look like it's an ANTLR problem. Check the data type of value. On Sat, May 14, 2011 at 8:50 AM, Dominik Halfkann dominik.halfk...@googlemail.com

[il-antlr-interest: 32452] Re: [antlr-interest] Problem while compiling/debugging: int cannot be dereferenced

2011-05-14 Thread Dominik Halfkann
Here are the generated java parts. But I think it's weird, if it's not an ANTLR problem, that would mean ANTLR builts java-files with errors, doesn't it? :o Moreover, I've copy-pasted this gramma part from an example ( http://www.antlr.org/wiki/display/ANTLR3/Expression+evaluator), so this

[il-antlr-interest: 32453] Re: [antlr-interest] Problem while compiling/debugging: int cannot be dereferenced

2011-05-14 Thread John B. Brodie
You have chosen a rule name that clashes with a Java class name, e.g. Integer. Select another name for your current Integer lexer rule. In my opinion this is not an ANTLR problem, rather it is a user error. On Sat, 2011-05-14 at 23:45 +0200, Dominik Halfkann wrote: Here are the generated java

[il-antlr-interest: 32455] Re: [antlr-interest] Problem while compiling/debugging: int cannot be dereferenced

2011-05-14 Thread Dominik Halfkann
You're absolutely right, sry I gave up so early on ANTLR. Now everything works fine and I'm surprised how easy it is to work with it. Thank you for your help! 2011/5/15 John B. Brodie j...@acm.org You have chosen a rule name that clashes with a Java class name, e.g. Integer. Select another