[antlr-interest] Problems with JavaTreeParser.g
AK
antlr at kindelberger-dresden.de
Wed Mar 30 10:07:34 PDT 2011
Hi,
if I try to parse a (valid) java file I get an error message (exception):
JavaTreeParser.g: node from line 15:3 mismatched tree node: default
expecting <UP>
-----------------------------------------
How can I change the tree grammar file?
Here is a test class:
*public**class*Test {
*public**static**boolean*isBasisTyp(*final**int*pWert) {
*final**boolean*isBasisTyp;
*switch*(pWert) {
*case*1:
*case*2:
*case*3:
isBasisTyp = *true*;
*break*;
*default*:
isBasisTyp = *false*;
*break*;
}
*return*isBasisTyp;
}
}
More information about the antlr-interest
mailing list