|
sammine-lang
|
Defines the BiTypeCheckerVisitor, consist of the flow for Bi-Directional Type checking, which allows for synthesizing types, validating consistency, and register types. More...
#include "ast/Ast.h"#include "ast/ASTProperties.h"#include "ast/AstBase.h"#include "typecheck/Monomorphizer.h"#include "typecheck/Types.h"#include "util/LexicalContext.h"#include <set>#include <unordered_map>

Go to the source code of this file.
Functions | |
| Type | sammine_lang::AST::default_polymorphic_type (const Type &t) |
| void | sammine_lang::AST::resolve_literal_type (ExprAST *expr, const Type &target) |
Defines the BiTypeCheckerVisitor, consist of the flow for Bi-Directional Type checking, which allows for synthesizing types, validating consistency, and register types.
Default a polymorphic numeric type to its concrete default: Integer → I32_t, Flt → F64_t. Non-polymorphic types pass through unchanged.