aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormryouse2023-06-01 22:49:25 -0400
committermryouse2023-06-01 22:49:25 -0400
commit6c6afc8d594ad675290bda81a0a6bde3dfa590eb (patch)
tree551507ed5f171f9a180ae2685bec3a30ee708a03
parentb66702e49ab7f90a348bb2bea015fd5901c457d8 (diff)
6/1/2023 update
-rw-r--r--README.md5
-rw-r--r--functions.txt6
2 files changed, 6 insertions, 5 deletions
diff --git a/README.md b/README.md
index a79f32c..e40e36f 100644
--- a/README.md
+++ b/README.md
@@ -16,10 +16,10 @@ now in bytecode
- [-] ~~compiler errors don't stop the VM from running, and are not particularly helpful~~
stopped running with [11e9f1d854](https://git.rawtext.club/mryouse/neb-d/commit/11e9f1d854602aae7cb895cfb2f9fc5dd338e6f8),
helful? not really, not yet.
- - [ ] defining multiple functions in a script doesn't seem to work?
+ - [x] ~~defining multiple functions in a script doesn't seem to work?~~ fixed with [fb4a026dc1](https://git.rawtext.club/mryouse/neb-d/commit/fb4a026dc1a5b6469ff1da013874bc570fe41439)
- [ ] there are many instances of popping on an empty stack. i have a warning emitted,
which should help me track it down *at some point*, but at least it doesn't crash.
- - [ ] `append` on an empty list segfaults
+ - [x] ~~`append` on an empty list segfaults~~ fixed with [af07e3fba5](https://git.rawtext.club/mryouse/neb-d/commit/af07e3fba55ef98aabd54057c6e3433734b81111)
- [ ] arity checking is entirely arbitrary for builtins, non-existant for user-defined functions
- [-] ~~parsing does not handle types correctly, or comments at all~~ parse (but ignore) types with [919994fd32](https://git.rawtext.club/mryouse/neb-d/commit/919994fd3224b6e3cb3e1ce534ae335cecd97f52),
parse comments with [9867aade2a](https://git.rawtext.club/mryouse/neb-d/commit/9867aade2a94ab13aec70f74ccf37d6c38e66fd0)
@@ -32,6 +32,7 @@ now in bytecode
- [-] `func` to define a function (global only?), `lambda` to make one on the fly
- [x] `def`, globally and locally
- [x] `block`? maybe?
+ - [x] `print` (works on everything, no need to `->string`)
- [-] lists/strings:
- [x] `first`
- [x] `rest`
diff --git a/functions.txt b/functions.txt
index 7fd8aea..addbaff 100644
--- a/functions.txt
+++ b/functions.txt
@@ -72,7 +72,7 @@ META:
[ ] user-symbols
SEQUENCES:
-[-] append/concat (only accepts one value)
+[x] append/concat
[x] first
[x] in?
[ ] last
@@ -95,12 +95,12 @@ TERMINAL:
[ ] clear
[ ] env
[ ] exit
-[ ] print
+[-] print
[ ] read-char
[ ] read-line
TYPES:
-[ ] ->string
+[-] ->string (parses but does nothing)
[x] any?
[ ] bool?
[ ] float?