Fixed previous commit

Also allows multiple things to be added together
This commit is contained in:
Pasha Bibko
2025-04-21 09:50:29 +01:00
parent 934f287b7f
commit a560c53c58
8 changed files with 47 additions and 906 deletions

View File

@@ -53,16 +53,12 @@ int main(int argc, char** argv)
// Create tokens out of the input file
std::vector<LX::Token>tokens = LX::LexicalAnalyze(inpFile, log.get());
// Saves the log //
if (log != nullptr)
{
log->close();
//log->open(argv[3]);
}
// Turns the tokens into an AST
LX::FileAST AST = LX::TurnTokensIntoAbstractSyntaxTree(tokens, log.get());
//
LX::GenerateIR(AST);
// Returns success
return 0;
}