Commit Graph

14 Commits

Author SHA1 Message Date
473af8d54e
Add new symbols to the parser. They are not currently handled 2020-11-23 21:42:32 +00:00
e44158f3b7
Prepare for bitwise, boolean and PPMM operators 2020-11-23 20:01:36 +00:00
4f75085348
Refactor symbols, enforce size argument.
Fixes string parsing. tests/strings now runs flawlessly.
2020-11-23 19:12:13 +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
b384973379
Prepare for string literal parsing 2020-11-22 00:42:13 +00:00
83959b4793
More work on arrays. Fixed some bugs.
Still need to figure out why AsStrDeref isn't working.
2020-11-21 02:07:44 +00:00
999f8dc267
Begin cleanup of array parsing
TODO: debug segfault
2020-11-19 02:31:40 +00:00
985f02723e
Start work on array parsing 2020-11-18 20:49:08 +00:00
d8abe6fec0
Add code for printing the AST tree after generation 2020-11-15 06:36:25 +00:00
764f89bb88
Add missing functions, fix missing breaks on switch 2020-11-14 22:26:12 +00:00
a0d2575a83
Refactor pointer arithmetic 2020-09-14 02:05:24 +01: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