IT CRASHES

WHYYYYYYYYYYYYYYYYYYYYYY
This commit is contained in:
Pasha Bibko
2025-04-17 18:34:56 +01:00
parent 3017e70631
commit 14b2b36748
11 changed files with 177 additions and 43 deletions

View File

@@ -55,6 +55,12 @@ int main(int argc, char** argv)
// Turns the tokens into an AST
LX::FileAST AST = LX::TurnTokensIntoAbstractSyntaxTree(tokens, log.get());
// Turns the AST into something
LX::GenerateIR(AST);
// Returns success
return 0;
}
catch (LX::IncorrectCommandLineArgs)
@@ -104,6 +110,7 @@ int main(int argc, char** argv)
return 6;
}
return 0;
// -1 means an error slipped through (IDK how, it's here just in case)
return -1;
}