Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- blAnd :: OperatorType -> BinaryOperation
- blOr :: OperatorType -> BinaryOperation
- blXor :: OperatorType -> BinaryOperation
- blEQ :: OperatorType -> BinaryOperation
- blGT :: OperatorType -> BinaryOperation
- calculateOps :: Integral a => a -> a -> [BinaryOperation] -> [a]
- calculateOp :: Integral a => a -> a -> BinaryOperation -> a
- doBinary :: Integral a => BinaryOperation -> a -> a -> a
- data SMInstruction
- data SPureInstruction
- data IndexOperand
- = ITop
- | IImmediate !Index
- data UnaryOperation
- data BinaryOperation
- data IndexedOperation
- data OperatorType
- printSM :: SMInstruction -> Text
- printSPure :: SPureInstruction -> Text
- printBinaries :: (Foldable c, Functor c, Show i) => c i -> Text
- printUnary :: UnaryOperation -> Text
- printIndexOperand :: IndexOperand -> Text
Documentation
blAnd :: OperatorType -> BinaryOperation #
Constructors
blOr :: OperatorType -> BinaryOperation #
blXor :: OperatorType -> BinaryOperation #
blEQ :: OperatorType -> BinaryOperation #
blGT :: OperatorType -> BinaryOperation #
calculateOps :: Integral a => a -> a -> [BinaryOperation] -> [a] #
Other functions
calculateOp :: Integral a => a -> a -> BinaryOperation -> a #
doBinary :: Integral a => BinaryOperation -> a -> a -> a #
data SMInstruction #
Types
Instances
Eq SMInstruction # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction (==) :: SMInstruction -> SMInstruction -> Bool # (/=) :: SMInstruction -> SMInstruction -> Bool # | |
Read SMInstruction # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction readsPrec :: Int -> ReadS SMInstruction # readList :: ReadS [SMInstruction] # | |
Show SMInstruction # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction showsPrec :: Int -> SMInstruction -> ShowS # show :: SMInstruction -> String # showList :: [SMInstruction] -> ShowS # |
data SPureInstruction #
Cons !Integer | |
Unary !UnaryOperation | |
Binary !BinaryOperation | |
Binaries [BinaryOperation] | |
Indexed !IndexOperand !IndexedOperation | |
Halibut | |
Pick | |
Discard |
Instances
Eq SPureInstruction # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction (==) :: SPureInstruction -> SPureInstruction -> Bool # (/=) :: SPureInstruction -> SPureInstruction -> Bool # | |
Read SPureInstruction # | |
Show SPureInstruction # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction showsPrec :: Int -> SPureInstruction -> ShowS # show :: SPureInstruction -> String # showList :: [SPureInstruction] -> ShowS # |
data IndexOperand #
Instances
Eq IndexOperand # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction (==) :: IndexOperand -> IndexOperand -> Bool # (/=) :: IndexOperand -> IndexOperand -> Bool # | |
Read IndexOperand # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction readsPrec :: Int -> ReadS IndexOperand # readList :: ReadS [IndexOperand] # | |
Show IndexOperand # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction showsPrec :: Int -> IndexOperand -> ShowS # show :: IndexOperand -> String # showList :: [IndexOperand] -> ShowS # |
data UnaryOperation #
Instances
Eq UnaryOperation # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction (==) :: UnaryOperation -> UnaryOperation -> Bool # (/=) :: UnaryOperation -> UnaryOperation -> Bool # | |
Read UnaryOperation # | |
Show UnaryOperation # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction showsPrec :: Int -> UnaryOperation -> ShowS # show :: UnaryOperation -> String # showList :: [UnaryOperation] -> ShowS # |
data BinaryOperation #
Instances
Eq BinaryOperation # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction (==) :: BinaryOperation -> BinaryOperation -> Bool # (/=) :: BinaryOperation -> BinaryOperation -> Bool # | |
Read BinaryOperation # | |
Show BinaryOperation # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction showsPrec :: Int -> BinaryOperation -> ShowS # show :: BinaryOperation -> String # showList :: [BinaryOperation] -> ShowS # |
data IndexedOperation #
Instances
Eq IndexedOperation # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction (==) :: IndexedOperation -> IndexedOperation -> Bool # (/=) :: IndexedOperation -> IndexedOperation -> Bool # | |
Read IndexedOperation # | |
Show IndexedOperation # | |
Defined in HelVM.HelMA.Automaton.Instruction.Groups.SMInstruction showsPrec :: Int -> IndexedOperation -> ShowS # show :: IndexedOperation -> String # showList :: [IndexedOperation] -> ShowS # |
data OperatorType #
printSM :: SMInstruction -> Text #
Internal
printSPure :: SPureInstruction -> Text #
printUnary :: UnaryOperation -> Text #
printIndexOperand :: IndexOperand -> Text #