Commit Graph

67 Commits

Author SHA1 Message Date
Krzosa Karol
8c4975db35 Implemented C variadic arguments 2023-04-14 22:22:34 +02:00
Krzosa Karol
44b0bededa Factor 2023-04-05 21:51:30 +02:00
Krzosa Karol
fb9c8728ea Compiling with MSVC, Using raylib! Cleanup 2023-04-05 21:49:05 +02:00
Krzosa Karol
e2140817df Using For from Array 2023-04-02 12:13:11 +02:00
Krzosa Karol
9bb355ed93 core build system and array, it compiles! 2023-04-02 11:16:13 +02:00
Krzosa Karol
96ce6765fe unique_name sheningans 2023-04-01 20:32:29 +02:00
Krzosa Karol
e8f82f643a Cleanup compile time variables from generated code 2023-04-01 19:54:03 +02:00
Krzosa Karol
9e077d4d88 Unique names for polymorphic types 2023-04-01 11:43:26 +02:00
Krzosa Karol
b14979d754 We are generating basic polymorphic types! 2023-04-01 10:30:07 +02:00
Krzosa Karol
5fb4999ca8 Polymorphs 2023-04-01 09:28:35 +02:00
Krzosa Karol
b6835d0f6a Copying and printing the copy 2023-03-31 22:44:11 +02:00
Krzosa Karol
e70d544029 Core printing 2023-03-31 22:28:18 +02:00
Krzosa Karol
d552716b49 Add di's to ast_copy 2023-03-31 21:40:39 +02:00
Krzosa Karol
b2e8012afa Change name Scratch_Scope to Scoped_Arena 2023-03-31 17:39:00 +02:00
Krzosa Karol
277404fe95 Iterator + start to add core to core codegen 2023-03-31 17:38:32 +02:00
Krzosa Karol
1839279235 Fix iterator traversal order 2023-03-31 12:41:19 +02:00
Krzosa Karol
7dcd53587e Type info uses slices now! Fixed a case of slice needing to have a completed type 2023-03-29 10:22:43 +02:00
Krzosa Karol
cb630951fd Compound expression for union 2023-03-29 10:06:55 +02:00
Krzosa Karol
c9072711b5 Declaring variables of type works 2023-03-29 09:54:15 +02:00
Krzosa Karol
9b91f77cf0 Union type sizing and code generation 2023-03-29 09:52:24 +02:00
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
5495f96b3b Clang format 2023-03-28 21:16:10 +02:00
Krzosa Karol
27d9ad3ddc Fix slice codegen inside calls. Add core_free_compiler 2023-02-10 09:59:06 +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
1121e4aa84 Expose time stats 2023-01-01 19:59:27 +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
647958b72d Getting rid of globals 2023-01-01 14:17:37 +01:00
Krzosa Karol
c5539276ae Working on simplifying configurable allocation scheme 2023-01-01 12:40:58 +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
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
2c53693754 CORE_Static 2022-10-11 13:04:35 +02:00
Krzosa Karol
2f153a7cd3 Replacing core allocation stuff, still need to rewrite map and token
structures
2022-10-10 00:05:38 +02:00
Krzosa Karol
13f2f20ea6 Any semantics, lvalue allocates on stack 2022-10-09 23:42:02 +02:00
Krzosa Karol
54426fdd69 F32 is default float, operator overloads turn literals into default types 2022-10-09 14:51:27 +02:00
Krzosa Karol
ee6f8114ee Ported to Linux! 2022-10-09 12:23:38 +02:00
Krzosa Karol
b22e1ac0db Removing heap allocations, Porting to Unix 2022-10-09 10:34:23 +02:00
Krzosa Karol
15e4ebd682 Added conditional compilation and Const namespace with OS name 2022-10-08 10:02:50 +02:00
Krzosa Karol
ed0b32eb3e Fixing type bugs 2022-10-04 20:03:37 +02:00
Krzosa Karol
e23eaf1394 Improved any support, removed C Var args 2022-10-04 14:15:22 +02:00
Krzosa Karol
b10f3840df Single header mode sort of working 2022-10-02 13:40:04 +02:00
Krzosa Karol
e098663d82 Improving multimedia, trying to add a single c library mode 2022-10-02 12:53:29 +02:00
Krzosa Karol
4451553e85 Fixing line directive codegen for ifs, handling vkey codes 2022-10-01 22:40:13 +02:00
Krzosa Karol
84254fb6dc Get rid of memcopies in codegen, improve Multimedia 2022-10-01 22:07:20 +02:00