detect parse error in llk dummy test

This commit is contained in:
Sven M. Hallberg 2013-05-14 11:51:54 +02:00
parent b488e5485f
commit 0431528065

View file

@ -355,7 +355,10 @@ int test_llk(void)
h_compile(p, PB_LLk, NULL); h_compile(p, PB_LLk, NULL);
HParseResult *res = h_parse(p, (uint8_t *)"xxy", 3); HParseResult *res = h_parse(p, (uint8_t *)"xxy", 3);
h_pprint(stdout, res->ast, 0, 2); if(res)
h_pprint(stdout, res->ast, 0, 2);
else
printf("no parse\n");
return 0; return 0;
} }