summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-11-07[compiler] Parse return statementsmainQuinn Stephens
Laid groundwork for statements and AST trees. Currently return values are not supported, expression parsing must be implemented first. Also stopped dumping parsed type definitions. Signed-off-by: Quinn Stephens <quinn@osmora.org>
2024-11-03[compiler] Parse and print procedure declarationsQuinn Stephens
Signed-off-by: Quinn Stephens <quinn@osmora.org>
2024-11-03[compiler] More small refactoringQuinn Stephens
Signed-off-by: Quinn Stephens <quinn@osmora.org>
2024-11-03[parser] Refactor parse_type()Quinn Stephens
Switch statement makes more sense here. Signed-off-by: Quinn Stephens <quinn@osmora.org>
2024-11-03[parser] Mini-refactor of type parsingQuinn Stephens
Removed type_new() since it was only used once. Removed debug output from parse_type_ref(). Signed-off-by: Quinn Stephens <quinn@osmora.org>
2024-11-02[docs] Clean up formatting in README.mdIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-11-02[tests] Conform to OSMORA styleIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2024-11-02[parser] Improve error handlingQuinn Stephens
parse_enum() and parse_struct() now free all allocated memory in case of an error. They also no longer allow the type to be registered if an error occurs. parse_type() no longer allows/requires semicolons after enum/struct definitions. Signed-off-by: Quinn Stephens <quinn@osmora.org>
2024-11-02Add README.mdQuinn Stephens
Signed-off-by: Quinn Stephens <quinn@osmora.org>
2024-11-02More type parsingQuinn Stephens
Signed-off-by: Quinn Stephens <quinn@osmora.org>
2024-11-01Import quark sourcesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>