Esempio n. 1
0
int main(int argc, char *argv[])
{
    cypher_parse_result_t *result = cypher_parse(
            "MATCH (n) RETURN n", NULL, NULL, CYPHER_PARSE_ONLY_STATEMENTS);
    if (result == NULL)
    {
        perror("cypher_parse");
        return EXIT_FAILURE;
    }
    printf("Parsed %d AST nodes\n", cypher_parse_result_node_count(result));
    cypher_parse_result_free(result);
    return 0;
}
Esempio n. 2
0
void cleanup(cypher_parse_result_t *result)
{
    cypher_parse_result_free(result);
}
Esempio n. 3
0
static void teardown(void)
{
    cypher_parse_result_free(result);
    fclose(memstream);
    free(memstream_buffer);
}