Renamer done.

It renames bound variables to numbers, converts let to lambda, and
removes all variables from binds
This commit is contained in:
sebastianselander 2023-02-14 16:44:38 +01:00
parent 53314551f5
commit 6218efac20
9 changed files with 158 additions and 175 deletions

View file

@ -76,8 +76,8 @@ inferExp = \case
return infT
Old.EConst c -> case c of
(Old.CInt i) -> return (TMono $ UIdent "Int")
(Old.CStr s) -> return (TMono $ UIdent "String")
(Old.CInt i) -> return (TMono "Int")
(Old.CStr s) -> return (TMono "String")
Old.EAdd e1 e2 -> do
let int = TMono "Int"