Krzosa Karol
|
0360086bab
|
Restructure
|
2022-05-31 18:29:35 +02:00 |
|
Krzosa Karol
|
20accf8293
|
Parsing for stmt
|
2022-05-31 16:45:20 +02:00 |
|
Krzosa Karol
|
41697dec80
|
Ast_Init is not Ast_Binary with TK_Comma
|
2022-05-31 16:24:04 +02:00 |
|
Krzosa Karol
|
7dfc4c7b36
|
Generating nested structs
|
2022-05-31 16:12:18 +02:00 |
|
Krzosa Karol
|
ef9c2f4ee5
|
Cleanup
|
2022-05-31 15:53:49 +02:00 |
|
Krzosa Karol
|
04d38511a9
|
Fix regression, constant variables now get properly rewritten
|
2022-05-31 14:01:18 +02:00 |
|
Krzosa Karol
|
369418b042
|
Rewriting field.accesses that evaluate to constants
|
2022-05-31 13:39:34 +02:00 |
|
Krzosa Karol
|
1168965ba4
|
Accessing constant values in structs
|
2022-05-31 13:27:21 +02:00 |
|
Krzosa Karol
|
437a776d78
|
Folding constant enum access into constant int value
|
2022-05-31 13:10:56 +02:00 |
|
Krzosa Karol
|
627e2bad88
|
Initial enums working
|
2022-05-31 11:50:36 +02:00 |
|
Krzosa Karol
|
5e0aabb1cb
|
Update todo
|
2022-05-30 18:55:15 +02:00 |
|
Krzosa Karol
|
a9b0318720
|
Wanky constant in structs sort of working but long way to go
|
2022-05-30 18:46:01 +02:00 |
|
Krzosa Karol
|
980a3b68b9
|
Struct field access. Damn, I coded for like 30 minutes and then it just worked on the first try
|
2022-05-30 18:27:06 +02:00 |
|
Krzosa Karol
|
0e0b95ab52
|
Constants in structs
|
2022-05-30 13:44:10 +02:00 |
|
Krzosa Karol
|
55fd4ca40c
|
For from pointer to reference
|
2022-05-30 13:34:04 +02:00 |
|
Krzosa Karol
|
3a97e739a8
|
More work on calls and compound statements
|
2022-05-30 13:22:57 +02:00 |
|
Krzosa Karol
|
b2d3e9d8e1
|
Fix invalid pointer in struct type, more work on calls
|
2022-05-30 11:20:00 +02:00 |
|
Krzosa Karol
|
671853287a
|
Fix bug with indexing function call
|
2022-05-30 11:10:27 +02:00 |
|
Krzosa Karol
|
9e24a608cb
|
Rewriting function calls to have named parameters, default values
|
2022-05-30 11:00:30 +02:00 |
|
Krzosa Karol
|
54e3cb5261
|
On constructors
|
2022-05-30 09:10:15 +02:00 |
|
Krzosa Karol
|
c305d4da44
|
Calling functions is working, same syntax as compound stmts
|
2022-05-30 09:04:34 +02:00 |
|
Krzosa Karol
|
802dce749e
|
Change syntax of compound exprs
|
2022-05-29 23:42:53 +02:00 |
|
Krzosa Karol
|
3f44a533be
|
Holy, Is this the based department? Is it actually working???
|
2022-05-29 22:19:37 +02:00 |
|
Krzosa Karol
|
4434ad1fb5
|
More order independent globals
|
2022-05-29 22:07:08 +02:00 |
|
Krzosa Karol
|
2ad3131dba
|
More work on order independent bindings, A bit more cleanup, Delete some of the null code, no longer valid c code
|
2022-05-29 21:38:29 +02:00 |
|
Krzosa Karol
|
b6ea62fd67
|
Work on order independent structs + cleanup
|
2022-05-29 20:32:04 +02:00 |
|
Krzosa Karol
|
ea1b74cda0
|
Adding struts
|
2022-05-29 12:30:02 +02:00 |
|
Krzosa Karol
|
07b793aacc
|
Begin structs, add comment on multiline lambdas, add Ast flags
|
2022-05-29 11:29:26 +02:00 |
|
Krzosa Karol
|
7de941899f
|
Fix crashes
|
2022-05-28 17:48:52 +02:00 |
|
Krzosa Karol
|
798453c7db
|
Adding parent nodes to asts
|
2022-05-27 16:19:18 +02:00 |
|
Krzosa Karol
|
8fb29e21d1
|
Remove old token_array.c
|
2022-05-27 15:35:47 +02:00 |
|
Krzosa Karol
|
d6401ff05d
|
Recursive lambdas with new system
|
2022-05-27 15:35:15 +02:00 |
|
Krzosa Karol
|
79aa52e726
|
Typedef works for simple case
|
2022-05-27 15:18:07 +02:00 |
|
Krzosa Karol
|
8875b61970
|
Add typedefs in codegen, globals is working
|
2022-05-27 15:00:45 +02:00 |
|
Krzosa Karol
|
46abf8c1a6
|
Initial working version of types as expressions
|
2022-05-27 13:46:27 +02:00 |
|
Krzosa Karol
|
d8a9b318b7
|
Changing typespecs to be normal expressions
|
2022-05-27 12:29:51 +02:00 |
|
Krzosa Karol
|
f66fd447e5
|
Removed resolved pointer from Ast_Typespec, it's accessed using a map now
|
2022-05-27 12:05:23 +02:00 |
|
Krzosa Karol
|
01acad47ec
|
Map redesign, removing just flags as unoccupied, when getting value we dont check occupancy but key, avoids hanging values due to the nature of linear probing
|
2022-05-26 23:46:26 +02:00 |
|
Krzosa Karol
|
7c4b01cd92
|
Local symbols use linear array searches now, there was a bug, when removing from map we are leaving holes it makes some entries unreachable
|
2022-05-26 23:40:23 +02:00 |
|
Krzosa Karol
|
3c6d02877b
|
Recursive functions working
|
2022-05-26 22:40:30 +02:00 |
|
Krzosa Karol
|
18a895153e
|
Basic order independent decls working
|
2022-05-26 21:30:50 +02:00 |
|
Krzosa Karol
|
b773ad1c17
|
Trying to add order indendent decls
|
2022-05-26 21:09:07 +02:00 |
|
Krzosa Karol
|
0e398c84b6
|
Cleanup, There is no decl anymore, Ast_Named
|
2022-05-26 20:21:24 +02:00 |
|
Krzosa Karol
|
ec773c08be
|
Add init statement to if
|
2022-05-26 18:57:15 +02:00 |
|
Krzosa Karol
|
8e4942f5ae
|
Delete old version files
|
2022-05-26 18:15:27 +02:00 |
|
Krzosa Karol
|
3d9a38494c
|
Add if statements
|
2022-05-26 18:13:37 +02:00 |
|
Krzosa Karol
|
3cd79040bc
|
Fix compile errors when compiling for msvc
|
2022-05-26 16:55:07 +02:00 |
|
Krzosa Karol
|
c88b38cc44
|
Successful compile with new parser!
|
2022-05-26 14:49:50 +02:00 |
|
Krzosa Karol
|
d9a80afa9e
|
Working on the lexer, handling indentation and scopes
|
2022-05-26 14:24:11 +02:00 |
|
Krzosa Karol
|
f4c05923c9
|
Compile string, working on scopes
|
2022-05-26 11:54:12 +02:00 |
|