Commit graph

88 commits

Author SHA1 Message Date
Shautvast
8eeb09855f added more builtin functions 2025-12-14 18:12:50 +01:00
Shautvast
e5b03d9037 fixed multiple issues with indenting and recursive method calls 2025-12-13 15:28:05 +01:00
Shautvast
38de69dc93 non-constant range expressions 2025-12-09 21:03:49 +01:00
Shautvast
3037c65f68 clippys 2025-12-05 20:45:42 +01:00
Shautvast
a44024b04a bugfix 2025-12-05 20:35:33 +01:00
Shautvast
45d2d6f322 fibonacci is running because I put Rc<RefCell<Values>> on the stack (iso Values). Not sure If I'm happy about that 2025-12-05 20:30:14 +01:00
Shautvast
cd409c0897 bugs in print, global functions wip running fibonacci 2025-12-05 19:02:18 +01:00
Shautvast
f4de9d1158 if-else expression, simple case 2025-11-30 09:11:25 +01:00
Shautvast
d1658bbec6 restructuring things 2025-11-25 17:55:54 +01:00
Shautvast
0e50042bb0 let -> expr 2025-11-25 17:36:00 +01:00
Shautvast
8d61189a03 Moved print from statement to builtin 2025-11-23 20:49:01 +01:00
Shautvast
408d772247 WIP if expression. Moved print from statement to builtin 2025-11-23 20:46:02 +01:00
Shautvast
73d8f6182f error when reserved function name is used for a user defined function 2025-11-21 17:11:41 +01:00
Shautvast
d766ec775a added global function calls, starting now() 2025-11-21 17:02:36 +01:00
Shautvast
3d0aad3de1 undo 2025-11-21 16:20:42 +01:00
Shautvast
8dab4d3eee rename to assembly_pass 2025-11-21 16:19:16 +01:00
Shautvast
9fd0b02380 finished renaming to tipi 2025-11-21 16:16:10 +01:00
Shautvast
cad1f8f1ec refactored from opcode bytes to enum 2025-11-21 16:05:06 +01:00
Shautvast
719238bd77 moved tokens 2025-11-17 11:07:12 +01:00
Shautvast
b5d49ed6eb restructuring 2025-11-17 10:58:21 +01:00
Shautvast
5cec67bb01 rename passes 2025-11-17 10:51:53 +01:00
Shautvast
d8079f34f6 better implementation for if/else 2025-11-17 10:44:51 +01:00
Shautvast
0d8786ebff test indicating that 'if' is not working correctly 2025-11-17 07:13:50 +01:00
Shautvast
8c728f6acb range loop working 2025-11-17 07:11:38 +01:00
Shautvast
db183e95c4 if-else and more tests 2025-11-15 13:34:05 +01:00
Shautvast
1a8f4660b2 a very simple if expression 2025-11-15 12:48:38 +01:00
Shautvast
0bce2ae9eb fix reassignment bugs 2025-11-14 17:37:22 +01:00
Shautvast
44f063fb6b fix issues with arguments for builtin functions 2025-11-14 11:50:20 +01:00
Shautvast
d2106ccf96 repl keeps its state 2025-11-13 10:49:28 +01:00
Shautvast
bcd81677bb all clippys done 2025-11-12 13:00:41 +01:00
Shautvast
0e919983bd all clippys done 2025-11-11 13:12:38 +01:00
Shautvast
07b7dd0337 clippy for Into -> From 2025-11-11 09:33:41 +01:00
Shautvast
827a401fbc clippy's 2025-11-10 22:26:05 +01:00
Shautvast
e079451f0a and more conciseness with a few aliases 2025-11-10 22:06:11 +01:00
Shautvast
daef6a59ed more conciseness with a few aliases 2025-11-10 21:55:22 +01:00
Shautvast
f7230a30f4 refactored a bit so that the file will not grow out of bounds 2025-11-10 18:23:47 +01:00
Shautvast
1315b2878a added support for builtin functions and added some for strings 2025-11-10 18:12:09 +01:00
Shautvast
b83c4bb0cc type checking on constructor arguments 2025-11-10 15:24:31 +01:00
Shautvast
0945d385d0 object instantiation 2025-11-10 15:10:36 +01:00
Shautvast
647ba186b1 removed a lot of duplication I had just created 2025-11-10 11:11:23 +01:00
Shautvast
6f4824efac adding map access was easy 2025-11-10 11:09:55 +01:00
Shautvast
cbc7f6ce7a type inference and building the symbol table earlier in the process. Not perfect: duplicated code, no namespaces of the names in the table 2025-11-10 10:42:53 +01:00
Shautvast
9ee8f193aa bugfix list index 2025-11-09 22:15:54 +01:00
Shautvast
61b9d86aa2 Indexing into lists/maps.
First test with literal list completed. When it's assigned to a var if fails
2025-11-09 21:57:13 +01:00
Shautvast
27fbf4b828 fixed some date issues 2025-11-09 21:57:13 +01:00
Shautvast
3feadcce19 support for date literals 2025-11-09 21:57:13 +01:00
Shautvast
9b6f265c55 added a lot of work in progress, but also a symbol table. Means I could refactor a lot of stuff and remove code. The symbol table is a global storage for vars, functions and objects. Helps with type inference and checking on external symbols 2025-11-08 21:58:19 +01:00
Shautvast
2b3b8d4bb3 external function calling 2025-11-07 20:49:45 +01:00
Shautvast
60b8e50b70 README.md update 2025-11-07 10:41:08 +01:00
Shautvast
24a852f125 instantly refreshable code. untested, but it compiles 2025-11-06 20:52:09 +01:00