diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-21 16:22:16 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-21 16:22:16 +0100 |
commit | 12c1d179f32c38a929fcc9adb326a9f44c8288ae (patch) | |
tree | d685922ed93708cbaf01357a95989283a7b86443 /subex/subexast.go | |
parent | 5d8582711936cae3c42f2645d0f304418b17fb7e (diff) | |
download | stred-go-12c1d179f32c38a929fcc9adb326a9f44c8288ae.tar |
Replaces the interfaces implementation of Atom with a tagged union based implementation
Diffstat (limited to 'subex/subexast.go')
-rw-r--r-- | subex/subexast.go | 4 |
1 files changed, 2 insertions, 2 deletions
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, } } |