diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-09-11 01:28:06 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-09-11 01:28:06 -0700 |
| commit | 2a11acc66738d6300bfa90a22adcd540371060f3 (patch) | |
| tree | 4966c9864434da3e43594f0d86dd9362f367fd8e /grammar.h | |
| parent | 8a846230f7b4269af08a6b6496ebd28c4ff459ba (diff) | |
Major overhaul refactor restructuring
Diffstat (limited to 'grammar.h')
| -rw-r--r-- | grammar.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/grammar.h b/grammar.h new file mode 100644 index 0000000..90cc3f2 --- /dev/null +++ b/grammar.h @@ -0,0 +1,18 @@ +/* + * grammar.h - Header file defining grammars (sets of rule definitions) + */ +#ifndef GRAMMAR__H +#define GRAMMAR__H + +#include <stdlib.h> +#include <string.h> + +#include "types.h" + +grammar_t *new_grammar(void); +void add_def(grammar_t *g, const char *src, const char *name, vm_op_t *op); +void load_grammar(grammar_t *g, const char *source); +void print_grammar(grammar_t *g); + + +#endif |
