b44de0a4c0
readme tweaks.
2023-05-10 23:34:01 -04:00
28c8a8a401
add factorial, sum from 1 to n
2023-05-10 13:24:44 -04:00
bc55abc8f4
add length function to builtins.
2023-05-10 11:07:09 -04:00
e15cb4e3aa
reach fibonacci function; document
2023-05-10 11:03:36 -04:00
edbd51b450
add if alias for ifelse function
2023-05-09 23:12:47 -04:00
44853b0e1d
add comparator function
2023-05-09 23:10:06 -04:00
5a0bcbefc6
feat: work on fibonacci function, add = comparator.
2023-05-09 23:08:21 -04:00
b39fea3fa7
add ifelse statement!
2023-05-09 22:42:38 -04:00
1739809380
README tweaks
2023-05-08 12:21:50 -04:00
9db9305c06
readme tweaks
2023-05-08 12:17:11 -04:00
61df0ac26e
tweak: add init example.
2023-05-07 23:08:35 -04:00
4f8f020944
stop chasing mallocs
...
I think for chasing mallocs to be meaningful,
I should have a better model of how every piece
of the code is connected. But that would be difficult
and have required advanced planning,
which I don't feel like doing for this project.
2023-05-07 23:02:28 -04:00
95118bc1d9
delete more elements without overflows.
2023-05-07 22:59:07 -04:00
789a48ccbc
solve bug #1 when deleting lispval
2023-05-07 22:17:38 -04:00
140788b8ed
become a bit less confused about cloning and collecting lambdas
2023-05-07 22:11:49 -04:00
752ee41822
format
2023-05-07 21:56:38 -04:00
1cf5599acc
clean function definitions a bit
...
And in particular, move some common function definitions to
the top
2023-05-07 18:57:22 -04:00
ae21fc683f
add example function definition
2023-05-07 18:43:09 -04:00
3934ab8da8
feat: get user function application working better!
2023-05-07 17:46:17 -04:00
b7e5ec69a2
Revert "redefine def to take two arguments"
...
This reverts commit 239fbeff13
.
2023-05-07 17:02:12 -04:00
d338423ce3
Revert "experimenting with builtin def, to be reverted"
...
This reverts commit 3821788983
.
2023-05-07 17:00:00 -04:00
3821788983
experimenting with builtin def, to be reverted
2023-05-07 16:59:34 -04:00
4c3a173422
Revert "experiment with builtin def; to be reverted"
...
This reverts commit 2f2fa4a7e7
.
2023-05-07 15:46:57 -04:00
2f2fa4a7e7
experiment with builtin def; to be reverted
2023-05-07 15:46:24 -04:00
239fbeff13
redefine def to take two arguments
2023-05-07 15:05:31 -04:00
8b55ef7b9a
feat: save progress.
2023-05-07 14:59:48 -04:00
93696d97d4
feat: add and document user-defined functions!
2023-05-07 14:11:19 -04:00
f49b0fd2b4
add function evaluation? attempt 1
2023-05-07 13:28:34 -04:00
cd75a060c3
add parent/child env distinction when defining a new sym
2023-05-07 13:01:23 -04:00
21a0a4edab
add clone lispenv function
2023-05-07 12:58:11 -04:00
0dbf97b393
remove unused pop and take functions
2023-05-07 12:50:40 -04:00
2f9edb67e6
format
2023-05-07 12:49:22 -04:00
1dfba9f4a1
add parent environments
2023-05-07 12:49:09 -04:00
c16f08f22a
add error bounds checking when deleting objs.
2023-05-07 12:39:57 -04:00
c145c862f9
feat: more scaffolding for functions!
2023-05-07 12:32:42 -04:00
c43aeac8c0
more scaffolding for defining functions
2023-05-07 12:24:04 -04:00
9009175bc9
some scaffolding for adding functions
2023-05-06 23:28:04 -04:00
0bfdb1b962
rename func to builtin_func
...
to differentiate from to be added user defined funcs
2023-05-06 23:07:31 -04:00
3213af26e6
fix nasty for loop bug
2023-05-06 22:55:02 -04:00
8a27c4f429
savepoint
2023-05-06 22:50:19 -04:00
b4a9d358e5
save for the day
2023-05-02 22:56:54 -04:00
b960834f0a
tweak: add license.
2023-05-02 22:09:19 -04:00
5c624faca9
add README.
2023-05-02 22:08:21 -04:00
e7f964c1ad
feat: remove all compiler warnings
2023-05-02 21:33:42 -04:00
beb6b21ea6
feat: squash another memory leak?
2023-05-02 21:04:58 -04:00
b961628a77
feat: squash another leak?
2023-05-02 20:59:09 -04:00
df64451be2
delete some old code
2023-05-02 20:47:50 -04:00
6316fe2426
fix: fix some memory errors by doing the proper thing
...
on expr evaluation
2023-05-02 20:47:16 -04:00
59b92a6479
format
2023-05-02 20:43:12 -04:00
e269917240
feat: figure out valgrind!
2023-05-02 20:41:34 -04:00