Skip to content

Commit

Permalink
Added compilation of casts
Browse files Browse the repository at this point in the history
  • Loading branch information
ktvoelker committed Apr 6, 2012
1 parent 65d64fe commit a785010
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Compiler.hs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ compileExpr e = case e of
[Return $ compileExpr e]) (map compileExpr bVals)
Hs.Case scru name _ alts -> compileCase scru name alts
Hs.Type _ -> ENative "T"
Hs.Cast e _ -> compileExpr e
_ -> undefined

compileCase :: Hs.Expr Hs.CoreBndr -> Hs.CoreBndr -> [Hs.Alt Hs.CoreBndr] -> Expr
compileCase scru name alts =
Expand Down
2 changes: 0 additions & 2 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ TODO

Compile data constructors

Support casts in the compiler

Implement the native functions F and S

Start adding native libraries
Expand Down

0 comments on commit a785010

Please sign in to comment.