Made lexer support floating point numbers

Wow I didn't think the lexer could get worse
This commit is contained in:
Pasha Bibko
2025-04-21 15:40:46 +01:00
parent 9f05d42945
commit feea149cc1
3 changed files with 81 additions and 27 deletions

View File

@@ -60,12 +60,15 @@ int main(int argc, char** argv)
// Create tokens out of the input file //
std::vector<LX::Token>tokens = LX::LexicalAnalyze(inpFile, log.get());
LX::SafeFlush(log.get());
// Turns the tokens into an AST //
LX::FileAST AST = LX::TurnTokensIntoAbstractSyntaxTree(tokens, log.get());
LX::SafeFlush(log.get());
// Turns the AST into LLVM IR //
LX::GenerateIR(AST, inpPath.filename().string());
LX::SafeFlush(log.get());
// Returns success
return 0;