Commit Graph

20 Commits

Author SHA1 Message Date
Pasha Bibko 141bb1530b Improved logger whilst debugger is active 2025-05-08 14:45:44 +01:00
Pasha Bibko 98fc4589ab Cleaned up Lexer 2025-05-07 18:10:15 +01:00
Pasha Bibko 4e78a9f6ae Made Lexer errors fully hidden in global scope
Also improved general ease of use with debugging use __debugbreak when an error is thrown.

NOTE: Parser errors currently crash the program
2025-05-07 16:31:44 +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 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 a16ce34c8b Small changes 2025-05-04 20:12:44 +01:00
Pasha Bibko f88c1e0455 Made the outputted .exe be run on built
Outputs the exit code of the process as that is currently the only way to output information with the language.
2025-05-04 13:53:19 +01:00
Pasha Bibko 347db8ca3e Made github recognise LX (Hopefully) 2025-05-03 21:51:36 +01:00
Pasha Bibko cb26d373ae Added C# project for calling the different modules 2025-05-03 17:04:37 +01:00
Pasha Bibko e12088979d Added support for all basic math operators 2025-04-28 21:43:52 +01:00
Pasha Bibko ce8f1619a4 Variables can now be read from 2025-04-28 21:16:54 +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 935cb35715 Allowed parser to parse basic variable declarations 2025-04-27 21:58:23 +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 099e543e95 Im vonfused 2025-04-22 22:32:07 +01:00
Pasha Bibko 8e1fa45a44 Made project work with new organisation 2025-04-22 11:23:30 +01:00