commit 92027f414dc4333233aed2eb254267977de8584d
parent 311e4cc1b8b69eaf96b7c35ccce610f9f51f1c21
Author: ~karx <karx@tilde.team>
Date: Tue, 16 Feb 2021 19:47:03 +0000
Update README
Diffstat:
M | README.md | | | 33 | ++++----------------------------- |
1 file changed, 4 insertions(+), 29 deletions(-)
diff --git a/README.md b/README.md
@@ -30,8 +30,8 @@ The currently available opcodes are as follows:
- `p` - print out the arguments: `pHello World!` prints "Hello World!"
- `a`, `s`, `m`, `d` - add, subtract, multiply, and divide, respectively: `a2-2` adds 2 + 2.
- `l` - declare a variable: `lv9` declares variable `v` with value `9`; doing `p$v` prints out 9.
-- `f` - declare a function: see [Functions](#functions) for more info
-- `#` - comment: the interpreter will skip this line.
+- `f` - declare a function: see [the devlog entry](https:/tilde.team/~karx/blog/sandwich-devlog-3-function-junction.html) for more info
+- `i` - import variables and functions from another file: see [the devlog entry](https://tilde.team/~karx/blog/from-cup-import-coffee-sandwich-devlog-4.html) for more info.
Here's an example "Hello world" program:
@@ -41,31 +41,6 @@ lwWorld!
p$h $w
```
-### Functions
-
-*functions* are ways to "pipe" math output to another operation. For example, you could assign the output to a variable, like below:
-
-```
-#Declare a function
-fxa3-3
-#Call the function and assign it to variable
-lv*x
-#will print out 6
-p$v
-```
-
-Or you could print it out directly:
-
-```
-#Declare a function
-fxs30-3
-#Call it and print it out
-#Will print out 27
-p*x
-```
-
-Read [the devlog entry for more](https:/tilde.team/~karx/blog/sandwich-devlog-3-function-junction.html) info.
-
## Contributing
@@ -90,9 +65,9 @@ Read [this guide](https://git-send-email.io) for more information.
## TODO
-- [ ] Ability to explicitly print math output and assign math output to variables
+- [x] Ability to explicitly print math output and assign math output to variables
- [ ] Better function parsing (multi-instruction functions?)
-- [ ] Importing/Running other files
+- [x] Importing/Running other files
- [ ] "Verbose" or "Debug" mode (environment variable or flag?)
## License