| 10373 | } |
| 10374 | |
| 10375 | xpath_ast_node* parse() |
| 10376 | { |
| 10377 | xpath_ast_node* result = parse_expression(); |
| 10378 | |
| 10379 | if (_lexer.current() != lex_eof) |
| 10380 | { |
| 10381 | // there are still unparsed tokens left, error |
| 10382 | throw_error("Incorrect query"); |
| 10383 | } |
| 10384 | |
| 10385 | return result; |
| 10386 | } |
| 10387 | |
| 10388 | static xpath_ast_node* parse( |
| 10389 | const char_t* query, |