forked from xbrq/bonerplusplus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathesoTrans.py
More file actions
105 lines (92 loc) · 2.76 KB
/
esoTrans.py
File metadata and controls
105 lines (92 loc) · 2.76 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# -*- coding: utf-8 -*-
# Esolang compiler or something
# read the input file (extension is '.me')
import sys
filename = sys.argv[1]
f = open(filename + '.py', 'r', encoding='utf-8')
code = f.read()
# dictionary of words to be swapped
swap = {
'gamming' : 'for',
'economy' : 'while',
'shitpost' : 'in',
'@heretic' : 'if',
'wtf' : 'else',
'seOH' : 'elif',
'whiny' : 'try',
'shitbaby' : 'except',
'clong' : 'break',
'clobbong' : 'continue',
'cirno' : 'input',
'gebneralk' : 'class',
'meme' : 'def',
'jeff' : 'return',
'sex' : '-',
'yang' : '+',
'gec' : '%',
'anim' : '==',
' boner ' : ' = ',
' unfunwaa ' : ' < ',
' funwaa ' : ' > ',
'strikesy' : '<=',
'tero' : '>=',
'xon' : 'and',
'detecotb' : 'or',
'fuck' : 'is',
'zenzi' : 'not',
'hpock' : 'import',
'tysob' : 'from',
'blorgia' : 'as',
'dick' : 'with',
'server_for_anime' : 'True',
'server_not_for_anime' : 'False',
'Ele_' : 'None',
'ban' : 'del',
'shit' : 'print',
'zœœp' : 'yield',
'troll' : 'lambda',
'ADL' : 'raise',
'oil' : 'pass',
'zoomer' : 'nonlocal',
'boomer' : 'global',
'doge' : 'finally',
'sus' : 'await',
'amongus' : 'assert',
'chungus' : 'async',
'blacksheets' : 'dict',
'thumbnail' : 'str',
'xomc' : 'int',
'dicde' : 'double',
'soinenr' : 'float',
'touhou' : 'chr',
'osu' : 'map',
'reimu' : 'set',
'based' : 'max',
'cringe' : 'min',
'⑨' : 'range',
'mips' : 'round',
'vig' : 'sum',
'privilege' : 'super',
'dino' : 'tuple',
'rshig' : 'zip',
'racism' : 'type',
'dong' : 'len',
'balls' : 'list',
'jeb' : 'open',
'femboy' : 'join',
'epyc' : 'file',
'skeet' : 'split',
'goof' : 'append',
'cock' : 'run',
'cumburger' : '[]',
'eburger' : '\'\'',
'shart' : 'message',
'sprite' : 'event'
}
swap = dict(zip(swap.values(),swap.keys()))
new = code
for item in swap: new = new.replace(item, swap[item])
f.close()
# now we just have regular python code
with open(filename + '.me', 'w+', encoding='utf-8') as f:
f.write('# -*- coding: utf-8 -*-\n' + new)