From c1c33227ab72de1e5f21a08ee74c3df667148343 Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Thu, 20 Apr 2023 11:42:47 +0100 Subject: Adds non-string literal syntax to subex --- subex/subexast.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'subex/subexast.go') 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 +} -- cgit v1.2.3