mirror of
https://github.com/PashaBibko/LX.git
synced 2026-04-03 17:39:02 +00:00
Improved compile times
Added A LOT of comments
This commit is contained in:
7
Main.cpp
7
Main.cpp
@@ -53,6 +53,13 @@ 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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user