aboutsummaryrefslogtreecommitdiff
path: root/Brainfuck.dcl
diff options
context:
space:
mode:
authorCamil Staps2015-05-22 16:37:49 +0200
committerCamil Staps2015-05-22 16:37:49 +0200
commitd6af8d48172d07cfa017cdc752c31960953012e8 (patch)
treecc8eb7af4cb6c7bbe9a02ac196d9a2148cc1a35e /Brainfuck.dcl
Initial commit
Diffstat (limited to 'Brainfuck.dcl')
-rw-r--r--Brainfuck.dcl18
1 files changed, 18 insertions, 0 deletions
diff --git a/Brainfuck.dcl b/Brainfuck.dcl
new file mode 100644
index 0000000..672fb04
--- /dev/null
+++ b/Brainfuck.dcl
@@ -0,0 +1,18 @@
+definition module Brainfuck
+
+import StdEnv, StdList
+
+:: Command = INC | DEC | INCP | DECP | OUT | IN | IFZ | IFNZ
+:: Program :== [Command]
+:: InstrPointer :== Int
+
+:: Cell :== Int
+:: Tape :== [Cell]
+:: DataPointer :== Int
+
+:: Output :== [Cell]
+:: Input :== [Cell]
+
+run :: Program Input *env -> *env | FileSystem env
+
+read :: String -> Program