diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-20 11:42:47 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-20 11:42:47 +0100 |
commit | c1c33227ab72de1e5f21a08ee74c3df667148343 (patch) | |
tree | 6eb70d5bfa54a69129cdce14ea1b8902f23364c6 /subex/subexast.go | |
parent | a0a416e7762fcdcc066617da8083b0372b87155c (diff) | |
download | stred-go-c1c33227ab72de1e5f21a08ee74c3df667148343.tar |
Adds non-string literal syntax to subex
Diffstat (limited to 'subex/subexast.go')
-rw-r--r-- | subex/subexast.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/subex/subexast.go b/subex/subexast.go index fb16658..bc80835 100644 --- a/subex/subexast.go +++ b/subex/subexast.go @@ -253,3 +253,9 @@ func (ast SubexASTNot) compileWith(next SubexState) SubexState { }), } } + +// Does nothing +type SubexASTEmpty struct {} +func (ast SubexASTEmpty) compileWith(next SubexState) SubexState { + return next +} |