| 9552 | } |
| 9553 | |
| 9554 | xpath_ast_node* parse() |
| 9555 | { |
| 9556 | xpath_ast_node* result = parse_expression(); |
| 9557 | |
| 9558 | if (_lexer.current() != lex_eof) |
| 9559 | { |
| 9560 | // there are still unparsed tokens left, error |
| 9561 | throw_error("Incorrect query"); |
| 9562 | } |
| 9563 | |
| 9564 | return result; |
| 9565 | } |
| 9566 | |
| 9567 | static xpath_ast_node* parse(const char_t* query, xpath_variable_set* variables, xpath_allocator* alloc, xpath_parse_result* result) |
| 9568 | { |