Add binops for typechecker
This commit is contained in:
parent
d6b730945c
commit
1037024730
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user