aboutsummaryrefslogtreecommitdiff
path: root/vm.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 /vm.h
parent8a846230f7b4269af08a6b6496ebd28c4ff459ba (diff)
Major overhaul refactor restructuring
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/vm.h b/vm.h
new file mode 100644
index 0000000..965a040
--- /dev/null
+++ b/vm.h
@@ -0,0 +1,18 @@
+/*
+ * vm.h - Header file for BPEG virtual machine.
+ */
+#ifndef VM__H
+#define VM__H
+
+#include <stdlib.h>
+#include <string.h>
+#include <sys/types.h>
+
+#include "types.h"
+
+match_t *match(grammar_t *g, const char *str, vm_op_t *op);
+void destroy_match(match_t **m);
+void print_pattern(vm_op_t *op);
+void print_match(match_t *m, const char *color, int verbose);
+
+#endif