repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sidestep
[mTask.git]
/
mTaskInterpret.dcl
diff --git
a/mTaskInterpret.dcl
b/mTaskInterpret.dcl
index
bca5df7
..
70dc6ad
100644
(file)
--- a/
mTaskInterpret.dcl
+++ b/
mTaskInterpret.dcl
@@
-5,16
+5,20
@@
from Control.Monad.State import :: State, :: StateT
from Data.Monoid import class Semigroup, class Monoid
import mTask
from Data.Monoid import class Semigroup, class Monoid
import mTask
-:: MTaskMessage
+:: MTaskMSGRecv
+ = MTPub Int String
+ | MTMessage String
+ | MTEmpty
+
+:: MTaskMSGSend
= MTSds Int String
| MTTask Int String
= MTSds Int String
| MTTask Int String
- | MTPub Int String
| MTUpd Int String
| MTUpd Int String
-instance toString MTaskM
essage
-safePrint :: String -> String
-encode :: MTaskM
essage
-> String
-decode :: String -> MTaskM
essage
+instance toString MTaskM
SGRecv
+instance toString MTaskMSGSend
+encode :: MTaskM
SGSend
-> String
+decode :: String -> MTaskM
SGRecv
:: BC
= BCNop
:: BC
= BCNop
@@
-82,10
+86,10
@@
instance arith ByteCode
instance boolExpr ByteCode
instance analogIO ByteCode
instance digitalIO ByteCode
instance boolExpr ByteCode
instance analogIO ByteCode
instance digitalIO ByteCode
-instance If ByteCode Stmt Stmt Stmt
-
instance If ByteCode Stmt e
Stmt
-instance If ByteCode Stmt Stmt e
-instance If ByteCode x y
Expr
+
//
instance If ByteCode Stmt Stmt Stmt
+
//instance If ByteCode e Stmt
Stmt
+//instance If ByteCode Stmt e Stmt
+instance If ByteCode x y
Stmt
instance IF ByteCode
instance noOp ByteCode
instance IF ByteCode
instance noOp ByteCode
@@
-94,7
+98,10
@@
instance assign ByteCode
instance seq ByteCode
instance serial ByteCode
instance seq ByteCode
instance serial ByteCode
-toMessages :: Int (String, BCState) -> [MTaskMessage]
+//pub :: (ByteCode a b) -> ByteCode a b
+
+toMessages :: Int (String, BCState) -> ([MTaskMSGSend], BCState)
+toSDSUpdate :: Int Int -> [MTaskMSGSend]
toByteVal :: BC -> [Char]
toReadableByteCode :: (ByteCode a b) -> (String, BCState)
toByteVal :: BC -> [Char]
toReadableByteCode :: (ByteCode a b) -> (String, BCState)