<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main/command.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-19 15:19:42 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-19 15:19:42 +0100
commitdae74317d84471f6a859117fcbba1cf546be8ea1 (patch)
treedb8516ba8a5a208d16aaa0e6da439541dd496b94 /main/command.go
parent10f847acc7087317b0fbe20b7cf3307a0fafab8a (diff)
downloadstred-go-dae74317d84471f6a859117fcbba1cf546be8ea1.tar
Adds parsing substitute commands, though executing them currently does nothing
Diffstat (limited to 'main/command.go')
-rw-r--r--main/command.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/command.go b/main/command.go
index c61b0cd..8053b86 100644
--- a/main/command.go
+++ b/main/command.go
@@ -2,6 +2,7 @@ package main
import (
"main/walk"
+ "main/subex"
)
type PrintValueCommand struct {}
@@ -103,6 +104,13 @@ func (cmd DeleteAllCommand) exec(state *ProgramState) {
state.space = nil
}
+type SubstituteCommand struct {
+ subex subex.SubexState
+}
+func (cmd SubstituteCommand) exec(state *ProgramState) {
+ // TODO
+}
+
type Command interface {
exec(*ProgramState)
} \ No newline at end of file