-
Notifications
You must be signed in to change notification settings - Fork 1
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
Type checker #3
Comments
Here is a project worth looking at: |
An update on this: currently type checking is kinda working for the core language. Checking type correctness on evaluation in loli is also added, but @lol2kpe is currently working on adding the types for the functions in sugar to the start environment (the information hidden between the lines here is that nothing evaluates before that's done 👯). Something that confuses us is how to reach the type declaration of a method, to compare that to the inferred type of the resulting expression. I think we agree on that expanding the AST to be type annotated requires heavy lifting, maybe it's easier (albeit a bit dirty) to just stuff the type annotations somewhere reachable from TI.hs. |
I believe on the last meeting we discussed having cProgram give some kind of record type containing a list of function declarations, a list of data type declarations and a map from names to type signatures (although the last could just as easily be integrated into the function declarations). |
You need to add type inference and type checking to your language!
The text was updated successfully, but these errors were encountered: