atom-0.0.4: A DSL for embedded hard realtime applications.

Language.Atom.Elaboration

Synopsis

Atom monad and container.

data Atom a Source

The Atom monad holds variable and rule declarations.

Instances

data AtomDB Source

Constructors

Instances

data Global Source

Constructors

data Rule Source

Constructors

Instances

buildAtom :: Global -> Name -> Atom a -> IO (a, (Global, AtomDB))Source

Type Aliases and Utilities

type UID = Int Source

type Name = String Source

A name.

type Path = [Name]Source

A heirarchical name.

elaborate :: Name -> Atom () -> IO (Maybe ([Rule], ([Const], [Const], [Const], [Const])))Source

A Relation is used for relative performance constraints between Actions. data Relation = Higher UID | Lower UID deriving (Show, Eq)

Given a top level name and design, elabortes design and returns a design database.

var :: Expr a => Name -> a -> Atom (V a)Source

Generic local variable declaration.

var' :: Name -> Type -> Atom (V a)Source

Generic external variable declaration.

array :: Expr a => Name -> [a] -> Atom (A a)Source

Generic array declaration.

addName :: Name -> Atom Name Source

get :: Atom (Global, AtomDB)Source

put :: (Global, AtomDB) -> Atom () Source

AltStyle によって変換されたページ (->オリジナル) /