| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Language.Floorplan.Syntax
Synopsis
- type LayerID = String
- type FormalID = String
- type FlagID = String
- type FieldID = String
- data Primitive
- lexeme2prim :: [Char] -> Maybe Primitive
- data Demarc
- free_vars :: Demarc -> [FormalID]
- accum :: (Demarc -> Maybe a) -> Demarc -> [a]
- countMatches :: (Demarc -> Bool) -> Demarc -> Int
- fmapD :: (Demarc -> (Demarc, Bool)) -> Demarc -> (Demarc, Bool)
- data Arg
- type Literal = Int
- bin2int :: String -> Int
- data LitArith
- data SizeArith
Documentation
Instances
| Eq Primitive Source # | |
| Ord Primitive Source # | |
| Read Primitive Source # | |
| Show Primitive Source # | |
Constructors
| Enum [FlagID] | |
| Bits [(FieldID, SizeArith)] | |
| Union [Demarc] | |
| Seq [Demarc] | |
| PtrF FieldID | |
| PtrL LayerID | |
| Blob SizeArith | |
| Graft (LayerID, [Arg]) | |
| Field FieldID Demarc | |
| Pound Demarc | |
| Repetition FormalID Demarc | |
| Layer | |
fmapD :: (Demarc -> (Demarc, Bool)) -> Demarc -> (Demarc, Bool) Source #
Bool is whether or not anything was changed (so no need to do Eq check in fixed-point transformations)
Constructors
| Plus LitArith LitArith | |
| Minus LitArith LitArith | |
| Times LitArith LitArith | |
| Div LitArith LitArith | |
| Exponent LitArith LitArith | |
| Lit Literal |
Constructors
| SizePlus SizeArith SizeArith | |
| SizeMinus SizeArith SizeArith | |
| SizeLit (Maybe LitArith) Primitive |
Instances
| Eq SizeArith Source # | |
| Ord SizeArith Source # | |
| Show SizeArith Source # | |