Anonymous user
Execute SNUSP/Haskell: Difference between revisions
m
harmonized capitalization of test examples
m (hGetChar stdin --> getChar) |
m (harmonized capitalization of test examples) |
||
Line 11:
* As the SNUSP variants differ in the number of dimensions in data and code, make it easy to add even more dimensions.
The interpreter has been tested with the ''echo'', ''thread'', ''multiplication'' and ''
The Haskell code starts with lots of imports:
Line 107:
exec '<' d t = moveMp d t [-1]
exec '>' d t = moveMp d t [ 1]
exec ',' d t =
exec '.' d t = readMp d t >>= putChar . toChar >> return [t]
exec '\\' d t = return [t {dir=( d2: d1:ds)}] where d1:d2:ds = dir t <+> [0,0]
|