summaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBobby Bingham <koorogi@koorogi.info>2017-07-23 23:07:17 -0500
committerBobby Bingham <koorogi@koorogi.info>2017-07-24 21:19:10 -0500
commit4459545e6528c8f072de79b799b9ae9b85d01dfb (patch)
tree03e144fabc0e830662e40566a2eb7f98eafdf3a8 /ast.h
parentc8a0b7157d544f2359f2373160dcc69cdef8f4de (diff)
Output regex instead of debugging format
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ast.h b/ast.h
index 4694c33..f8183f9 100644
--- a/ast.h
+++ b/ast.h
@@ -17,6 +17,8 @@ enum {
ATOM_PUNCTUATION,
ATOM_EVERYTHING,
ATOM_LITERAL,
+
+ ATOM_MAX
};
struct atom {
@@ -34,6 +36,8 @@ struct atom {
struct atom *mkatom(const struct atom *src);
void dump_atom(const struct atom *a);
+void print_regex(const struct atom *a);
+
extern struct atom *ast;
#endif