-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstringtable.py
66 lines (58 loc) · 1.14 KB
/
stringtable.py
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
60
61
62
63
64
65
66
def maketable():
table = {}
table["null"] = 0
table["."] = 1
table["!"] = 2
table["="] = 3
table["<"] = 4
table[">"] = 5
table["+"] = 6
table["-"] = 7
table["*"] = 9
table["0"] = 10
table["1"] = 11
table["2"] = 12
table["3"] = 13
table["4"] = 14
table["5"] = 15
table["6"] = 16
table["7"] = 17
table["8"] = 18
table["9"] = 19
table["$"] = 20
table["#"] = 21
table["/"] = 22
table["%"] = 23
table["'"] = 24
table['"'] = 25
table[':'] = 26
table['@'] = 27
table[" "] = 30
table["a"] = 31
table["b"] = 32
table["c"] = 33
table["d"] = 34
table["e"] = 35
table["f"] = 36
table["g"] = 37
table["h"] = 38
table["i"] = 39
table["j"] = 40
table["k"] = 41
table["l"] = 42
table["m"] = 43
table["n"] = 44
table["o"] = 45
table["p"] = 46
table["q"] = 47
table["r"] = 48
table["s"] = 49
table["t"] = 50
table["u"] = 51
table["v"] = 52
table["w"] = 53
table["x"] = 54
table["y"] = 55
table["z"] = 56
table["nl"] = 99 # newline
return table