refactor and bughunt unsuccessfully trying to find out why

h_first(2, ...) won't give me length-2 strings
This commit is contained in:
Sven M. Hallberg 2013-05-22 22:45:25 +02:00
parent 289c57aef5
commit 2c8d76d7ea
3 changed files with 27 additions and 56 deletions

View file

@ -369,12 +369,12 @@ int test_llk(void)
}
h_pprint_grammar(stdout, g, 0);
printf("generate epsilon: ");
printf("derive epsilon: ");
h_pprint_symbolset(stdout, g, g->geneps, 0);
printf("first(A) = ");
h_pprint_stringset(stdout, g, h_first(1, g, g->start), 0);
h_pprint_stringset(stdout, g, h_first(2, g, g->start), 0);
printf("follow(C) = ");
h_pprint_stringset(stdout, g, h_follow(1, g, h_desugar(&system_allocator, c)), 0);
h_pprint_stringset(stdout, g, h_follow(2, g, h_desugar(&system_allocator, c)), 0);
h_compile(p, PB_LLk, NULL);