From bb09a338814e1ab6e77451a0cedf61341a4d75c8 Mon Sep 17 00:00:00 2001 From: mryouse Date: Wed, 11 May 2022 03:41:52 +0000 Subject: merge TODO into README, update --- README.md | 51 ++++++++++++++++++++++++++++++++++++++++++++++++--- TODO.md | 28 ---------------------------- 2 files changed, 48 insertions(+), 31 deletions(-) delete mode 100644 TODO.md diff --git a/README.md b/README.md index 50b7e8d..a7e48be 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,53 @@ - **Immutable variables**: mutability is scary and makes for strange bugs - **Pure functions**: side effects are also scary -## things that work - - `(print [out :string]) => :bool` +## things that (hopefully) work + +### housekeeping + - `(debug-on) => :bool ; turn on debugging (default)` + - `(debug-off) => :bool ; turn off debugging` - `(exit [[status :int]]) => :bool` - - some arithmetic (`+`, `-`, `*`) + +### io + - `(print [out :string]) => :bool ; print to stdout` + +### math + - `(+ [left :number] [right :number]) => :number` + - `(- [left :number] [right :number]) => :number` + - `(* [left :number] [right :number]) => :number` + +### string + - `(concat [arg1 :string] [arg2 :string]) => :string` + +### flow control + - `(if [cond :bool] [t-branch :expr] [f-branch :expr]) => :any` + +### other - pretty much nothing else + +## TODO (this section may be incomplete) + +### math +- [ ] division (float) +- [ ] division (int) +- [ ] mod (int) +- [ ] exponent + +### strings +- [x] concat +- [ ] substring +- [ ] lower/uppercase + +### flow control +- [x] if +- [ ] if with empty else +- [ ] branch + +### lists +- [ ] lex +- [ ] parse +- [ ] evaluate + +### symbols +- [ ] define +- [ ] access diff --git a/TODO.md b/TODO.md deleted file mode 100644 index caefc4a..0000000 --- a/TODO.md +++ /dev/null @@ -1,28 +0,0 @@ -# TODO - -## Standard Library - -### Math -- [ ] division (float) -- [ ] division (int) -- [ ] mod (int) -- [ ] exponent - -### Strings -- [X] concat -- [ ] substring -- [ ] lower/uppercase - -### Control -- [X] if -- [ ] if with empty else -- [ ] branch - -## Lists -- [ ] lex -- [ ] parse -- [ ] evaluate - -## Symbols -- [ ] define -- [ ] access -- cgit v1.2.3