-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[compiler] modes refactor: typeAss's arrow has mode + remove pred fro…
…m ScopedTypeExpression - The typechecker assigns types to terms, this types have modes: the node arrow has carries the mode - To simplify translation from ScopeTypeExpression to TypeAssignement, the node Pred has disappeard in favour of a combination of Arrow with mode and Prop - The type mode_arg and all the related auxiliary functions have been replaced with Mode.t where Mode is a global module in Utils used by Ast, Compiler, Runtime etc... the goal is to have a easier way to work with modes - The DeterminacyChecker benefits from modes attached to types since it has no more to find them into the mode map: they are already referenced in the type of terms taken into account - TODO: check if variable representing partial application of predicates have correct mode: e.g. in `X = map []`, the variable `X` has the type of `X` ha good associated mode?
- Loading branch information
Showing
16 changed files
with
238 additions
and
227 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
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.