Parses the "Expr" rule. @return query expression or null @throws QueryException query exception
()
| 1105 | * @throws QueryException query exception |
| 1106 | */ |
| 1107 | private Expr expr() throws QueryException { |
| 1108 | final Expr expr = single(); |
| 1109 | if(expr == null) { |
| 1110 | if(more()) return null; |
| 1111 | throw alterError(NOEXPR); |
| 1112 | } |
| 1113 | |
| 1114 | if(!wsConsume(",")) return expr; |
| 1115 | final ExprList el = new ExprList().add(expr); |
| 1116 | do add(el, single()); while(wsConsume(",")); |
| 1117 | return new List(info(), el.finish()); |
| 1118 | } |
| 1119 | |
| 1120 | /** |
| 1121 | * Parses the "ExprSingle" rule. |
no test coverage detected