Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
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
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)
Plus LitArith LitArith | |
Minus LitArith LitArith | |
Times LitArith LitArith | |
Div LitArith LitArith | |
Exponent LitArith LitArith | |
Lit Literal |