feldspar-compiler-0.7: Compiler for the Feldspar language

Safe HaskellNone
LanguageHaskell2010

Feldspar.Compiler.Imperative.Frontend

Synopsis

Documentation

copyProg :: Maybe (Expression ()) -> [Expression ()] -> Program () Source

Copies expressions into a destination. If the destination is a non-scalar the arguments are appended to the destination.

run :: String -> [Variable ()] -> Program () Source

flattenStructs :: Type -> [(Expression () -> Expression (), Type)] Source

Returns a list of access functions and types for the leaves of the struct tree of the type

for :: Bool -> String -> Expression () -> Expression () -> Block () -> Program () Source

while :: Block () -> Expression () -> Block () -> Program () Source