more thorough comments
This commit is contained in:
parent
969d768205
commit
755b771ee2
1 changed files with 1 additions and 0 deletions
|
|
@ -186,6 +186,7 @@ HParseResult* h_do_parse(const HParser* parser, HParseState *state) {
|
|||
if (!m) {
|
||||
// It doesn't exist, so create a dummy result to cache
|
||||
HLeftRec *base = a_new(HLeftRec, 1);
|
||||
// But only cache it now if there's some chance it could grow; primitive parsers can't
|
||||
if (parser->vtable->higher) {
|
||||
base->seed = NULL; base->rule = parser; base->head = NULL;
|
||||
h_slist_push(state->lr_stack, base);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue