This module contains a simple compiler from FlatCurry to ICurry programs.
To do in future work:
Author: Michael Hanus
Version: August 2020
icCompile
:: ICOptions -> String -> IO IProg
Generates an ICurry program by reading a FlatCurry program and compiling it to ICurry. |
flatCurry2ICurry
:: ICOptions -> Prog -> IO IProg
Translates a FlatCurry program into an ICurry program. |
defaultICOptions
:: ICOptions
|
printStatus
:: ICOptions -> String -> IO ()
|
printIntermediate
:: ICOptions -> String -> IO ()
|
Options for the ICurry compiler. Contains mappings from constructor and functions names into locally unique integers and other stuff.
Constructors:
ICOptions
:: Int -> Bool -> Bool -> String -> Bool -> String -> Bool -> Bool -> [(QName,(IArity,Int))] -> [(QName,Int)] -> QName -> ICOptions
Fields:
Generates an ICurry program by reading a FlatCurry program and compiling it to ICurry. |
Translates a FlatCurry program into an ICurry program. It also reads the imported modules in order to access their data and function declarations. |
|
|
|