Commit Graph

13 Commits

Author SHA1 Message Date
Pasha Bibko
050eeb5a53 Allowed multiple functions + non "main" functions
Also fixed a bug in the lexer and changed how AST is logged.
2025-05-08 16:03:54 +01:00
Pasha Bibko
4509250c4e Tided up Parser project 2025-05-07 20:33:39 +01:00
Pasha Bibko
6783564f10 Fixed Unexpected Token crashing the process 2025-05-07 16:53:10 +01:00
Pasha Bibko
5339df9b36 Refactored how logging works
Made it central reusable logic. No longer needs to be passed around, opened or closed.
2025-05-05 23:55:22 +01:00
Pasha Bibko
0f11fe006b Made projects use PCHs 2025-05-05 17:17:33 +01:00
Pasha Bibko
c64a2c692c Made common a project 2025-05-05 16:45:34 +01:00
Pasha Bibko
616ed1ca21 Refactored error handling
Now uses base error class which has an abstract function for overiding how it is displayed to the console.
2025-05-05 15:44:59 +01:00
Pasha Bibko
cbc179411a VarDec and VarAssign now work 2025-04-28 20:43:41 +01:00
Pasha Bibko
3ec6cc0c6e Added VarAssign, VarAccess and MultiNode 2025-04-28 19:59:45 +01:00
Pasha Bibko
88ce75ceb1 Changed how scopes work
Also added logging and GenIR functions for VariableDeclaration
2025-04-27 21:48:16 +01:00
Pasha Bibko
a64aa28432 Added scope class 2025-04-27 21:18:09 +01:00
Pasha Bibko
321a7fea18 Improved syntax for functions
Added logging system for AST nodes as well.
2025-04-24 21:34:30 +01:00
Pasha Bibko
0a7c2c0145 Organized project files 2025-04-22 11:17:34 +01:00