Execute SNUSP: Difference between revisions
m
→{{header|Julia}}
Line 117:
$==>==@/==@/==<==#"""
@enum Direction
function snusp(datalength, progstring)
Line 123:
data = zeros(datalength)
dp = ipx = ipy = 1
direction =
lines = split(progstring, "\n")
Line 148:
inboundsy(plus) = (plus ? (ipy < length(lines)) : (ipy > 1)) ? true : exit(data[dp])
function ipnext()
if direction ==
elseif direction ==
elseif direction ==
elseif direction ==
end
end
|