Commit graph

16 commits

Author SHA1 Message Date
381852b3bd
Implemented SymTable optimization for efficient variable updates 2023-03-20 17:16:44 -07:00
34e77903a6
Add userlib tests
Document userlib in readme
extend example configuration to include userlib
2023-03-17 13:24:31 -07:00
1ee9ba55fb
Added USERLIB with prepend and set.
Added a q shortcut to quote
get-doc and set-doc no longer conditionally evaluate args
Fixed bug in let, documented potential performance improvements
upped default history to 5k lines
2023-03-17 13:06:27 -07:00
2dfe73de6b
variables defined using def in a let statement now escape local scope
test added as well.
2023-03-17 12:01:43 -07:00
Ava Hahn
20821057f2
complete all introductory documentation, except for the Easy Patterns
section
Also, removed some stray debug lines and added a printed newline
inbetween prompt and output
2023-03-16 15:14:24 -07:00
8efa1dbaad
Fully fledged lambdas, along with efficiency tweaks across the ast 2023-03-13 15:02:19 -07:00
Ava Hahn
f8ab31e9aa
rustfmt on recent additions
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-06 15:53:12 -08:00
Ava Hahn
de29bbf950
help function displays values not
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-06 15:12:59 -08:00
Ava Hahn
dc6342bc74
Several changes, see commit msg
* clean up all tests
* bugfix for zero value functions, and test
* removed expand function, put in snippets
* added doc strings to Symbol type
* added doc strings to symbol declarations
* implemented display for Args type
* wrote a help function
* wrote docstrings for all builtins and config vars
2023-03-05 22:18:49 -08:00
Ava Hahn
4b587f11ab
finished circuit form
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-03 14:29:53 -08:00
Ava Hahn
c235f9727f
finished while form
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-02 15:29:50 -08:00
Ava Hahn
5ce0a8e8b2
add bool var toggle function
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-02 12:15:42 -08:00
Ava Hahn
c1d83a6285
finished let forms
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-01 15:17:50 -08:00
Ava Hahn
bc09cb07b1
rustfmt
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-01 11:47:37 -08:00
Ava Hahn
870b444505
better if, fixes control tests 2023-02-28 11:12:27 -08:00
Ava Hahn
09e3546ba6
implement basic control flow, error handling from functions, many tests
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-02-27 22:53:54 -08:00