From 9b26559c8273fd4de6aa6a740d6472a665446274 Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Tue, 25 Apr 2023 09:26:34 +0100 Subject: Refines storing and loading to use ids generated when the subex is compiled instead of the runes --- main/command.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main/command.go') 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) { -- cgit v1.2.3