-
Notifications
You must be signed in to change notification settings - Fork 0
/
simpe_primjer_izlaz.txt
205 lines (205 loc) · 2.88 KB
/
simpe_primjer_izlaz.txt
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
KR_VOID 4 void
IDN 4 fun
L_ZAGRADA 4 (
KR_INT 4 int
IDN 4 xYz
D_ZAGRADA 4 )
L_VIT_ZAGRADA 4 {
KR_RETURN 5 return
TOCKAZAREZ 5 ;
D_VIT_ZAGRADA 6 }
KR_INT 9 int
IDN 9 main
L_ZAGRADA 9 (
KR_VOID 9 void
D_ZAGRADA 9 )
L_VIT_ZAGRADA 9 {
KR_INT 10 int
IDN 10 A
L_UGL_ZAGRADA 10 [
BROJ 10 512
D_UGL_ZAGRADA 10 ]
TOCKAZAREZ 10 ;
KR_INT 11 int
IDN 11 t
L_UGL_ZAGRADA 11 [
D_UGL_ZAGRADA 11 ]
OP_PRIDRUZI 11 =
L_VIT_ZAGRADA 11 {
BROJ 11 1
ZAREZ 11 ,
BROJ 11 2
ZAREZ 11 ,
BROJ 11 3
D_VIT_ZAGRADA 11 }
TOCKAZAREZ 11 ;
KR_CHAR 12 char
IDN 12 tmp
L_UGL_ZAGRADA 12 [
D_UGL_ZAGRADA 12 ]
OP_PRIDRUZI 12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
IDN 27 tmp
L_UGL_ZAGRADA 27 [
BROJ 27 3
D_UGL_ZAGRADA 27 ]
OP_PRIDRUZI 27 =
TOCKAZAREZ 27 ;
IDN 28 tmp
L_UGL_ZAGRADA 28 [
BROJ 28 0
D_UGL_ZAGRADA 28 ]
OP_PRIDRUZI 28 =
ZNAK 28 '\''
TOCKAZAREZ 28 ;
KR_FOR 29 for
L_ZAGRADA 29 (
IDN 29 i
OP_PRIDRUZI 29 =
BROJ 29 0
TOCKAZAREZ 29 ;
IDN 29 i
OP_LT 29 <
BROJ 29 4
TOCKAZAREZ 29 ;
OP_INC 29 ++
IDN 29 i
D_ZAGRADA 29 )
L_VIT_ZAGRADA 29 {
IDN 30 tmp
L_UGL_ZAGRADA 30 [
IDN 30 i
D_UGL_ZAGRADA 30 ]
OP_PRIDRUZI 30 =
L_ZAGRADA 30 (
KR_CHAR 30 char
D_ZAGRADA 30 )
IDN 30 abc
TOCKAZAREZ 30 ;
KR_BREAK 33 break
TOCKAZAREZ 33 ;
KR_CONTINUE 34 continue
TOCKAZAREZ 34 ;
KR_RETURN 35 return
IDN 35 xYz
TOCKAZAREZ 35 ;
D_VIT_ZAGRADA 36 }
KR_IF 38 if
L_ZAGRADA 38 (
BROJ 38 1
OP_GTE 38 >=
BROJ 38 3
OP_I 38 &&
IDN 38 i
OP_GT 38 >
BROJ 38 2
OP_ILI 38 ||
IDN 38 i
OP_LTE 38 <=
BROJ 38 12
D_ZAGRADA 38 )
L_VIT_ZAGRADA 38 {
IDN 39 fun
L_ZAGRADA 39 (
BROJ 39 3
D_ZAGRADA 39 )
TOCKAZAREZ 39 ;
D_VIT_ZAGRADA 40 }
KR_ELSE 40 else
L_VIT_ZAGRADA 40 {
IDN 41 fun
L_ZAGRADA 41 (
BROJ 41 5
D_ZAGRADA 41 )
TOCKAZAREZ 41 ;
D_VIT_ZAGRADA 42 }
KR_WHILE 44 while
L_ZAGRADA 44 (
BROJ 44 1
D_ZAGRADA 44 )
L_VIT_ZAGRADA 44 {
KR_BREAK 45 break
TOCKAZAREZ 45 ;
D_VIT_ZAGRADA 46 }
KR_RETURN 48 return
BROJ 48 0
TOCKAZAREZ 48 ;
D_VIT_ZAGRADA 49 }