helpa-0.4.6.0: HELPA - Heavenly Esoteric Little Portable Assembler to esoteric languages

Safe Haskell | None
Language | Haskell2010

HelVM.HelPA.Assemblers.Common.DSL

# Documentation

newtype Register #

Constructors

R Text |

calculateLabel :: MonadDSL a m => m Identifier #

calculateLocalLabel :: MonadDSL a m => Identifier -> m Identifier #

acc :: Register #

acc1 :: Register #

newtype Immediate #

Constructors

I Integer |

unRegister :: Register -> Text #

unImmediate :: Immediate -> Integer #

type ImmediateORRegister = Either Immediate Register #

dsl :: MonadDSL a m => a -> m () #

type Config = Natural #

type Environment = Natural #

type MonadDSL a m = MonadRWS Config [a] Environment m #

type DSL a = RWS Config [a] Environment () #