1cc38adba9
add a macroish example
...
that currently doesn't work. outputs this (wrong): (unquote (foldr (lambda acc (lambda binding (cons -> (cons binding (cons acc ()))))) d (cons a (cons b (cons c ())))))
2023-06-15 13:09:02 -04:00
b10b94865f
prepare for removing private stuff
2023-06-15 01:01:27 -04:00
4081bb526c
make unquote only apply to well formed cons lists
...
i wanted to delay it somehow, but this is what i really want (i understand that it's a tradeoff, but...)
2023-06-15 00:53:28 -04:00
c7354d3c56
fix match bug
...
i hope so. put equality checking after variable checking when matching symbols
2023-06-15 00:43:56 -04:00
17463c839f
fix up matches
...
there was a bug i ran into when matching on the empty list
2023-06-15 00:07:27 -04:00
798245aa0f
add unquote special form
2023-06-14 23:47:03 -04:00
9c65b1618b
fix quote
...
made it so that consify works properly on list of lists
2023-06-14 23:34:04 -04:00
aa40bfedbb
add quote special form
2023-06-14 23:28:29 -04:00
058cf26e89
add lambda-like special form
2023-06-14 22:51:42 -04:00
180f03244a
add app special form for convenience
...
should probably add some sort of macro system
2023-06-14 20:58:05 -04:00
87e5bdad48
pubify stuff in preparation for typed-sexp
2023-06-14 19:15:07 -04:00
e3c75ec22b
remove early return when there is no change in simp
2023-06-13 22:54:36 -04:00
7d6aaddf81
decuple default limits
2023-06-13 22:52:26 -04:00
6e00f260a8
i did actually pattern matching holy crap
2023-06-13 22:51:51 -04:00
6a39bf6bac
let's try this
2023-06-13 22:22:53 -04:00
44d6b01ebe
shadow lambda
2023-06-13 14:39:00 -04:00
aeb5dc0ddc
add log
2023-06-13 14:34:43 -04:00
7dcca519d9
better matching
2023-06-13 10:36:22 -04:00
e7b1339790
i need to rewrite terms FASTER
2023-06-12 21:11:30 -04:00
b38faccaac
told you so
2023-06-12 11:41:12 -04:00
c8c12b15e9
tinyvec, gonna revert
2023-06-12 11:40:38 -04:00