diff options
| author | mryouse | 2023-06-06 22:12:06 -0400 |
|---|---|---|
| committer | mryouse | 2023-06-06 22:12:06 -0400 |
| commit | d30e4695f7390c56e2f87dfe76fa4e681eaeb082 (patch) | |
| tree | 695cf4bbb72c5aa1fe39b12c19d4d8f39d58e53b | |
| parent | 00bfa63688583ea1d43dbd5bef26aa97570947ff (diff) | |
6/6/2023 update
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | functions.txt | 16 |
2 files changed, 14 insertions, 8 deletions
@@ -19,10 +19,13 @@ now in bytecode - [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. + **Update 6/5: this is starting to really concern me** - [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) + - [ ] bounds issues (`first`/`last` on empty sequences) crashes entirely + - [ ] constants get duplicated in chunks - [ ] i mean, nearly nothing works ## things that hopefully work @@ -36,6 +39,9 @@ now in bytecode - [-] lists/strings: - [x] `first` - [x] `rest` + - [x] `most` + - [x] `last` + - [x] `reverse` - [x] `length` - [x] `concat`/`append` - [x] `in?` (membership for lists, substrings for strings) diff --git a/functions.txt b/functions.txt index addbaff..38c8041 100644 --- a/functions.txt +++ b/functions.txt @@ -73,14 +73,14 @@ META: SEQUENCES: [x] append/concat -[x] first -[x] in? -[ ] last -[x] length -[ ] most -[x] rest -[ ] reverse -[ ] slice +[x] first +[x] in? +[x] last +[x] length +[x] most +[x] rest +[x] reverse +[ ] slice STRINGS: [ ] join |
