summaryrefslogtreecommitdiff
path: root/pattern2regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'pattern2regex.c')
-rw-r--r--pattern2regex.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pattern2regex.c b/pattern2regex.c
index 646b007..c9b1743 100644
--- a/pattern2regex.c
+++ b/pattern2regex.c
@@ -12,7 +12,10 @@ int main(int argc, char **argv)
yyin = stdin;
}
- if (!yyparse()) print_regex(ast);
+ if (!yyparse()) {
+ simplify(ast);
+ print_regex(ast);
+ }
fclose(yyin);
return 0;