flocc-pffb

Stabilityexperimental
Maintainerdeveloper@flocc.net
Safe HaskellNone

Compiler.Back.Templates

Description

For more information please see http://www.flocc.net/

Synopsis

Documentation

nt :: Maybe a

nt. shorthand for Nothing.

n0 :: LabelledTree (Int, [a]) ()

terr :: String -> Ty -> NodeTreeEx -> a

terr' :: Monad m => Ty -> NodeTreeEx -> GenM m

namedTy :: String -> [Ty] -> Ty

dbgVal :: Monad m => String -> Code -> GenM1 m Code

outMain :: Monad m => Code -> GenM m

genVarExps :: Monad m => Id -> StrTem -> Ty -> [Code] -> GenM1 m ([IdTree], [IdTree])

genVarExps srcId tem ty params. Generates a new var exp of type ty for each param, |using the template tem, replacing p with each param, and replacing |v with the srcId.

t30 :: Monad m => Template m

printInt template