return result;
}
protected Component parseExprSingle( TokenStream tokens ) {
if (tokens.matches("for", "$", ANY_VALUE, "IN")) {
throw new ParsingException(tokens.nextPosition(), "XPath 'for' expressions are not supported");
}
if (tokens.matches("some", "$", ANY_VALUE, "IN")) {
throw new ParsingException(tokens.nextPosition(), "XPath 'some' expressions are not supported");
}
if (tokens.matches("every", "$", ANY_VALUE, "IN")) {
throw new ParsingException(tokens.nextPosition(), "XPath 'every' expressions are not supported");
}
if (tokens.matches("if", "(", ANY_VALUE, "IN")) {
throw new ParsingException(tokens.nextPosition(), "XPath if-then-else expressions are not supported");
}
return parseOrExpr(tokens);
}