mirror of
https://github.com/PashaBibko/LX.git
synced 2026-04-04 01:49:05 +00:00
Fixed previous commit
Also allows multiple things to be added together
This commit is contained in:
10
Main.cpp
10
Main.cpp
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user