-
Notifications
You must be signed in to change notification settings - Fork 4
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
Fc to STG translation 1st version #8
base: full_pipeline
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Some feedback here and there.
General feedback : Please add some more comments. There are a number of (not always trivial) functions without any comments or documentation.
return (ctx_ext, FcBind x ty ab) | ||
|
||
-- | Type check applicaton of a list of terms to a term | ||
tcFcOptTmApp :: FcOptTerm -> [FcOptTerm] -> FcM (FcType, FcResTerm) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function looks really painful.... I don't really have any constructive feedback or improvements though....
Optimizer/FcTypeChecker.hs
Outdated
|
||
|
||
|
||
tcFcResBind :: FcResBind -> FcM SBind |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this function supposed to do?
Optimizer/FcTypes.hs
Outdated
Datatypes representing the System F AST, with supporting functions and smart constructors. | ||
System F syntax is split into two phases: | ||
- Optimiser phase, marked with the @Opt type. These implement "vanilla" system F as it is most commonly seen. | ||
- Preprocessed phase, marked with the @Pre type. This variant is preprocessed to be as easily translated into STG as possible. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This name needs to be updated?
Tests/Test5.hs
Outdated
@@ -0,0 +1,11 @@ | |||
-- * Simple test for using primitives |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should probably add some more tests later on.
Backend/STGTypes.hs
Outdated
= MkAAlts [SAAlt] SDefAlt -- ^ ADT alternatives | ||
| MkPAlts [SPAlt] SDefAlt -- ^ Primitive alternatives | ||
= SAAlts [SAAlt] --SDefAlt -- ^ ADT alternatives | ||
| SPAlts [SPAlt] --SDefAlt -- ^ Primitive alternatives |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this change. Why did you drop the SDefAlt
?
No description provided.