Changed how scopes work

Also added logging and GenIR functions for VariableDeclaration
This commit is contained in:
Pasha Bibko
2025-04-27 21:48:16 +01:00
parent a64aa28432
commit 88ce75ceb1
8 changed files with 41 additions and 67 deletions

View File

@@ -40,4 +40,10 @@ namespace LX::AST
m_Val->Log(log, depth + 1);
}
}
void VariableDeclaration::Log(std::ofstream* log, unsigned depth)
{
(*log) << std::string(depth, '\t');
(*log) << "Variable declaration: " << m_Name << "\n";
}
}