aboutsummaryrefslogtreecommitdiff
path: root/Brainfuck.dcl
diff options
context:
space:
mode:
authorCamil Staps2016-08-25 15:19:30 +0200
committerCamil Staps2016-08-25 15:19:30 +0200
commitc8aa125b0cac24d57ce7b536e00bac550e9ccbb4 (patch)
tree31f9dad4fcfd44bd70a830e3fee0bd9e22a4f8d5 /Brainfuck.dcl
parentCleanup (diff)
Arrays for efficiency
Diffstat (limited to 'Brainfuck.dcl')
-rw-r--r--Brainfuck.dcl4
1 files changed, 2 insertions, 2 deletions
diff --git a/Brainfuck.dcl b/Brainfuck.dcl
index 133e34d..50179ed 100644
--- a/Brainfuck.dcl
+++ b/Brainfuck.dcl
@@ -25,11 +25,11 @@ definition module Brainfuck
import StdEnv, StdList
:: Command = INC | DEC | INCP | DECP | OUT | IN | IFZ | IFNZ
-:: Program :== [Command]
+:: Program :== {Command}
:: InstrPointer :== Int
:: Cell :== Int
-:: Tape :== [Cell]
+:: *Tape :== *{#Cell}
:: DataPointer :== Int
run :: Program *env -> *env | FileSystem env