aboutsummaryrefslogtreecommitdiff
path: root/stdlib.rip
blob: 4100df92cb35d60dbacd114d201cc3d384efdc44 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
0I[prints string; destructive]
F<strprint>[
	<strrev>
	97aDm
	SDW[
		D3RD3rM o D3rq
	D]
	PP
]

0I[takes string char; returns string+char]
F<strpush>[
	S97aDmma
]

0I[reverses string in place]
F<strrev>[
	0S
	DW[
		D 97aDm D 3r M 3r q 3r S 97aDm m a S
	D]
	P
]

0I[concatenates two strings]
F<strcat>[
	<strrev> 97aDm S
	DW[
		S D 3r S D 3R M 4R 97aDmma 3r S D 3r q
	D]
	PP
]

0I[takes list of characters and a length, builds a string]
F<mkstr>[
	0S
	DW[
		D2aR 3R 97aDm m a S d
	D]
	P
]

0I[
	a b 256
	a b 256 256
	a 256 b 256
	a 256 256 b
	a 256 256 b b
	a 256 b b 256
	a 256 b b%ff
	256 b b%ff a
	256 b newa
	newa 256 b
	newa b 256
	newa b 256 256
	newa 256 b 256
	newa 256 newb
	newa newb 256
]