libidav/davqlparser.h

changeset 357
5dfbf7b45873
parent 185
cd42cccee550
child 359
bacb54502b24
equal deleted inserted replaced
356:699781a1d6fd 357:5dfbf7b45873
198 * 198 *
199 * FieldExpressions = "-" 199 * FieldExpressions = "-"
200 * | "*", {",", NamedField} 200 * | "*", {",", NamedField}
201 * | FieldExpression, {",", FieldExpression}; 201 * | FieldExpression, {",", FieldExpression};
202 * FieldExpression = NamedField | Identifier; 202 * FieldExpression = NamedField | Identifier;
203 * NamedField = Expression, " as ", Identifier; 203 * NamedField = Expression, " as ", Identifier;
204 * 204 *
205 * SetExpressions = SetExpression, {",", SetExpression}; 205 * Assignments = Assignment, {",", Assignment};
206 * SetExpression = Identifier, "=", Expression; 206 * Assignment = Identifier, "=", Expression;
207 * 207 *
208 * Path = String 208 * Path = String
209 * | "/", [PathNode, {"/", PathNode}], ["/"]; 209 * | "/", [PathNode, {"/", PathNode}], ["/"];
210 * PathNode = {{?Character? - "/"} - Keyword}; 210 * PathNode = {{?Character? - "/"} - Keyword};
211 * 211 *
229 * [" order by ", OrderByClause]; 229 * [" order by ", OrderByClause];
230 * </pre> 230 * </pre>
231 * 231 *
232 * <b>SET:</b> 232 * <b>SET:</b>
233 * <pre> 233 * <pre>
234 * SetStatement = "set ",SetExpressions, 234 * SetStatement = "set ",Assignments,
235 * " at ", Path, 235 * " at ", Path,
236 * [" with ", WithClause], 236 * [" with ", WithClause],
237 * (" where ", LogicalExpression) | " anywhere"; 237 * (" where ", LogicalExpression) | " anywhere";
238 * </pre> 238 * </pre>
239 * 239 *
302 #define DAVQL_ERROR_MISSING_EXPR 12 302 #define DAVQL_ERROR_MISSING_EXPR 12
303 303
304 /** A closed parenthesis ')' is missing. */ 304 /** A closed parenthesis ')' is missing. */
305 #define DAVQL_ERROR_MISSING_PAR 13 305 #define DAVQL_ERROR_MISSING_PAR 13
306 306
307 /** An assignment operator '=' is missing. */
308 #define DAVQL_ERROR_MISSING_ASSIGN 14
309
307 /** The type of the expression could not be determined. */ 310 /** The type of the expression could not be determined. */
308 #define DAVQL_ERROR_INVALID_EXPR 21 311 #define DAVQL_ERROR_INVALID_EXPR 21
309 312
310 /** An operator has been found for an unary expression, but it is invalid. */ 313 /** An operator has been found for an unary expression, but it is invalid. */
311 #define DAVQL_ERROR_INVALID_UNARY_OP 22 314 #define DAVQL_ERROR_INVALID_UNARY_OP 22

mercurial