Commit Graph

55 Commits

Author SHA1 Message Date
William Bell
4fc28d3b76 fix seg fault in optimised builds 2025-08-29 13:42:21 +01:00
William Bell
6ad0b2c02e switch allocations to atomic to improve performance 2025-08-20 00:26:35 +01:00
William Bell
0c0832d131 add shell and stdin piping support 2025-08-18 06:22:13 +01:00
William Bell
eb285b6e8f add linux arm64 to builds and reshape how execution is done. 2025-08-16 15:25:33 +01:00
William Bell
663797d1fb change workflow to support other plateforms 2025-08-15 19:06:00 +01:00
413725080b fix for macos 2025-08-14 16:20:52 +01:00
William Bell
bbf8794dd5 fix scope bug in if statement 2025-08-10 22:14:06 +01:00
William Bell
c71375c7a4 fix memory being freed too early 2025-08-10 04:39:50 +01:00
ad3e31b0a2 have memory malloced then converted to GC 2025-08-09 22:11:59 +01:00
William Bell
0635ba8517 work on method wrapper and native function support 2025-08-09 06:40:16 +01:00
6c05eff6a4 Merge branch 'main' of https://github.com/Open-Argon/Chloride 2025-08-04 02:13:37 +01:00
2ba60b38ae fix for macos 2025-08-04 02:13:34 +01:00
af371f5b9f start working on function calls 2025-08-04 02:09:38 +01:00
417d66faf3 write runtime object bootstrap 2025-08-03 01:48:41 +01:00
8ea69cce67 return err in translator 2025-07-14 22:22:26 +01:00
1bdc792705 translate and execute do wraps 2025-07-14 04:51:00 +01:00
f5103cb6a3 follow reuse spec for license 2025-07-13 18:28:05 +01:00
f7ff3393f0 add if statement and declaration 2025-07-13 03:34:31 +01:00
c0eb9e3a04 add hashmap to scope and identifier loading at runtime 2025-07-12 03:33:59 +01:00
fe7eaa8de3 fix some memory leaks 2025-07-09 14:47:16 +01:00
66b44e8f3a add full return err support in parser 2025-07-09 14:34:00 +01:00
e234ea074b start adding error message support 2025-07-09 01:55:40 +01:00
72cc87f5b6 create executable function which identifies and loads a cache if available 2025-07-07 04:03:11 +01:00
5c0ced5e45 start supporting identifiers in bytecode 2025-07-06 03:19:30 +01:00
886599c9c5 change to use cwalk for paths 2025-07-05 23:56:54 +01:00
8b2eedf589 load cache if it exists 2025-07-05 04:38:37 +01:00
246e20014f add file hashing for cache validation and provide the license to the cc0 files in the project 2025-07-01 04:28:32 +01:00
3adecb4eba use hashmap in constants buffer to speed up translation time with large files 2025-06-30 17:56:32 +01:00
aa65393e2c change to uint8_t for bytecode to reduce wasted bytes 2025-06-27 06:07:57 +01:00
6828cc5f1a fix memory leak in declaration and function 2025-06-26 16:56:17 +01:00
498cd39c04 start creating base objects for runtime 2025-06-24 01:55:01 +01:00
74c71c3a1b start working on oop runtime 2025-06-22 19:00:03 +01:00
3a1fc91352 fix some double free, memory leaks, and seg faults 2025-06-14 19:41:31 +01:00
3a19b1519f add declarations to translator 2025-06-14 04:13:14 +01:00
be33dbe89f improve cross plateform binary portability 2025-06-14 01:56:12 +01:00
20621944e6 change string literals to be length terminated instead of null terminated, so null characters can be embeded 2025-06-14 01:16:28 +01:00
937a6598fa add instructions for loading string const to register 2025-06-13 15:42:48 +01:00
27a777ad86 start writing translator 2025-06-13 02:46:42 +01:00
55c1500453 start trying to fix memory leaks 2025-06-10 05:19:37 +01:00
61d8bc61c3 add mulitple variable declaration, with null default. add call 2025-06-05 04:04:41 +01:00
d2518afb8e add identifier to parser 2025-06-01 02:28:27 +01:00
a614eab8fc add more parses and fix minor memory leak 2025-05-31 20:03:06 +01:00
d18ff96f8f start working on parser 2025-05-30 22:23:46 +01:00
ec894d4357 change to dynamic array for lexer and parser to speed up lexical analysis 2025-05-30 16:46:27 +01:00
ddf18ceb2c pass file into flex instead of content buffer 2025-05-30 12:56:25 +01:00
68341db0b0 update lexer to just return the number and then do the other logic somewhere else 2025-05-30 02:12:51 +01:00
626445a906 add copying token value and add Boehm GC ready for runtime implimentation 2025-05-29 00:40:11 +01:00
b82e351daf change over to a linked list system and start trying to fix bug which causes the parser to not output anything meaningful due to memory deallocation 2025-05-28 22:51:27 +01:00
43bc7663fc start implimenting a parser 2025-05-27 17:19:09 +01:00
3dedd7f348 add tokens to state struct 2025-05-27 13:24:56 +01:00