Add empty to term types
This commit is contained in:
parent
9494c08f36
commit
fd9fd7ce7f
@ -239,8 +239,7 @@ void parse_free_sequence_children(const parse_sequence_t *s)
|
||||
case PARSE_TERM_SUBEXPR:
|
||||
parse_free_tree_children(&s->contents[i].subexpr);
|
||||
break;
|
||||
case PARSE_TERM_WILDCARD:
|
||||
case PARSE_TERM_LITERAL:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -253,3 +252,4 @@ void parse_free_class_children(const parse_class_t *c)
|
||||
if (NULL != c->contents)
|
||||
free(c->contents);
|
||||
}
|
||||
|
||||
|
@ -26,6 +26,7 @@ typedef enum {
|
||||
PARSE_TERM_CLASS,
|
||||
PARSE_TERM_LITERAL,
|
||||
PARSE_TERM_SUBEXPR,
|
||||
PARSE_TERM_EMPTY,
|
||||
} parse_term_type_t;
|
||||
|
||||
struct _parse_term;
|
||||
|
Loading…
x
Reference in New Issue
Block a user