From b6aab591eae22952949931821d1db7cbb7f0067f Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Sat, 11 May 2013 19:06:23 +0200 Subject: [PATCH] add compile and parse steps to the llk dummy test (segfaults on parse) --- src/backends/llk.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/backends/llk.c b/src/backends/llk.c index d0a5f08..37ee8c3 100644 --- a/src/backends/llk.c +++ b/src/backends/llk.c @@ -336,5 +336,10 @@ int test_llk(void) printf("follow(C) = "); 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; }