X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=mTaskInterpret.dcl;h=2648cb9314c48fb9d31fbbc2a2871a9b089a64a5;hb=e62ff4107298a5c69667b10ab807cf932b2c8d9a;hp=885d52e8b3cf857d53dfdc774bf40e386a488761;hpb=48dfd7ad2f104321657a3ea44d33340761c95c2e;p=mTask.git diff --git a/mTaskInterpret.dcl b/mTaskInterpret.dcl index 885d52e..2648cb9 100644 --- a/mTaskInterpret.dcl +++ b/mTaskInterpret.dcl @@ -6,7 +6,7 @@ import mTask :: BC = BCNop - | BCPush String + | BCPush Int | BCPop //Unary ops | BCNot @@ -28,6 +28,18 @@ import mTask | BCJmp Int | BCJmpT Int | BCJmpF Int + //Serial + | BCSerialAvail + | BCSerialPrint + | BCSerialPrintln + | BCSerialRead + | BCSerialParseInt + //Pins + | BCAnalogRead Pin + | BCAnalogWrite Pin + | BCDigitalRead Pin + | BCDigitalWrite Pin + | BCTest AnalogPin //:: ByteCode a p = BC (BCState -> ([BC], BCState)) :: ByteCode a p = BC [BC] @@ -36,7 +48,7 @@ import mTask a::() } -toByteVal :: BC -> String +toByteVal :: BC -> [Char] toReadableByteVal :: BC -> String //instance toCode Pin