write basic functions for LLVM IR

This commit is contained in:
2024-08-22 06:39:38 +00:00
parent ed1ba4b59a
commit 4f4113f16a
13 changed files with 1195 additions and 155 deletions

View File

@ -26,6 +26,7 @@ int main(int argc, char **argv) {
try {
SemanticCheck(fin, ast);
auto IR = BuildIR(ast);
IR->RecursivePrint(std::cout);
} catch (const SemanticError &err) {
std::cout << err.what() << std::endl;
return err.GetErrorCode();