repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changed mTaskInterpret to output a real task
[mTask.git]
/
mTaskInterpret.dcl
diff --git
a/mTaskInterpret.dcl
b/mTaskInterpret.dcl
index
53bb69b
..
2648cb9
100644
(file)
--- a/
mTaskInterpret.dcl
+++ b/
mTaskInterpret.dcl
@@
-6,7
+6,7
@@
import mTask
:: BC
= BCNop
:: BC
= BCNop
- | BCPush
String
+ | BCPush
Int
| BCPop
//Unary ops
| BCNot
| BCPop
//Unary ops
| BCNot
@@
-35,10
+35,10
@@
import mTask
| BCSerialRead
| BCSerialParseInt
//Pins
| BCSerialRead
| BCSerialParseInt
//Pins
- | BCAnalogRead
String
- | BCAnalogWrite
String
- | BCDigitalRead
String
- | BCDigitalWrite
String
+ | BCAnalogRead
Pin
+ | BCAnalogWrite
Pin
+ | BCDigitalRead
Pin
+ | BCDigitalWrite
Pin
| BCTest AnalogPin
//:: ByteCode a p = BC (BCState -> ([BC], BCState))
| BCTest AnalogPin
//:: ByteCode a p = BC (BCState -> ([BC], BCState))
@@
-48,7
+48,7
@@
import mTask
a::()
}
a::()
}
-toByteVal :: BC ->
String
+toByteVal :: BC ->
[Char]
toReadableByteVal :: BC -> String
//instance toCode Pin
toReadableByteVal :: BC -> String
//instance toCode Pin