From 6a77b63c3cd4edb992b94e42c5a222a1480a3f33 Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Thu, 20 Apr 2023 09:25:51 +0100 Subject: Add commands to append to and swap with the path and X registers --- main/parse.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'main/parse.go') diff --git a/main/parse.go b/main/parse.go index 9cc93e7..8211444 100644 --- a/main/parse.go +++ b/main/parse.go @@ -251,6 +251,14 @@ func (p *parser) parseBasicCommand(commandChar rune) Command { return PrintLiteralsCommand {items: items} case 'o': return NoopCommand{} + case 'x': + return SwapXRegCommand{} + case 'X': + return AppendXRegCommand{} + case 'k': + return SwapPathCommand{} + case 'K': + return AppendPathCommand{} default: panic("Invalid command") } -- cgit v1.2.3