[antlr-interest] question concerning ANTLR java grammar (again)
Claudius Heitz
c0123 at web.de
Fri Sep 9 13:32:37 PDT 2005
Hi,
I used the current java grammar (http://www.antlr.org/grammar/1109874324096/java1.5.zip) and noticed that it accepts code that isn't allowed in Java.
I show it on a small example:
public class E {
public static void main(String[] args) {
java.lang.String;
new ChildOfInner();
}
}
The wrong thing on that is the expression: java.lang.String;
Eclipse tells: "Syntax error. Insert "AssignmentOperator ArrayInitializer" to complete expression"
Because Eclipse doesn't accept it, I suppose this isn't legal java code.
But the ANTLR java grammar accepts it as an expression.
Is this a bug?
If yes, is it already known?
Thanks for answering!
Regards
Claudius
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
More information about the antlr-interest
mailing list