5af9845f93
Add command line arguments and make time printing nicer
...
This patch adds the following arguments:
1. `--dump-ast` or `-d`: This dumps the Abstract Syntax Tree
2. `--dont-emit-llvm` or `-L`: This skips the LLVM generation step only
parsing and type checking. Useful for debugging.
Besides this, formatting of the time each compiler step took is also
improved and easier to read now.
Signed-off-by: Slendi <slendi@socopon.com>
2024-05-04 13:27:25 +02:00
a225a5b1fa
Compute the size of structs
...
This patch makes it such that the size of a struct can be computed by
it's fields.
Signed-off-by: Slendi <slendi@socopon.com>
2024-05-04 12:57:19 +02:00
95057fd359
Add support for enums in the parser
...
Signed-off-by: Slendi <slendi@socopon.com>
2024-04-29 16:42:28 +03:00
b170e9a424
Add some support for recursive structs
...
Signed-off-by: Slendi <slendi@socopon.com>
2024-04-27 05:47:06 +03:00
8d666c0308
Make undefined variables be treated as strings
...
Signed-off-by: Slendi <slendi@socopon.com>
2024-04-17 13:14:54 +03:00
4782252f7e
Add support for prefix increment/decrement ops
...
Signed-off-by: Slendi <slendi@socopon.com>
2024-04-11 09:20:15 +03:00
f65507c5e1
Add support for assign stacking
...
Signed-off-by: Slendi <slendi@socopon.com>
2024-04-10 19:26:20 +03:00
3b70d9786c
Make zero length arrays ptrs, finish Raylib prog
...
Signed-off-by: Slendi <slendi@socopon.com>
2024-04-10 13:37:38 +03:00
1caebf3295
Do stuff
...
I forgor
Signed-off-by: Slendi <slendi@socopon.com>
2024-04-10 11:34:43 +03:00