add compile and parse steps to the llk dummy test (segfaults on parse)

This commit is contained in:
Sven M. Hallberg 2013-05-11 19:06:23 +02:00
parent c64a4e435e
commit b6aab591ea

View file

@ -336,5 +336,10 @@ int test_llk(void)
printf("follow(C) = "); printf("follow(C) = ");
h_pprint_tokenset(stdout, g, h_follow(g, h_desugar(&system_allocator, c)), 0); h_pprint_tokenset(stdout, g, h_follow(g, h_desugar(&system_allocator, c)), 0);
h_compile(p, PB_LLk, NULL);
HParseResult *res = h_parse(p, (uint8_t *)"xxy", 3);
h_pprint(stdout, res->ast, 0, 2);
return 0; return 0;
} }