Language.Atom.Code
Description
Atom C code generation.
- data Config = Config {
- cFuncName :: String
- cStateName :: String
- cCode :: [Name] -> [Name] -> [(Name, Type)] -> (String, String)
- cRuleCoverage :: Bool
- cAssert :: Bool
- cAssertName :: String
- cCoverName :: String
- writeC :: Name -> Config -> StateHierarchy -> [Rule] -> Schedule -> [Name] -> [Name] -> [(Name, Type)] -> IO RuleCoverage
- defaults :: Config
- cType :: Type -> String
- type RuleCoverage = [(Name, Int, Int)]
Documentation
C code configuration parameters.
Constructors
Config | |
Fields
|
writeC :: Name -> Config -> StateHierarchy -> [Rule] -> Schedule -> [Name] -> [Name] -> [(Name, Type)] -> IO RuleCoverageSource
Default C code configuration parameters (default function name, no pre/post code, ANSI C types).
type RuleCoverage = [(Name, Int, Int)]Source