-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7a373b
commit 618e8d4
Showing
34 changed files
with
2,195 additions
and
665 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# `AstCompiler` | ||
|
||
Type checking appens while compiling the AST to TIR. | ||
|
||
this is litterally the only job of `AstCompiler`. | ||
|
||
during compilation from AST to TIR no other magic happens, no desugaring, no optimizations, no nothing. | ||
|
||
The resulting TIR, is essentially the same as the original AST, | ||
with the only exception being that in the TIR universe there are: | ||
|
||
- NO generic types, only concrete types | ||
- NO generic functions | ||
- NO overloaded functions (overloads are replaced with concrete functions with different signatures) | ||
|
||
essentially the TIR, right after AST compilation, is the same as the original AST but with every type explicit, and any ambiguity removed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.