From 421880be128dc9614b4d194991bdd47d61af78b8 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 10 Jan 2021 01:45:40 -0800 Subject: Refactor of grammar logic to instead *only* use a linked list for all grammar rules and backrefs. This simplifies things a lot. --- types.h | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'types.h') diff --git a/types.h b/types.h index db22eb3..9f61d5f 100644 --- a/types.h +++ b/types.h @@ -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 -- cgit v1.2.3