<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'main/command.go')
-rw-r--r--main/command.go6
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) {