From 450eb27f56bddaff9aa52051d6ef08c00f77e117 Mon Sep 17 00:00:00 2001 From: Jim Infield Date: Tue, 10 Aug 2021 11:50:43 -0500 Subject: [PATCH] Updated README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..d4e2436 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +## Make the Deadfish swim + +Write a simple parser that will parse and run Deadfish. + +Deadfish has 4 commands, each 1 character long: + +- `i` increments the value (initially 0) +- `d` decrements the value +- `s` squares the value +- `o` outputs the value into the return array + +Invalid characters should be ignored. + +```rust +parse("iiisdoso") => [ 8, 64 ] +```