aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-10 01:45:40 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-10 01:45:40 -0800
commit421880be128dc9614b4d194991bdd47d61af78b8 (patch)
tree8a0a5e9f2802917316097496608d8d8419e32989 /types.h
parentb8a5d399d76efd983255e26eea38029e358cc381 (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.h19
1 files changed, 1 insertions, 18 deletions
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