9af7ada706
Removed MalType::Bool
...
mplemented instead MalType::T as opposed to Maltype::Nil
2025-06-13 18:30:20 +09:00
e97a348e80
feat(main.rs-parse_tools.rs): added ability to pass arguments
...
Interpreter now only runs a single script and can passes command line arguments to it
2025-04-15 13:45:41 +09:00
d86bd7f7ae
EPrintlns and libs
...
- Moving all repl prints to stderr
- Adding small functions to module string
2024-06-24 00:42:49 +09:00
287b96ea7d
Adding string processing
...
- 'character' type, only contructible by decomposing strings
- 'boom' builtin function ;) to create a list of characters from a string
- string library with basic manipulation functionalities
- slightly improved Makefile
2024-06-22 23:03:25 +09:00
5996af1aea
Map/Vector applicaility
...
- Maps and Vectors can be applied as functions, using keys and int as
their arguments
- Added Identity function
- Test before install
- added conditional mapping
2024-06-22 20:23:24 +09:00
5db1cf1910
Small improvements in function definition
...
- Inline 'def! t' for filter
- Removed 'len'
2024-06-19 16:15:33 +09:00
c5406458de
Adding collect function
...
- Collect function as fn:(collector, x) -> new_collector for collections
- Moving some definitions to "libs" folder
- Map and filter defined in mal
2024-06-19 15:51:20 +09:00
35716afee9
Defining map and filter with lisp
2024-06-19 09:11:34 +09:00
1f20079571
Fixing some atom functions
2024-05-29 08:51:38 +09:00
eb894dfffc
Adding swap function for atoms
2024-05-29 08:32:26 +09:00
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