Remove wildcard assert from desugar

This commit is contained in:
2024-11-03 12:06:27 +00:00
parent 77e1a77e02
commit 1fea81b74b
2 changed files with 24 additions and 13 deletions

View File

@@ -98,20 +98,8 @@ static void desugar_qmark(regex_term_t *term)
static void desugar_term(regex_term_t *term)
{
switch (term->type) {
case REGEX_TERM_WILDCARD:
assert(false);
break;
case REGEX_TERM_SUBEXPR:
if (REGEX_TERM_SUBEXPR == term->type)
desugar_regex(&term->subexpr);
break;
case REGEX_TERM_CLASS:
case REGEX_TERM_LITERAL:
case REGEX_TERM_EMPTY:
break;
}
switch (term->quantifier) {
case REGEX_QUANTIFIER_PLUS: