Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Deprecated: This module will be hidden in future versions.
Auxiliary helper functions to generate C99 code.
Synopsis
- type FunEnv = [Decln]
- statetell :: Monoid m => m -> State m ()
- fresh :: String -> [String] -> String
- names :: [Decln] -> [String]
- streamname :: Id -> String
- indexname :: Id -> String
- streamaccessorname :: Id -> String
- excpyname :: String -> String
- generatorname :: Id -> String
- guardname :: String -> String
- argname :: String -> Int -> String
- argnames :: String -> [String]
- funcall :: Ident -> [Expr] -> Expr
Documentation
type FunEnv = [Decln] Source #
Auxiliary type used to collect all the declarations of all the variables used in a function to be generated, since variable declarations are always listed first at the top of the function body.
streamname :: Id -> String Source #
Turn a stream id into a suitable C variable name.
streamaccessorname :: Id -> String Source #
Turn a stream id into the name of its accessor function
generatorname :: Id -> String Source #
Turn stream id into name of its generator function.