summaryrefslogtreecommitdiff
path: root/test.prn
blob: ee29b6eb5d48c0cdb36d9e4af3a22ff314eb6dda (plain)
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
@defun "hoi" {
	"hoi\n" print
}
"post" "run\x0a" + print
5 dup while
	dup " " + print hoi
	1 -
dup end

2 1 > if
	"2>1!" print lf
else
	"logic?" print lf
end

0 if
	"yup!" print lf
end


42 "vv" store
vv print lf

pop

1 2 3 4 5 6 stackdump
4 1 rotate stackdump
4 1 rotate stackdump
4 1 rotate stackdump
4 1 rotate stackdump
5 2 rotate stackdump
5 -2 rotate stackdump
lf
6 -1 rotate stackdump
6 5 rotate stackdump
-1 roll stackdump
6 1 rotate stackdump
6 7 rotate stackdump
1 roll stackdump