<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex/subexast.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-20 11:42:47 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-20 11:42:47 +0100
commitc1c33227ab72de1e5f21a08ee74c3df667148343 (patch)
tree6eb70d5bfa54a69129cdce14ea1b8902f23364c6 /subex/subexast.go
parenta0a416e7762fcdcc066617da8083b0372b87155c (diff)
downloadstred-go-c1c33227ab72de1e5f21a08ee74c3df667148343.tar
Adds non-string literal syntax to subex
Diffstat (limited to 'subex/subexast.go')
-rw-r--r--subex/subexast.go6
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
+}