From 4459545e6528c8f072de79b799b9ae9b85d01dfb Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Sun, 23 Jul 2017 23:07:17 -0500 Subject: Output regex instead of debugging format --- ast.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ast.h') 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 -- cgit v1.2.3