diff options
author | Bobby Bingham <koorogi@koorogi.info> | 2017-07-25 21:08:44 -0500 |
---|---|---|
committer | Bobby Bingham <koorogi@koorogi.info> | 2017-07-25 21:09:45 -0500 |
commit | 0e96b8551b5293ffeadfebc31b85a165b0a74b99 (patch) | |
tree | 1057a6bc62f64b9172d3d73a2d4a6cf422cc2f7e /ast.h | |
parent | ee78102672afdede839489fa0b1932b64335eaaf (diff) |
Move the previous special-case logic for removing 1-1 repeats into this
pass.
Diffstat (limited to 'ast.h')
-rw-r--r-- | ast.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -28,7 +28,7 @@ struct atom { struct repeat counts; struct atom *child; } repeat; - const struct atom *children[2]; + struct atom *children[2]; const char *literal; } u; }; @@ -38,6 +38,8 @@ void dump_atom(const struct atom *a); void print_regex(const struct atom *a); +void simplify(struct atom *a); + extern struct atom *ast; #endif |