diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-09-12 18:20:13 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-09-12 18:20:13 -0700 |
| commit | c18eb4c9968289c4808d70f7124c0b6bed5eb022 (patch) | |
| tree | 97fdbee687e2e83f83403161365b90c99c102ee6 /grammar.h | |
| parent | c0125378b9ec96149aed3107bff719cd8a01b16d (diff) | |
Added backrefs
Diffstat (limited to 'grammar.h')
| -rw-r--r-- | grammar.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -11,6 +11,8 @@ grammar_t *new_grammar(void); void add_def(grammar_t *g, const char *src, const char *name, vm_op_t *op); +void push_backref(grammar_t *g, const char *name, match_t *capture); +void pop_backrefs(grammar_t *g, size_t count); vm_op_t *load_grammar(grammar_t *g, const char *source); vm_op_t *lookup(grammar_t *g, const char *name); |
