Commit Graph

13 Commits

Author SHA1 Message Date
2bdbe6e6c0
Fixes to parsing and function pointers. It's a hack but it... works? kinda? 2021-03-15 15:59:15 +00:00
d848425701
Working on functions, symbols, and toward a GL hello world. 2021-03-15 01:22:47 +00:00
18b5da209d
Major refactoring
Comments added to the parser and lexer, more to come
2021-01-20 19:22:15 +00:00
eb118db872
Major rewrite of the symbol parsing
Moved from a static double-ended list to individual singly-linked lists for easier and faster parsing
2021-01-20 01:05:41 +00:00
389d4b47ff
Working towards functions.. We have parameters and function local types 2021-01-17 06:37:39 +00:00
39ee1b6028
Working local variables.
Next up: multiple function parameters..
2020-11-30 20:01:00 +00:00
384f46054a
Local Variables.
Still got issues with code generation, and for some reason identifier IDs are always 1.
2020-11-27 21:16:50 +00:00
e2120bb171
Working on the refactor for local symbols. 2020-11-25 22:53:50 +00:00
6ce26709de
Start refactoring Symbols for scoping rework 2020-11-25 17:03:33 +00:00
4f75085348
Refactor symbols, enforce size argument.
Fixes string parsing. tests/strings now runs flawlessly.
2020-11-23 19:12: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
985f02723e
Start work on array parsing 2020-11-18 20:49:08 +00: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