70ae06af44
Add useful error handler
2023-04-24 02:17:11 +01:00
b7f8d8666e
Implement break/continue statements.
2022-03-05 23:42:01 +00:00
37cdaacc71
Begin refactor for multiplexed compilation
2022-03-05 01:13:45 +00:00
628c7a3a13
Implement enums and the foundation of a type alias system
2022-03-04 01:11:04 +00:00
3717b310be
Implement unions and largest-element allocation
2022-03-03 02:44:07 +00:00
537246daae
CLion reformatting pass, finish struct implementation
2022-03-03 00:05:10 +00:00
8e45ea5eef
Implement (broken) struct member access
2021-07-05 00:07:04 +01:00
72358aed9f
Small fixes, complete refactor
2021-01-22 01:01:53 +00:00
18b5da209d
Major refactoring
...
Comments added to the parser and lexer, more to come
2021-01-20 19:22:15 +00:00
0c148f6e0c
Add overrides for aliasing int types to their bit width (int->i32)
2021-01-17 06:36:11 +00:00
473af8d54e
Add new symbols to the parser. They are not currently handled
2020-11-23 21:42:32 +00:00
86b1688035
Start work on string parsing.
...
Generates a valid AST tree, but the program segfaults. Need to look into it.
2020-11-22 01:44:54 +00:00
0dc444acfc
Fix typo
...
Lost my train of thought while typing this.
2020-11-22 00:43:32 +00:00
9ff658615b
Add character literal parsing
2020-11-22 00:41:48 +00:00
985f02723e
Start work on array parsing
2020-11-18 20:49:08 +00:00
264c50509e
Allow global-scope declarations
...
Function-local scope is still WIP, but you can now define things outside of function blocks.
2020-09-13 23:41:46 +01:00
a27d3dd782
Add support for pointers of char, int and long types
2020-09-13 02:26:49 +01:00
59329d963f
First files.
...
Currently has two bugs.
First, all functions are resolved to index 0 (currently PrintInteger)
Second, the register used for returning is immediately overwritten by the next allocated register. This means addition of function return values is a little silly.
Also, commit signing!
2020-09-10 02:01:18 +01:00