From dae74317d84471f6a859117fcbba1cf546be8ea1 Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Wed, 19 Apr 2023 15:19:42 +0100 Subject: Adds parsing substitute commands, though executing them currently does nothing --- main/command.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'main/command.go') 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 -- cgit v1.2.3