| 10838 | } |
| 10839 | |
| 10840 | xpath_ast_node* parse() |
| 10841 | { |
| 10842 | xpath_ast_node* result = parse_expression(); |
| 10843 | |
| 10844 | if (_lexer.current() != lex_eof) |
| 10845 | { |
| 10846 | // there are still unparsed tokens left, error |
| 10847 | throw_error("Incorrect query"); |
| 10848 | } |
| 10849 | |
| 10850 | return result; |
| 10851 | } |
| 10852 | |
| 10853 | static xpath_ast_node* parse(const char_t* query, xpath_variable_set* variables, xpath_allocator* alloc, xpath_parse_result* result) |
| 10854 | { |