<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/main/parse.go
diff options
context:
space:
mode:
authorCharlie Stanton <charlie@shtanton.xyz>2023-04-19 17:05:27 +0100
committerCharlie Stanton <charlie@shtanton.xyz>2023-04-19 17:05:27 +0100
commit773c5e115fbb4e8b432e95e02216af9b23415ca8 (patch)
tree81224b14886fb9a479e2a0302d7220cb7334846b /main/parse.go
parent3fe10dc8f2d00287b10e9689449764dfb3eba3af (diff)
downloadstred-go-773c5e115fbb4e8b432e95e02216af9b23415ca8.tar
Adds the noop command 'o'
Diffstat (limited to 'main/parse.go')
-rw-r--r--main/parse.go2
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")
}