|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Typed semantic pass connecting the AST, the name pass, and type constraints. More...
#include <sstream>#include <string>#include <Compiler_Sema.H>#include <Compiler_Types.H>#include <tpl_constraints.H>#include <tpl_scope.H>Go to the source code of this file.
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Typed semantic pass connecting the AST, the name pass, and type constraints.
Compiler_Typed_Semantic_Analyzer performs a small inference-oriented pass over the MVP AST. It uses Compiler_Sema.H as an optional precheck and generates constraints over Compiler_Types.H with the unifier from tpl_constraints.H.
The current typed pass covers:
let bindings, and returnsstruct, enum, and transparent aliasesletif and whilecallee ~ fn(args...) -> resultThis is still intentionally modest: it does not yet solve traits, overloads, advanced module-level typing, or nominal value operations such as field access and enum construction.
Definition in file Compiler_Typed_Sema.H.