Add binops for typechecker

This commit is contained in:
Sofia 2026-04-13 18:18:25 +03:00
parent d6b730945c
commit 1037024730

View File

@ -98,6 +98,8 @@ std::optional<CompileOutput> compile(std::string_view in_filename) {
// Perform static analysis // Perform static analysis
typecheck::State typecheck_state{}; typecheck::State typecheck_state{};
typecheck_state.binops = types::create_binops();
typecheck::Scope typecheck_scope{}; typecheck::Scope typecheck_scope{};
for (auto& tls : statements) { for (auto& tls : statements) {
std::cout << tls->formatted() << std::endl; std::cout << tls->formatted() << std::endl;