<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex/subexast.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-21 16:22:16 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-21 16:22:16 +0100
commit12c1d179f32c38a929fcc9adb326a9f44c8288ae (patch)
treed685922ed93708cbaf01357a95989283a7b86443 /subex/subexast.go
parent5d8582711936cae3c42f2645d0f304418b17fb7e (diff)
downloadstred-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.go4
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,
}
}