| 11569 | } |
| 11570 | |
| 11571 | xpath_ast_node* parse() |
| 11572 | { |
| 11573 | xpath_ast_node* result = parse_expression(); |
| 11574 | |
| 11575 | // check if there are unparsed tokens left |
| 11576 | if (_lexer.current() != lex_eof) |
| 11577 | throw_error("Incorrect query"); |
| 11578 | |
| 11579 | return result; |
| 11580 | } |
| 11581 | |
| 11582 | static xpath_ast_node* parse(const char_t* query, xpath_variable_set* variables, xpath_allocator* alloc, xpath_parse_result* result) |
| 11583 | { |