diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-25 09:26:34 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-25 09:26:34 +0100 |
commit | 9b26559c8273fd4de6aa6a740d6472a665446274 (patch) | |
tree | beba05acff8ef35438ecd2fc8ee5f910ecdc9a5d /main | |
parent | fa750707cd3dd44bcbf59d9271d389c92b293621 (diff) | |
download | stred-go-9b26559c8273fd4de6aa6a740d6472a665446274.tar |
Refines storing and loading to use ids generated when the subex is compiled instead of the runes
Diffstat (limited to 'main')
-rw-r--r-- | main/command.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main/command.go b/main/command.go index c7b1aa9..55c7cca 100644 --- a/main/command.go +++ b/main/command.go @@ -58,7 +58,7 @@ func (cmd DeletePathCommand) exec(state *ProgramState) { state.path = nil } -func runSubex(state subex.SubexState, in []walk.Atom) (out []walk.Atom, error bool) { +func runSubex(state subex.Transducer, in []walk.Atom) (out []walk.Atom, error bool) { atomsOut, error := subex.RunTransducer(state, in) if error { return nil, true @@ -67,7 +67,7 @@ func runSubex(state subex.SubexState, in []walk.Atom) (out []walk.Atom, error bo } type SubstituteValueCommand struct { - subex subex.SubexState + subex subex.Transducer next Command } func (cmd SubstituteValueCommand) exec(state *ProgramState) { @@ -80,7 +80,7 @@ func (cmd SubstituteValueCommand) exec(state *ProgramState) { } type SubstitutePathCommand struct { - subex subex.SubexState + subex subex.Transducer next Command } func (cmd SubstitutePathCommand) exec(state *ProgramState) { |