1 definition module mTaskInterpret
3 from Data.Functor.Identity import :: Identity
4 from Control.Monad.State import :: State, :: StateT
5 from Data.Monoid import class Semigroup, class Monoid
33 //Conditionals and jumping
50 :: ByteCode a p = BC (BCState -> ([BC], BCState))
51 instance Semigroup (ByteCode a p)
52 instance Monoid (ByteCode a p)
60 class toByteCode a :: a -> [Char]
61 instance toByteCode Int
62 instance toByteCode Bool
63 instance toByteCode Char
64 instance toByteCode String
65 instance toByteCode Long
66 instance toByteCode Button
69 instance arith ByteCode
70 instance boolExpr ByteCode
71 instance analogIO ByteCode
72 instance digitalIO ByteCode
73 instance If ByteCode Stmt Stmt Stmt
74 instance If ByteCode Stmt e Stmt
75 instance If ByteCode Stmt Stmt e
76 instance If ByteCode x y Expr
78 instance noOp ByteCode
81 instance assign ByteCode
83 instance serial ByteCode
85 toByteVal :: BC -> [Char]
86 toReadableByteCode :: (ByteCode a Expr) -> String
87 toRealByteCode :: (ByteCode a Expr) -> String