| 8921 | } |
| 8922 | |
| 8923 | xpath_ast_node* parse() |
| 8924 | { |
| 8925 | xpath_ast_node* result = parse_expression(); |
| 8926 | |
| 8927 | if (_lexer.current() != lex_eof) |
| 8928 | { |
| 8929 | // there are still unparsed tokens left, error |
| 8930 | throw_error("Incorrect query"); |
| 8931 | } |
| 8932 | |
| 8933 | return result; |
| 8934 | } |
| 8935 | |
| 8936 | static xpath_ast_node* parse(const char_t* query, xpath_variable_set* variables, xpath_allocator* alloc, xpath_parse_result* result) |
| 8937 | { |