blob: 645c28d5ada951efedea34146e5fdd9f2a9db2c9 (
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
|
##### LM #####
while 0
print( '0\n' )
global I: int = 3
int f()
{
I = I - 1
print( ' ' I )
}
# simple expr and stmt
while I
f()
print( '\n' )
# compound stmt list
I = 3
while I
{
I = I - 1
print( ' ' I )
}
print( '\n' )
# paren expr
I = 3
while ( I )
f()
print( '\n' )
# expr with computation
I = 3
while ( I + 1 )
f()
print( '\n' )
# computation and stmt list
I = 3
while ( I + 2 )
{
I = I - 1
print( ' ' I )
}
print( '\n' )
##### EXP #####
2 1 0
2 1 0
2 1 0
2 1 0 -1
2 1 0 -1 -2
|