Commit Graph

84 Commits

Author SHA1 Message Date
Krzosa Karol
96d87390bc Propagate polymorphic to lambda 2023-04-01 12:16:38 +02:00
Krzosa Karol
21c9a57d96 Comments 2023-04-01 11:54:52 +02:00
Krzosa Karol
acf64024b9 Move iterator to AST 2023-04-01 11:44:49 +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
61f8c5c825 Removing polymorph from test 2023-03-31 17:52:10 +02:00
Krzosa Karol
aaf1b2f2d9 Cleanup + little polymorph + ast_copy 2023-03-31 08:19:26 +02:00
Krzosa Karol
21c8ceff03 Baby steps struct polymorphs 2023-03-29 21:36:26 +02:00
Krzosa Karol
cf8478e941 polymorphism.core 2023-03-29 11:42:54 +02:00
Krzosa Karol
d8c80fb7a3 Add polymorph token 2023-03-29 11:42:40 +02:00
Krzosa Karol
710fbf431b Iterating type infos nicely 2023-03-29 10:25:25 +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
b572f4ef7c Parsing union 2023-03-29 09:34:33 +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
62aaffdb83 Working on modules finding bugs 2022-10-14 07:06:55 +02:00
Krzosa Karol
022f874c32 Working on math libraries 2022-10-13 12:33:16 +02:00
Krzosa Karol
e37bf8b1bc Add TypeOf operator 2022-10-11 11:13:07 +02:00
Krzosa Karol
13f2f20ea6 Any semantics, lvalue allocates on stack 2022-10-09 23:42:02 +02:00
Krzosa Karol
9ad2da03c8 Load is file relative not module relative 2022-10-09 15:20:53 +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
21ac6662c4 Dynamic typing example 2022-10-09 14:17:48 +02:00
Krzosa Karol
15e4ebd682 Added conditional compilation and Const namespace with OS name 2022-10-08 10:02:50 +02:00
Krzosa Karol
0010b92ef1 Load cannot be namespaced anymore due to weird namespace behaviour that this creates.
I need to add a way to import but force evaluation of everything in the future to make
that up.
2022-10-06 14:24:29 +02:00
Krzosa Karol
8395969620 Typing the untyped values in an array of Any, commenting stuff 2022-10-05 20:54:38 +02:00
Krzosa Karol
6f04eb86b2 Working on format string 2022-10-04 20:32:17 +02:00
Krzosa Karol
ed0b32eb3e Fixing type bugs 2022-10-04 20:03:37 +02:00
Krzosa Karol
fb3226a059 Working on print 2022-10-04 17:02:22 +02:00
Krzosa Karol
e23eaf1394 Improved any support, removed C Var args 2022-10-04 14:15:22 +02:00
Krzosa Karol
3c172233f6 Small changes fixing stuff 2022-10-04 11:42:16 +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
5baff3585e Drawing to screen using multimedia 2022-10-01 22:47:20 +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
Krzosa Karol
d866ebb231 Working on multimedia 2022-10-01 17:07:36 +02:00
Krzosa Karol
1473204860 Constant expressions 2022-10-01 14:31:46 +02:00
Krzosa Karol
02addfb389 Simplify drawing to screen example 2022-10-01 09:29:09 +02:00
Krzosa Karol
0646ae9279 Var args sort of working, but I feel like all this stuff will need to get yanked out
or tested and refactored
2022-09-30 22:33:47 +02:00
Krzosa Karol
4c6497c5d6 Cleanup 2022-09-30 20:07:24 +02:00
Krzosa Karol
6cd0596fd5 Field access now works, somehow! It was easier then I thought,
probably introduced a bunch of bugs though
2022-09-30 19:58:47 +02:00
Krzosa Karol
32fbacff6d Updating README 2022-09-30 16:58:20 +02:00
Krzosa Karol
a6f6147df3 Damn I didn't even know this language could do that, I guess an issue
with namespacing fixed itself
2022-09-30 16:36:55 +02:00
Krzosa Karol
233115cf2c File naming convention change 2022-09-30 16:20:28 +02:00
Krzosa Karol
b1d05bc203 Codegen multiple line strings 2022-09-30 16:05:19 +02:00