From fb1f51d1da22f34509cf3fe1d174296d36a0f0ad Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Thu, 22 Dec 2022 15:23:28 +0000 Subject: Expressions inside stores are now subexes instead of regexes This simplifies things by no longer needing a regex implementation It also enables transforming text as it is being read into a slot --- main/subexast.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main/subexast.go') diff --git a/main/subexast.go b/main/subexast.go index 54cc5fe..510335f 100644 --- a/main/subexast.go +++ b/main/subexast.go @@ -19,12 +19,12 @@ func (ast SubexASTConcat) String() string { } type SubexASTStore struct { - match RegexAST + match SubexAST slot rune } func (ast SubexASTStore) compileWith(next SubexState) SubexState { return SubexStoreState { - match: ast.match.compileWith(RegexNoneState{}), + match: ast.match.compileWith(SubexNoneState{}), slot: ast.slot, next: next, } -- cgit v1.2.3