-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrule110.blang
58 lines (58 loc) · 1019 Bytes
/
rule110.blang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
0
35 ? taraba
32 ? space
10 ? newLine
0 ? pattern111
1 ? pattern110
1 ? pattern101
0 ? pattern100
1 ? pattern011
1 ? pattern010
1 ? pattern001
0 ? pattern000
arr row 100
arr newrow 200
1 ? row0
0 ? counterIteration
0 ? counterElements
0 ? value
while
while
& row0 counterElements +
@ ? value
& row0 counterElements + 1 +
@ 2 * value + ? value
& row0 counterElements + 2 +
@ 4 * value + ? value
& pattern000 value + @ ? value
1 = dup if
taraba charprint
end
else
space charprint
end
value
& newrow0 counterElements + 1 + ??
0 ? value
1 counterElements + ? counterElements
100 counterElements > if
0 ? counterElements
breakloop
end
endloop
newLine charprint
while
& newrow0 counterElements + @
& row0 counterElements + ??
1 counterElements + ? counterElements
100 counterElements > if
0 ? counterElements
breakloop
end
endloop
1 counterIteration + ? counterIteration
100 counterIteration = if
breakloop
end
endloop
endscript .