2. added the case of interpreting a missing argument as MissingArgPtg
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@434426
13f79535-47bb-0310-9956-
ffa450edef68
private void Abort(String s) {
Error(s);
//System.exit(1); //throw exception??
- throw new RuntimeException("Cannot Parse, sorry : "+s + " [Formula String was: '"+formulaString+"']");
+ throw new RuntimeException("Cannot Parse, sorry : " + s + " @ " + pointer + " [Formula String was: '" + formulaString + "']");
}
Ident();
} else if(look == '"') {
StringLiteral();
+ } else if (look == ')' || look == ',') {
+ tokens.add(new MissingArgPtg());
} else {
String number = GetNum();