From 2a11acc66738d6300bfa90a22adcd540371060f3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 11 Sep 2020 01:28:06 -0700 Subject: Major overhaul refactor restructuring --- vm.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 vm.h (limited to 'vm.h') 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 +#include +#include + +#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 -- cgit v1.2.3