Commit Graph

556 Commits

Author SHA1 Message Date
Krzosa Karol
0622811a87 Cleanup string format. Using stage_arena 2023-03-29 08:40:35 +02:00
Krzosa Karol
b0633c84f4 Allocator cleanup + '_' skips tests 2023-03-29 08:32:24 +02:00
Krzosa Karol
7da3e27c05 Cleanup 2023-03-29 08:14:36 +02:00
Krzosa Karol
1c5f6731a4 demo1.core 2023-03-29 08:05:39 +02:00
Krzosa Karol
67b966cb5b Fixed bad error message when no return value + compound inferred type 2023-03-29 08:03:43 +02:00
Krzosa Karol
0804a76f7e push_struct.core 2023-03-28 22:11:16 +02:00
Krzosa Karol
9f8023ac5c Missing change 2023-03-28 21:47:14 +02:00
Krzosa Karol
622a5bd487 Factor 2023-03-28 21:43:28 +02:00
Krzosa Karol
5495f96b3b Clang format 2023-03-28 21:16:10 +02:00
Krzosa Karol
f53d5dd1f2 Remove ast_visit 2023-03-28 21:14:41 +02:00
Krzosa Karol
90c96f1495 Mark it as complete 2023-02-11 11:12:10 +01:00
Krzosa Karol
391df593a2 Trying to do some code generation 2023-02-11 10:32:11 +01:00
Krzosa Karol
27d9ad3ddc Fix slice codegen inside calls. Add core_free_compiler 2023-02-10 09:59:06 +01:00
Krzosa Karol
dd6dc60d8b Actually substitute token array. init_language_core.
Seems like perf improved
2023-02-10 09:49:46 +01:00
Krzosa Karol
6f8a7ba6c8 Fix arrays in tuples error in C gen. Better api for getting unique name. 2023-02-10 09:04:27 +01:00
Krzosa Karol
d41da94c80 Add string as struct, Fix void pointer indexing
compound for String is not working but maybe that's fine
2023-02-09 20:17:48 +01:00
Krzosa Karol
5e8b3739af Propagating constants in operator overloads 2023-02-09 16:11:16 +01:00
Krzosa Karol
0029e0688b Fix type incomplete of argument in away procedure that has a pointer to
that that is never used outside of procedure definition. We emit void.
2023-02-09 14:41:02 +01:00
Krzosa Karol
7370e8b716 Using arena as token array, remove arenas idea 2023-02-09 12:36:36 +01:00
Krzosa Karol
5138ba0097 Misc changes 2023-01-01 20:08:07 +01:00
Krzosa Karol
1121e4aa84 Expose time stats 2023-01-01 19:59:27 +01:00
Krzosa Karol
aa994c999a Get rid of clib in big int, introduce message api, add stringify message 2023-01-01 19:51:35 +01:00
Krzosa Karol
ec66f02e46 Cleanup iterators, remove logging, add message queue 2023-01-01 19:18:42 +01:00
Krzosa Karol
3de813212a Add todos 2023-01-01 17:50:22 +01:00
Krzosa Karol
d6a5df8d95 Cleanup iterators 2023-01-01 17:44:27 +01:00
Krzosa Karol
d120d05eee Move types to Core_Ctx 2023-01-01 16:27:42 +01:00
Krzosa Karol
d441abcddb Move operator infos to Core_Ctx 2023-01-01 16:14:47 +01:00
Krzosa Karol
34928e3977 Move interns into Core_Ctx 2023-01-01 14:23:59 +01:00
Krzosa Karol
647958b72d Getting rid of globals 2023-01-01 14:17:37 +01:00
Krzosa Karol
c238e5ba46 Organization cleanup, stage arena to Scratch_Arena 2023-01-01 13:15:20 +01:00
Krzosa Karol
39f46900b2 Cleanup includes, remove stdio.h from base 2023-01-01 12:58:57 +01:00
Krzosa Karol
c5539276ae Working on simplifying configurable allocation scheme 2023-01-01 12:40:58 +01:00
Krzosa Karol
8c0a8bf72b Working on simplifying the allocation scheme 2023-01-01 10:48:06 +01:00
Krzosa Karol
d10b72057e Block based arena 2023-01-01 00:38:19 +01:00
Krzosa Karol
d5179bb596 Small allocator changes, fix crash 2022-12-31 21:05:13 +01:00
Karol Krzosa (Nokia)
d75c54f61f Modifying the class hierarchy and removing globals, allocators, simplifying 2022-12-31 20:10:11 +01:00
Krzosa Karol
ffd6bc5d23 Remove pernament arena 2022-12-31 18:02:48 +01:00
Krzosa Karol
55515ff420 Introduce the allocator stuff again 2022-12-31 16:51:01 +01:00
Krzosa Karol
e20edaa3a2 You can use compiler_interface hpp outside 2022-12-31 14:53:40 +01:00
Krzosa Karol
23db7cc5c4 Add Core compiler interface 2022-12-31 14:47:47 +01:00
Krzosa Karol
673db72e29 Misc changes 2022-12-31 14:16:46 +01:00
Krzosa Karol
e07ad3c86d Module changes, found Type_Incomplete error 2022-10-14 17:20:46 +02:00
Krzosa Karol
a60df75cc3 Rename Windows.core 2022-10-14 07:07:06 +02:00
Krzosa Karol
62aaffdb83 Working on modules finding bugs 2022-10-14 07:06:55 +02:00
Krzosa Karol
16a2fe659e Misc changes 2022-10-13 20:46:03 +02:00
Krzosa Karol
022f874c32 Working on math libraries 2022-10-13 12:33:16 +02:00
Krzosa Karol
6e8acf7dc8 Adding missed compiler errors, some work on modules 2022-10-13 11:43:15 +02:00
Krzosa Karol
de0d2181f5 Libc module 2022-10-13 08:19:00 +02:00
Krzosa Karol
f50e7b5250 Errors work better with sublime 2022-10-13 08:18:50 +02:00
Krzosa Karol
ce6c2a33b5 Fix sublime_text build command not working with compiler due to
terminal sequences
2022-10-13 08:01:16 +02:00