diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-10 01:45:40 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-10 01:45:40 -0800 |
| commit | 421880be128dc9614b4d194991bdd47d61af78b8 (patch) | |
| tree | 8a0a5e9f2802917316097496608d8d8419e32989 /types.h | |
| parent | b8a5d399d76efd983255e26eea38029e358cc381 (diff) | |
Refactor of grammar logic to instead *only* use a linked list for all
grammar rules and backrefs. This simplifies things a lot.
Diffstat (limited to 'types.h')
| -rw-r--r-- | types.h | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -89,7 +89,7 @@ typedef struct match_s { } match_t; /* - * Pattern matching rule definition + * Pattern matching rule definition(s) */ typedef struct def_s { const char *name; @@ -98,22 +98,5 @@ typedef struct def_s { struct def_s *next; } def_t; -/* - * Backreference (look up previous capture by name) - */ -typedef struct backref_s { - const char *name; - vm_op_t *op; - struct backref_s *next; -} backref_t; - -/* - * Grammar (a collection of definitions) - */ -typedef struct { - def_t *firstdef; - backref_t *firstbackref; -} grammar_t; - #endif // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1 |
