From 12c1d179f32c38a929fcc9adb326a9f44c8288ae Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Fri, 21 Apr 2023 16:22:16 +0100 Subject: Replaces the interfaces implementation of Atom with a tagged union based implementation --- subex/subexast.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subex/subexast.go') diff --git a/subex/subexast.go b/subex/subexast.go index dd98aa9..92c099a 100644 --- a/subex/subexast.go +++ b/subex/subexast.go @@ -179,14 +179,14 @@ func (ast SubexASTCopyString) compileWith(next SubexState) SubexState { } stringContentState := &SubexGroupState { &SubexCopyAtomState { - atom: walk.StringTerminal{}, + atom: walk.NewAtomStringTerminal(), next: next, }, stringAtomState, } stringAtomState.next = stringContentState return &SubexCopyAtomState { - atom: walk.StringTerminal{}, + atom: walk.NewAtomStringTerminal(), next: stringContentState, } } -- cgit v1.2.3