libidav/davqlparser.h

changeset 362
9a75b6df3307
parent 359
bacb54502b24
child 365
f04ab0420512
equal deleted inserted replaced
361:b6f2462ee055 362:9a75b6df3307
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 *
223 * <b>SELECT:</b> 223 * <b>SELECT:</b>
224 * <pre> 224 * <pre>
225 * SelectStatement = "select ", FieldExpressions, 225 * SelectStatement = "select ", FieldExpressions,
226 * " from ", Path, 226 * " from ", Path,
227 * [" with ", WithClause], 227 * [" with ", WithClause],
228 * [" where ", LogicalExpression], 228 * [(" where ", LogicalExpression) | " anywhere"],
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