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

Safe Haskell | None
Language | Haskell2010

HelVM.HelPA.Assemblers.Frontend.EIR.Instruction

# Documentation

type InstructionList = [Instruction] #

data Instruction #

Constructors

Mov !Identifier !IntegerValue |
Add !Identifier !IntegerValue |
Sub !Identifier !IntegerValue |
Load !Identifier !IntegerValue |
Store !Identifier !IntegerValue |
PutC !IntegerValue |
GetC !Identifier |
Exit |
J !Comp !Identifier !Identifier !IntegerValue |
Jmp !Identifier |
L !Comp !Identifier !IntegerValue |
Dump |
Mark !Text |
PText |
PData (Maybe Natural) |
PLong !Integer |
PString !Text |
PFile !Natural !Text |
PLoc !Natural !Natural !Natural |

#### Instances

Instances details

Eq Instruction # |
Instance details

Defined in HelVM.HelPA.Assemblers.Frontend.EIR.Instruction

Methods

(==) :: Instruction -> Instruction -> Bool #

(/=) :: Instruction -> Instruction -> Bool #

Read Instruction # |
Instance details

Defined in HelVM.HelPA.Assemblers.Frontend.EIR.Instruction

Methods

readsPrec :: Int -> ReadS Instruction #

readList :: ReadS [Instruction] #

readPrec :: ReadPrec Instruction #

readListPrec :: ReadPrec [Instruction] #

Show Instruction # |
Instance details

Defined in HelVM.HelPA.Assemblers.Frontend.EIR.Instruction

Methods

showsPrec :: Int -> Instruction -> ShowS #

show :: Instruction -> String #

showList :: [Instruction] -> ShowS #

data Comp #

Constructors

CEQ |
CNE |
CLT |
CGT |
CLE |
CGE |

#### Instances

Instances details

Eq Comp # |
Instance details

Defined in HelVM.HelPA.Assemblers.Frontend.EIR.Instruction

Methods

(==) :: Comp -> Comp -> Bool #

(/=) :: Comp -> Comp -> Bool #

Read Comp # |
Instance details

Defined in HelVM.HelPA.Assemblers.Frontend.EIR.Instruction

Methods

readsPrec :: Int -> ReadS Comp #

readList :: ReadS [Comp] #

readPrec :: ReadPrec Comp #

readListPrec :: ReadPrec [Comp] #

Show Comp # |
Instance details

Defined in HelVM.HelPA.Assemblers.Frontend.EIR.Instruction

Methods

showsPrec :: Int -> Comp -> ShowS #

show :: Comp -> String #

showList :: [Comp] -> ShowS #