Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC007] Migrate the typechecker to the new AST - Part I #2121

Merged
merged 24 commits into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
54b4792
Copy the code from typechecker, get rid of generic term env
yannham Dec 9, 2024
41ebdd2
Switch to bytecode::ast::typ::*, add a whole cargaison of lifetimes
yannham Dec 9, 2024
33faa04
Move Traverse in its own module
yannham Dec 9, 2024
84bff33
[WIP] Pass missing allocator to conv functions
yannham Dec 9, 2024
df14c2d
Continue migration of the typechecker to the new AST
yannham Dec 10, 2024
f7ca049
More typecheck conversion, typecheck::operation conversion
yannham Dec 13, 2024
bd21a76
Introduce record-typechecking-related infrastructure
yannham Dec 13, 2024
43024ae
Some fixes related to term environment populating
yannham Dec 16, 2024
adfb471
End of first step for record typechecking
yannham Dec 16, 2024
a45f5ed
Implement Traverse for various new AST components
yannham Dec 18, 2024
681d6c8
Fix various compiler errors
yannham Dec 18, 2024
f4bfdaa
Reset unintentional changes to mainline typecheck module
yannham Dec 18, 2024
1cbb51c
Fix more compiler errors (remaining: tc::eq and tc::error)
yannham Dec 18, 2024
0eabdec
Migrate type equality to the new AST
yannham Dec 19, 2024
38376b2
Fix compilation errors in bytecode::typecheck::error
yannham Dec 20, 2024
535cf75
Fix compilation errors in bytecode::typecheck::subtyping
yannham Dec 20, 2024
bb01014
Fix compilation errors in bytecode::typecheck::reporting
yannham Dec 20, 2024
e7192fd
Fix more compiler errors
yannham Dec 20, 2024
25ae6e7
Update unif to use new TypeEq trait
yannham Dec 20, 2024
f5fca42
Fix compilation errors and warnings
yannham Dec 20, 2024
10da66d
Fix typo in comment
yannham Dec 20, 2024
30dfde7
Fix clippy errors
yannham Dec 20, 2024
3fb5b22
Fix cargo doc warnings
yannham Dec 20, 2024
5188d54
Fix more clippy warnings
yannham Dec 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions cli/src/doctest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ use nickel_lang_core::{
label::Label,
match_sharedterm, mk_app, mk_fun,
program::Program,
term::{
make, record::RecordData, LabeledType, RichTerm, Term, Traverse as _, TraverseOrder,
TypeAnnotation,
},
term::{make, record::RecordData, LabeledType, RichTerm, Term, TypeAnnotation},
traverse::{Traverse as _, TraverseOrder},
typ::{Type, TypeF},
typecheck::TypecheckMode,
};
Expand Down
Loading
Loading