diff options
author | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-19 17:05:27 +0100 |
---|---|---|
committer | Charlie Stanton <charlie@shtanton.xyz> | 2023-04-19 17:05:27 +0100 |
commit | 773c5e115fbb4e8b432e95e02216af9b23415ca8 (patch) | |
tree | 81224b14886fb9a479e2a0302d7220cb7334846b | |
parent | 3fe10dc8f2d00287b10e9689449764dfb3eba3af (diff) | |
download | stred-go-773c5e115fbb4e8b432e95e02216af9b23415ca8.tar |
Adds the noop command 'o'
-rw-r--r-- | main/parse.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/parse.go b/main/parse.go index aed87cc..9cc93e7 100644 --- a/main/parse.go +++ b/main/parse.go @@ -249,6 +249,8 @@ func (p *parser) parseBasicCommand(commandChar rune) Command { case 'i': items := p.parseLiterals() return PrintLiteralsCommand {items: items} + case 'o': + return NoopCommand{} default: panic("Invalid command") } |