aboutsummaryrefslogtreecommitdiff
path: root/compiler.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-09-11 01:28:06 -0700
committerBruce Hill <bruce@bruce-hill.com>2020-09-11 01:28:06 -0700
commit2a11acc66738d6300bfa90a22adcd540371060f3 (patch)
tree4966c9864434da3e43594f0d86dd9362f367fd8e /compiler.h
parent8a846230f7b4269af08a6b6496ebd28c4ff459ba (diff)
Major overhaul refactor restructuring
Diffstat (limited to 'compiler.h')
-rw-r--r--compiler.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/compiler.h b/compiler.h
new file mode 100644
index 0000000..916d8fe
--- /dev/null
+++ b/compiler.h
@@ -0,0 +1,16 @@
+/*
+ * compiler.h - Header file for BPEG compiler.
+ */
+#ifndef COMPILER__H
+#define COMPILER__H
+
+#include <stdlib.h>
+
+#include "types.h"
+
+vm_op_t *bpeg_simplepattern(const char *str);
+vm_op_t *bpeg_stringpattern(const char *str);
+vm_op_t *bpeg_replacement(vm_op_t *pat, const char *replacement);
+vm_op_t *bpeg_pattern(const char *str);
+
+#endif