next();
if (currentToken == TOK_EOF) {
// if prop value is empty string, force to StringProperty
return new StringProperty("");
}
ListProperty propList = null;
while (true) {
Property prop = parseAdditiveExpr();
if (currentToken == TOK_EOF) {
if (propList != null) {
propList.addProperty(prop);
return propList;
} else
return prop;
} else {
if (propList == null) {
propList = new ListProperty(prop);
} else {
propList.addProperty(prop);
}
}
// throw new PropertyException("unexpected token");
}
// return prop;