Commit graph

42 commits

Author SHA1 Message Date
Ava Hahn
928c9b91ed
add reverse, snippet for prepend implementation 2023-03-08 20:59:22 -08:00
Ava Hahn
6961fcc9fa
add string split method 2023-03-08 19:42:08 -08:00
Ava Hahn
d4121a734a
Add simple string functions 2023-03-08 11:40:46 -08:00
Ava Hahn
8bf4b3c368
finished inc and dec, and tests 2023-03-07 22:16:57 -08:00
Ava Hahn
c74d6f5ddf
Added LT, GT, LTE, and GTE functions, and big test coverage 2023-03-07 22:01:01 -08:00
Ava Hahn
0c5d14ed8e
add mod and exp functions, tests, and also some snippets for common
patterns in the readme
2023-03-07 21:27:45 -08:00
Ava Hahn
7fd47c1812
added list len, front, and back 2023-03-07 14:51:27 -08:00
Ava Hahn
06d30ac263
added typecasts for int and float 2023-03-07 13:43:51 -08:00
Ava Hahn
a429b546d0
add basic arithmatic operations
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-06 19:05:34 -08: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
f22d807b57
added env function and test 2023-03-06 15:50:02 -08:00
Ava Hahn
79184b18ef
bundle sym management funcs in their own module
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-06 15:29:01 -08:00
Ava Hahn
8d6915f69a
add isset
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-06 15:25:23 -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
ca9f755d50
rustfmt previous commit 2023-03-05 22:37:13 -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
cb83fa5655
implement iseq, tests
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-02 12:48:26 -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
28e158f110
add some boolean operations, tests for
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-02 09:43:12 -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
eed16964e6
add echo function
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-01 12:31:58 -08:00
Ava Hahn
bc09cb07b1
rustfmt
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-01 11:47:37 -08:00
Ava Hahn
2439a37aaa
repl now complete
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-03-01 11:14:42 -08:00
Ava Hahn
fbb85f2e3d
update export callback and add tests
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-02-28 11:57:59 -08:00
Ava Hahn
c5e68f25ba
fix up def tests
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-02-28 11:20:00 -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
Ava Hahn
ae365ad63c
WIP commit to re-add and refactor config, repl, and library code
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-02-27 17:30:49 -08:00
Ava Hahn
a1e19a19d9
simplify eval, add member function to symtable to call a symbol 2023-02-23 23:01:47 -08:00
Ava Hahn
e055f26e90
replace mutex with rwlock
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-02-20 19:42:48 -08:00
Ava Hahn
7555a90328
significant refactor and simplification 2023-02-17 21:06:52 -08:00
Ava Hahn
ca4c557d95
WIP commit:
* Fix up project structures
* combine vars and funcs table
* make a place for old code that may be useful to reference
* singleton pattern for sym table

Commentary:
When this change is finally finished I promise to use feature branches
from here on out
2023-02-15 23:30:44 -08:00
Ava Hahn
5261efbc65
big temp status
Signed-off-by: Ava Hahn <ava@aidanis.online>
2023-01-27 17:45:19 -08:00
Aidan Hahn
be73b0b828
refmt 2022-01-16 22:02:40 -08:00
Aidan Hahn
f805290a4b
finally figure out how to hold closures 2022-01-16 22:01:42 -08:00
Aidan Hahn
69f31db23b
WIP: testing closure types 2021-12-31 11:00:13 -08:00
Aidan Hahn
307101327c
variable export and entire config system 2021-11-07 22:04:57 -08:00
Aidan Hahn
0931fbdcf0
add variable export function 2021-11-06 15:48:30 -07:00
Aidan Hahn
7ca42f18da
hook concat into stl 2021-11-03 23:48:14 -07:00
Aidan Hahn
ee3b53bfb5
add append function 2021-11-02 19:05:35 -07:00
Aidan Hahn
5ed8a054d3
primitive repl 2021-09-18 15:26:16 -07:00