-
Notifications
You must be signed in to change notification settings - Fork 0
/
pwogwams.py
137 lines (119 loc) · 2.18 KB
/
pwogwams.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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
assign = \
"""
UwUBasic Variable assignment and print
decwawe x = 5
nuzzels(x)
"""
add = \
"""
decwawe *add(a)* {
decwawe x = 1
decwawe y = x pwus a
wetuwn y
}
nuzzels(add(5))
"""
test_wisten = \
"""
decwawe input
input = wisten
nuzzels(input)
"""
notices = \
"""
decwawe x = 100000
decwawe y = 54321
* notices x wess_twan y *
nuzzels(x)
ewse
nuzzels(y)
stawp
"""
notices_no_ewse = \
"""
decwawe x = 1000
decwawe y = 54321
* notices x wess_twan y *
nuzzels(x)
stawp
"""
binop = \
"""
decwawe x = 10
decwawe y = 122
decwawe z = x pwus y
nuzzels(z)
decwawe a = 150
decwawe b = 50
decwawe c = a minwus b
nuzzels(c)
decwawe d = 10
decwawe e = 5
decwawe f = d twimes e
nuzzels(f)
decwawe m = 1000
decwawe n = 20
decwawe o = m diwide n
nuzzels(o)
"""
OwO = \
"""
decwawe x = 1000
decwawe y = 54321
owo * x wess_twan y *{
nuzzels(x)
x = x twimes 2
nuzzels(y)}
stawp
"""
negative = \
"""
decwawe x = 200
decwawe y = minwus 200
nuzzels(y)
nuzzels(x minwus y)
nuzzels(x minwus minwus 20)
"""
test_all = \
"""
decwawe input = wisten
decwawe *math(a)* {
decwawe x = 10
decwawe y = 122
decwawe z = x pwus y
nuzzels(z)
decwawe b = 50
decwawe c = a minwus b
nuzzels(c)
decwawe d = 10
decwawe e = 5
decwawe f = d twimes e
nuzzels(f)
decwawe m = 1000
decwawe n = 20
decwawe o = m diwide n
wetuwn o
}
math(input)
decwawe y = 122
* notices input wess_twan y *
nuzzels(input)
ewse
nuzzels(y)
stawp
decwawe x = 200
owo * x gweatew_twan y *{
nuzzels(x)
x = x diwide 2
nuzzels(y)
}
stawp
* notices 10 eqwall_twoo 10 *
nuzzels(10)
stawp
* notices 20 eqwall_twoo 10 *
nuzzels(10)
ewse
nuzzels(20)
stawp
"""