Resolve "Type-checker doesn't use the global context" ✨️
Closes #17 🐔️👍️ Approved-by:belazy <aarthuur01@gmail.com> Approved-by:
loutr <loutr@crans.org> Approved-by:
aalbert <augustin.albert@bleu-azure.fr> 🦀️
🍰 🦀️🍰 🦀️🍰 * chore: misc * chore : add test coverage * chore(kernel): Reduce code complexity * fix(kernel): Made Context mutable * fix(kernel): Made type_checker.rs full of reference * fix(kernel): Made term.rs full of reference * fix(kernel): Use of reference * Apply 1 suggestion(s) to 1 file(s) * Fix : refer to #19 * Apply 1 suggestion(s) to 1 file(s) * Apply 1 suggestion(s) to 1 file(s) * Apply 1 suggestion(s) to 1 file(s) * Fix : remove unused trait * Fix : apply suggestion * Fix : use Self in impl * Apply 1 suggestion(s) to 1 file(s) * Apply 1 suggestion(s) to 1 file(s) * Apply 1 suggestion(s) to 1 file(s) * Apply 1 suggestion(s) to 1 file(s) * Apply 1 suggestion(s) to 1 file(s) * Chore: use `Environment::new()` instead of `Default::default()` * Chore : add documentation * Chore : expand tests coverage * Revert "Feat : parse Constants" This reverts commit 0618fd79. * Feat : move `Environment` to respective file * Feat : add test for Env use during typechecking * Feat : parse Constants * Feat : use `Environment` during type-checking/inference * Feat : add `GlobalContext`
parent
ff5b19f3
No related branches found
No related tags found
Showing
- .gitlab-ci.yml 2 additions, 2 deletions.gitlab-ci.yml
- kernel/src/environment.rs 43 additions, 0 deletionskernel/src/environment.rs
- kernel/src/lib.rs 3 additions, 0 deletionskernel/src/lib.rs
- kernel/src/term.rs 71 additions, 39 deletionskernel/src/term.rs
- kernel/src/type_checker.rs 184 additions, 123 deletionskernel/src/type_checker.rs
Loading
Please register or sign in to comment