parse query to AST
| 19 | |
| 20 | // parse query to AST |
| 21 | AST *buildAST |
| 22 | ( |
| 23 | const char *query |
| 24 | ) { |
| 25 | cypher_parse_result_t *parse_result = |
| 26 | cypher_parse(query, NULL, NULL, CYPHER_PARSE_ONLY_STATEMENTS); |
| 27 | return AST_Build(parse_result); |
| 28 | } |
| 29 | |
| 30 | uint *getASTSegmentIndices(AST *ast) { |
| 31 | // retrieve the indices of each WITH clause |
no test coverage detected