}
}
}
final exprType[] exp = makeExprs();
Tuple t = new Tuple(exp, Tuple.Load, endsWithComma);
addSpecialsAndClearOriginal(n, t);
return t;
} catch (ClassCastException e) {
if (e.getMessage().equals(ExtraArgValue.class.getName())) {
this.stack.getGrammar().addAndReport(
new ParseException("Token: '*' is not expected inside tuples.", lastPop),
"Treated class cast exception on tuple");
}
this.stack.getGrammar().addAndReport(new ParseException("Syntax error while detecting tuple.", lastPop),
"Treated class cast exception on tuple");
while (stack.nodeArity() > 0) {
//clear whatever we had in this construct...
stack.popNode();
}
//recover properly!
return new Tuple(new exprType[0], Tuple.Load, false);
}
}