Commit Graph

11 Commits

Author SHA1 Message Date
0ec8923abc Adding some info functions and tests 2024-04-16 09:35:35 +09:00
74a8ae0d5e Moving history path in mal 2024-01-27 18:38:41 +09:00
d16f93c153 Fixing function call
Previously only returned last element of ast, without evaluating other
elements
recursive env_get is now iterative

Signed-off-by: teo3300 <matteo.rogora@live.it>
2024-01-25 22:36:50 +09:00
2147bc7494 Moving back math because I want it variadic
Signed-off-by: teo3300 <matteo.rogora@live.it>
2024-01-19 16:59:51 +09:00
7aac258808 Type retrival, moving back some math to core.rs
Signed-off-by: teo3300 <matteo.rogora@live.it>
2024-01-19 12:32:16 +09:00
92e442b93d Redefining most of the arithmetic symbols using lisp
Pfft, I don't need math, I only need -, < and =

Signed-off-by: teo3300 <matteo.rogora@live.it>
2024-01-18 18:37:49 +09:00
d8c045a5eb Moving even more stuff out of the rust core
Signed-off-by: teo3300 <matteo.rogora@live.it>
2024-01-18 13:42:41 +09:00
aa32495a9d Fixing empty string error
Signed-off-by: teo3300 <matteo.rogora@live.it>
2024-01-17 22:25:38 +09:00
5648ff7709 Moving a whole bunch of stuff in lisp
Signed-off-by: teo3300 <matteo.rogora@live.it>
2024-01-17 20:58:25 +09:00
cf08b7e65a Fixing read-str
Previously the interactive mode looped on a READ fail
Now inner READ errors are treated as unrecoverable and cause the reader
to reset

Signed-off-by: teo3300 <matteo.rogora@live.it>
2024-01-17 13:11:52 +09:00
9491983a05 Moving some functios
- Some functions moved from core.rs to core.mal
- Separating MAL_HOME setting from core/config loading

Signed-off-by: teo3300 <matteo.rogora@live.it>
2024-01-17 12:07:06 +09:00