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
4f7140009d
Minor fixes
...
Signed-off-by: teo3300 <matteo.rogora@live.it >
2024-01-17 19:17:04 +09:00
18ca7ddbdf
Adding quotation, semiquote macro and env access
...
Signed-off-by: teo3300 <matteo.rogora@live.it >
2024-01-17 16:36:18 +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
672c73cb4f
Clippy fix, removed some Debug traits
...
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-12-27 16:38:21 +09:00
6bc8735af6
Step 6
...
- added 'eval', 'slurp', 'read-string'
- 'not' and 'load-file' defined through mal
- added some missing print functions
- listing all defined repl symbols when calling 'help' with no argumens
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-12-27 16:26:46 +09:00
0b47444836
Applied step 5 TCO
...
- Some tests disabled for incompatibility
- next step is to restore those tests, as well as a whole "eval" test
2023-12-21 19:25:24 +09:00
816a09504a
Other tests
...
Lotta tests in
- eval
- functional tests
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-12-06 11:35:55 +09:00
83e45334a5
Adding tests
...
- functional tests
- more tests
- tests tests tests
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-11-26 19:48:54 +09:00
1f47c9f57e
Added some other tests
...
- builtin eq test
- load_file return resul
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-11-25 22:29:06 +09:00
1ea3ecbb92
Ok, maybe I should run Cargo fmt BEFORE
...
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-11-25 20:36:21 +09:00
0cbfaaafec
Some more tests
...
- Added hook pre-commit
- Added some reader tests
- Added some eval tests
- Added functional tests
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-11-25 20:30:21 +09:00
2d5791a766
Adding test for reader.rs
...
- will implement other tests later
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-11-22 18:26:28 +09:00
78dee9c848
Added some definition to core
...
- "=" operator (for almost any type)
- "prn" function
- "list" and "list?"
- "empty" and "count"
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-11-21 23:09:39 +09:00
0e85435635
Better? type management
...
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-11-15 18:25:38 +09:00
3c5b03a2a8
Cleaned code
...
- removed dereferences
- help function only provide info for the first symbol
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-11-15 17:42:23 +09:00
695c42010c
Using Rc for everything
...
- avoid eccessive cloning
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-11-15 10:50:29 +09:00
f240d31f27
Created core file
...
- keep core functions in a different file
- I can return custom values UwU
Signed-off-by: teo3300 <matteo.rogora@live.it >
2023-11-14 20:55:28 +09:00