refactor and bughunt unsuccessfully trying to find out why
h_first(2, ...) won't give me length-2 strings
This commit is contained in:
parent
289c57aef5
commit
2c8d76d7ea
3 changed files with 27 additions and 56 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue