-
Notifications
You must be signed in to change notification settings - Fork 0
/
n.txt
468 lines (468 loc) · 138 KB
/
n.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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
_sumN 4 TK_FUNID ---- function yes ----
---- ---- ---- ---- otherFunctions no function
input 4 TK_INPUT ---- input_par yes ----
---- ---- ---- ---- function no input_par
parameter 4 TK_PARAMETER ---- input_par yes ----
list 4 TK_LIST ---- input_par yes ----
[ 4 TK_SQL ---- input_par yes ----
int 4 TK_INT ---- primitiveDatatype yes ----
---- ---- ---- ---- dataType no primitiveDatatype
---- ---- ---- ---- parameter_list no dataType
---- ---- ---- ---- input_par no parameter_list
d5cc34 4 TK_ID ---- parameter_list yes ----
---- ---- ---- ---- parameter_list no remaining_list
] 4 TK_SQR ---- input_par yes ----
output 5 TK_OUTPUT ---- output_par yes ----
---- ---- ---- ---- function no output_par
parameter 5 TK_PARAMETER ---- output_par yes ----
list 5 TK_LIST ---- output_par yes ----
[ 5 TK_SQL ---- output_par yes ----
real 5 TK_REAL ---- primitiveDatatype yes ----
---- ---- ---- ---- dataType no primitiveDatatype
---- ---- ---- ---- parameter_list no dataType
---- ---- ---- ---- output_par no parameter_list
d3 5 TK_ID ---- parameter_list yes ----
---- ---- ---- ---- parameter_list no remaining_list
] 5 TK_SQR ---- output_par yes ----
; 5 TK_SEM ---- function yes ----
---- ---- ---- ---- stmts no typeDefinitions
---- ---- ---- ---- function no stmts
type 6 TK_TYPE ---- declaration yes ----
---- ---- ---- ---- declarations no declaration
int 6 TK_INT ---- primitiveDatatype yes ----
---- ---- ---- ---- dataType no primitiveDatatype
---- ---- ---- ---- declaration no dataType
: 6 TK_COLON ---- declaration yes ----
b5b567 6 TK_ID ---- declaration yes ----
---- ---- ---- ---- declaration no global_or_not
; 6 TK_SEM ---- declaration yes ----
---- ---- ---- ---- stmts no declarations
---- ---- ---- ---- declarations no declarations
b5b567 7 TK_ID ---- singleOrRecId yes ----
---- ---- ---- ---- assignmentStmt no singleOrRecId
---- ---- ---- ---- singleOrRecId no new24
---- ---- ---- ---- stmt no assignmentStmt
<--- 7 TK_ASSIGNOP ---- assignmentStmt yes ----
1 7 TK_NUM 1 all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- term no factor
---- ---- ---- ---- arithmeticExpression no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- assignmentStmt no arithmeticExpression
---- ---- ---- ---- arithmeticExpression no expPrime
; 7 TK_SEM ---- assignmentStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- stmts no otherStmts
d3 8 TK_ID ---- singleOrRecId yes ----
---- ---- ---- ---- assignmentStmt no singleOrRecId
---- ---- ---- ---- singleOrRecId no new24
---- ---- ---- ---- stmt no assignmentStmt
<--- 8 TK_ASSIGNOP ---- assignmentStmt yes ----
0.00 8 TK_RNUM 0.00 all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- term no factor
---- ---- ---- ---- arithmeticExpression no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- assignmentStmt no arithmeticExpression
---- ---- ---- ---- arithmeticExpression no expPrime
; 8 TK_SEM ---- assignmentStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- otherStmts no otherStmts
while 9 TK_WHILE ---- iterativeStmt yes ----
---- ---- ---- ---- stmt no iterativeStmt
( 9 TK_OP ---- iterativeStmt yes ----
b5b567 9 TK_ID ---- var yes ----
---- ---- ---- ---- booleanExpression no var
---- ---- ---- ---- iterativeStmt no booleanExpression
<= 9 TK_LE ---- relationalOp yes ----
---- ---- ---- ---- booleanExpression no relationalOp
d5cc34 9 TK_ID ---- var yes ----
---- ---- ---- ---- booleanExpression no var
) 9 TK_CL ---- iterativeStmt yes ----
read 10 TK_READ ---- ioStmt yes ----
---- ---- ---- ---- stmt no ioStmt
( 10 TK_OP ---- ioStmt yes ----
c3bd 10 TK_ID ---- singleOrRecId yes ----
---- ---- ---- ---- ioStmt no singleOrRecId
---- ---- ---- ---- singleOrRecId no new24
) 10 TK_CL ---- ioStmt yes ----
; 10 TK_SEM ---- ioStmt yes ----
---- ---- ---- ---- iterativeStmt no stmt
d3 11 TK_ID ---- singleOrRecId yes ----
---- ---- ---- ---- assignmentStmt no singleOrRecId
---- ---- ---- ---- singleOrRecId no new24
---- ---- ---- ---- stmt no assignmentStmt
<--- 11 TK_ASSIGNOP ---- assignmentStmt yes ----
d3 11 TK_ID ---- all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- all no temp
---- ---- ---- ---- term no factor
---- ---- ---- ---- arithmeticExpression no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- assignmentStmt no arithmeticExpression
+ 11 TK_PLUS ---- lowPrecedenceOperators yes ----
---- ---- ---- ---- expPrime no lowPrecedenceOperators
---- ---- ---- ---- arithmeticExpression no expPrime
c3bd 11 TK_ID ---- all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- all no temp
---- ---- ---- ---- term no factor
---- ---- ---- ---- expPrime no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- expPrime no expPrime
; 11 TK_SEM ---- assignmentStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- iterativeStmt no otherStmts
b5b567 12 TK_ID ---- singleOrRecId yes ----
---- ---- ---- ---- assignmentStmt no singleOrRecId
---- ---- ---- ---- singleOrRecId no new24
---- ---- ---- ---- stmt no assignmentStmt
<--- 12 TK_ASSIGNOP ---- assignmentStmt yes ----
b5b567 12 TK_ID ---- all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- all no temp
---- ---- ---- ---- term no factor
---- ---- ---- ---- arithmeticExpression no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- assignmentStmt no arithmeticExpression
+ 12 TK_PLUS ---- lowPrecedenceOperators yes ----
---- ---- ---- ---- expPrime no lowPrecedenceOperators
---- ---- ---- ---- arithmeticExpression no expPrime
1 12 TK_NUM 1 all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- term no factor
---- ---- ---- ---- expPrime no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- expPrime no expPrime
; 12 TK_SEM ---- assignmentStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- otherStmts no otherStmts
---- ---- ---- ---- otherStmts no otherStmts
endwhile 13 TK_ENDWHILE ---- iterativeStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- otherStmts no otherStmts
---- ---- ---- ---- otherStmts no otherStmts
return 14 TK_RETURN ---- returnStmt yes ----
---- ---- ---- ---- stmts no returnStmt
[ 14 TK_SQL ---- optionalReturn yes ----
---- ---- ---- ---- returnStmt no optionalReturn
d3 14 TK_ID ---- idList yes ----
---- ---- ---- ---- optionalReturn no idList
---- ---- ---- ---- idList no more_ids
] 14 TK_SQR ---- optionalReturn yes ----
; 14 TK_SEM ---- returnStmt yes ----
end 15 TK_END ---- function yes ----
---- ---- ---- ---- program no otherFunctions
---- ---- ---- ---- otherFunctions no otherFunctions
---- ---- ---- ---- ROOT no program
_main 17 TK_MAIN ---- mainFunction yes ----
---- ---- ---- ---- program no mainFunction
---- ---- ---- ---- stmts no typeDefinitions
---- ---- ---- ---- mainFunction no stmts
type 18 TK_TYPE ---- declaration yes ----
---- ---- ---- ---- declarations no declaration
int 18 TK_INT ---- primitiveDatatype yes ----
---- ---- ---- ---- dataType no primitiveDatatype
---- ---- ---- ---- declaration no dataType
: 18 TK_COLON ---- declaration yes ----
b3 18 TK_ID ---- declaration yes ----
---- ---- ---- ---- declaration no global_or_not
; 18 TK_SEM ---- declaration yes ----
---- ---- ---- ---- stmts no declarations
type 19 TK_TYPE ---- declaration yes ----
---- ---- ---- ---- declarations no declaration
real 19 TK_REAL ---- primitiveDatatype yes ----
---- ---- ---- ---- dataType no primitiveDatatype
---- ---- ---- ---- declaration no dataType
: 19 TK_COLON ---- declaration yes ----
c4bd56 19 TK_ID ---- declaration yes ----
---- ---- ---- ---- declaration no global_or_not
; 19 TK_SEM ---- declaration yes ----
---- ---- ---- ---- declarations no declarations
---- ---- ---- ---- declarations no declarations
b3 20 TK_ID ---- singleOrRecId yes ----
---- ---- ---- ---- assignmentStmt no singleOrRecId
---- ---- ---- ---- singleOrRecId no new24
---- ---- ---- ---- stmt no assignmentStmt
<--- 20 TK_ASSIGNOP ---- assignmentStmt yes ----
7 20 TK_NUM 7 all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- term no factor
---- ---- ---- ---- arithmeticExpression no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- assignmentStmt no arithmeticExpression
---- ---- ---- ---- arithmeticExpression no expPrime
; 20 TK_SEM ---- assignmentStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- stmts no otherStmts
[ 21 TK_SQL ---- outputParameters yes ----
---- ---- ---- ---- funCallStmt no outputParameters
c4bd56 21 TK_ID ---- idList yes ----
---- ---- ---- ---- outputParameters no idList
---- ---- ---- ---- idList no more_ids
] 21 TK_SQR ---- outputParameters yes ----
<--- 21 TK_ASSIGNOP ---- outputParameters yes ----
---- ---- ---- ---- stmt no funCallStmt
call 21 TK_CALL ---- funCallStmt yes ----
_sumN 21 TK_FUNID ---- funCallStmt yes ----
with 21 TK_WITH ---- funCallStmt yes ----
parameters 21 TK_PARAMETERS ---- funCallStmt yes ----
[ 21 TK_SQL ---- inputParameters yes ----
---- ---- ---- ---- funCallStmt no inputParameters
b3 21 TK_ID ---- idList yes ----
---- ---- ---- ---- inputParameters no idList
---- ---- ---- ---- idList no more_ids
] 21 TK_SQR ---- inputParameters yes ----
; 21 TK_SEM ---- funCallStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- otherStmts no otherStmts
write 22 TK_WRITE ---- ioStmt yes ----
---- ---- ---- ---- stmt no ioStmt
( 22 TK_OP ---- ioStmt yes ----
c4bd56 22 TK_ID ---- allVar yes ----
---- ---- ---- ---- ioStmt no allVar
---- ---- ---- ---- allVar no newVar
) 22 TK_CL ---- ioStmt yes ----
; 22 TK_SEM ---- ioStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- otherStmts no otherStmts
---- ---- ---- ---- otherStmts no otherStmts
return 23 TK_RETURN ---- returnStmt yes ----
---- ---- ---- ---- stmts no returnStmt
---- ---- ---- ---- returnStmt no optionalReturn
; 23 TK_SEM ---- returnStmt yes ----
end 24 TK_END ---- mainFunction yes ----
_sumN 4 TK_FUNID ---- function yes ----
---- ---- ---- ---- otherFunctions no function
input 4 TK_INPUT ---- input_par yes ----
---- ---- ---- ---- function no input_par
parameter 4 TK_PARAMETER ---- input_par yes ----
list 4 TK_LIST ---- input_par yes ----
[ 4 TK_SQL ---- input_par yes ----
int 4 TK_INT ---- primitiveDatatype yes ----
---- ---- ---- ---- dataType no primitiveDatatype
---- ---- ---- ---- parameter_list no dataType
---- ---- ---- ---- input_par no parameter_list
d5cc34 4 TK_ID ---- parameter_list yes ----
---- ---- ---- ---- parameter_list no remaining_list
] 4 TK_SQR ---- input_par yes ----
output 5 TK_OUTPUT ---- output_par yes ----
---- ---- ---- ---- function no output_par
parameter 5 TK_PARAMETER ---- output_par yes ----
list 5 TK_LIST ---- output_par yes ----
[ 5 TK_SQL ---- output_par yes ----
real 5 TK_REAL ---- primitiveDatatype yes ----
---- ---- ---- ---- dataType no primitiveDatatype
---- ---- ---- ---- parameter_list no dataType
---- ---- ---- ---- output_par no parameter_list
d3 5 TK_ID ---- parameter_list yes ----
---- ---- ---- ---- parameter_list no remaining_list
] 5 TK_SQR ---- output_par yes ----
; 5 TK_SEM ---- function yes ----
---- ---- ---- ---- stmts no typeDefinitions
---- ---- ---- ---- function no stmts
type 6 TK_TYPE ---- declaration yes ----
---- ---- ---- ---- declarations no declaration
int 6 TK_INT ---- primitiveDatatype yes ----
---- ---- ---- ---- dataType no primitiveDatatype
---- ---- ---- ---- declaration no dataType
: 6 TK_COLON ---- declaration yes ----
b5b567 6 TK_ID ---- declaration yes ----
---- ---- ---- ---- declaration no global_or_not
; 6 TK_SEM ---- declaration yes ----
---- ---- ---- ---- stmts no declarations
---- ---- ---- ---- declarations no declarations
b5b567 7 TK_ID ---- singleOrRecId yes ----
---- ---- ---- ---- assignmentStmt no singleOrRecId
---- ---- ---- ---- singleOrRecId no new24
---- ---- ---- ---- stmt no assignmentStmt
<--- 7 TK_ASSIGNOP ---- assignmentStmt yes ----
1 7 TK_NUM 1 all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- term no factor
---- ---- ---- ---- arithmeticExpression no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- assignmentStmt no arithmeticExpression
---- ---- ---- ---- arithmeticExpression no expPrime
; 7 TK_SEM ---- assignmentStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- stmts no otherStmts
d3 8 TK_ID ---- singleOrRecId yes ----
---- ---- ---- ---- assignmentStmt no singleOrRecId
---- ---- ---- ---- singleOrRecId no new24
---- ---- ---- ---- stmt no assignmentStmt
<--- 8 TK_ASSIGNOP ---- assignmentStmt yes ----
0.00 8 TK_RNUM 0.00 all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- term no factor
---- ---- ---- ---- arithmeticExpression no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- assignmentStmt no arithmeticExpression
---- ---- ---- ---- arithmeticExpression no expPrime
; 8 TK_SEM ---- assignmentStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- otherStmts no otherStmts
while 9 TK_WHILE ---- iterativeStmt yes ----
---- ---- ---- ---- stmt no iterativeStmt
( 9 TK_OP ---- iterativeStmt yes ----
b5b567 9 TK_ID ---- var yes ----
---- ---- ---- ---- booleanExpression no var
---- ---- ---- ---- iterativeStmt no booleanExpression
<= 9 TK_LE ---- relationalOp yes ----
---- ---- ---- ---- booleanExpression no relationalOp
d5cc34 9 TK_ID ---- var yes ----
---- ---- ---- ---- booleanExpression no var
) 9 TK_CL ---- iterativeStmt yes ----
read 10 TK_READ ---- ioStmt yes ----
---- ---- ---- ---- stmt no ioStmt
( 10 TK_OP ---- ioStmt yes ----
c3bd 10 TK_ID ---- singleOrRecId yes ----
---- ---- ---- ---- ioStmt no singleOrRecId
---- ---- ---- ---- singleOrRecId no new24
) 10 TK_CL ---- ioStmt yes ----
; 10 TK_SEM ---- ioStmt yes ----
---- ---- ---- ---- iterativeStmt no stmt
d3 11 TK_ID ---- singleOrRecId yes ----
---- ---- ---- ---- assignmentStmt no singleOrRecId
---- ---- ---- ---- singleOrRecId no new24
---- ---- ---- ---- stmt no assignmentStmt
<--- 11 TK_ASSIGNOP ---- assignmentStmt yes ----
d3 11 TK_ID ---- all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- all no temp
---- ---- ---- ---- term no factor
---- ---- ---- ---- arithmeticExpression no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- assignmentStmt no arithmeticExpression
+ 11 TK_PLUS ---- lowPrecedenceOperators yes ----
---- ---- ---- ---- expPrime no lowPrecedenceOperators
---- ---- ---- ---- arithmeticExpression no expPrime
c3bd 11 TK_ID ---- all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- all no temp
---- ---- ---- ---- term no factor
---- ---- ---- ---- expPrime no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- expPrime no expPrime
; 11 TK_SEM ---- assignmentStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- iterativeStmt no otherStmts
b5b567 12 TK_ID ---- singleOrRecId yes ----
---- ---- ---- ---- assignmentStmt no singleOrRecId
---- ---- ---- ---- singleOrRecId no new24
---- ---- ---- ---- stmt no assignmentStmt
<--- 12 TK_ASSIGNOP ---- assignmentStmt yes ----
b5b567 12 TK_ID ---- all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- all no temp
---- ---- ---- ---- term no factor
---- ---- ---- ---- arithmeticExpression no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- assignmentStmt no arithmeticExpression
+ 12 TK_PLUS ---- lowPrecedenceOperators yes ----
---- ---- ---- ---- expPrime no lowPrecedenceOperators
---- ---- ---- ---- arithmeticExpression no expPrime
1 12 TK_NUM 1 all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- term no factor
---- ---- ---- ---- expPrime no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- expPrime no expPrime
; 12 TK_SEM ---- assignmentStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- otherStmts no otherStmts
---- ---- ---- ---- otherStmts no otherStmts
endwhile 13 TK_ENDWHILE ---- iterativeStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- otherStmts no otherStmts
---- ---- ---- ---- otherStmts no otherStmts
return 14 TK_RETURN ---- returnStmt yes ----
---- ---- ---- ---- stmts no returnStmt
[ 14 TK_SQL ---- optionalReturn yes ----
---- ---- ---- ---- returnStmt no optionalReturn
d3 14 TK_ID ---- idList yes ----
---- ---- ---- ---- optionalReturn no idList
---- ---- ---- ---- idList no more_ids
] 14 TK_SQR ---- optionalReturn yes ----
; 14 TK_SEM ---- returnStmt yes ----
end 15 TK_END ---- function yes ----
---- ---- ---- ---- program no otherFunctions
---- ---- ---- ---- otherFunctions no otherFunctions
---- ---- ---- ---- ROOT no program
_main 17 TK_MAIN ---- mainFunction yes ----
---- ---- ---- ---- program no mainFunction
---- ---- ---- ---- stmts no typeDefinitions
---- ---- ---- ---- mainFunction no stmts
type 18 TK_TYPE ---- declaration yes ----
---- ---- ---- ---- declarations no declaration
int 18 TK_INT ---- primitiveDatatype yes ----
---- ---- ---- ---- dataType no primitiveDatatype
---- ---- ---- ---- declaration no dataType
: 18 TK_COLON ---- declaration yes ----
b3 18 TK_ID ---- declaration yes ----
---- ---- ---- ---- declaration no global_or_not
; 18 TK_SEM ---- declaration yes ----
---- ---- ---- ---- stmts no declarations
type 19 TK_TYPE ---- declaration yes ----
---- ---- ---- ---- declarations no declaration
real 19 TK_REAL ---- primitiveDatatype yes ----
---- ---- ---- ---- dataType no primitiveDatatype
---- ---- ---- ---- declaration no dataType
: 19 TK_COLON ---- declaration yes ----
c4bd56 19 TK_ID ---- declaration yes ----
---- ---- ---- ---- declaration no global_or_not
; 19 TK_SEM ---- declaration yes ----
---- ---- ---- ---- declarations no declarations
---- ---- ---- ---- declarations no declarations
b3 20 TK_ID ---- singleOrRecId yes ----
---- ---- ---- ---- assignmentStmt no singleOrRecId
---- ---- ---- ---- singleOrRecId no new24
---- ---- ---- ---- stmt no assignmentStmt
<--- 20 TK_ASSIGNOP ---- assignmentStmt yes ----
7 20 TK_NUM 7 all yes ----
---- ---- ---- ---- factor no all
---- ---- ---- ---- term no factor
---- ---- ---- ---- arithmeticExpression no term
---- ---- ---- ---- term no termPrime
---- ---- ---- ---- assignmentStmt no arithmeticExpression
---- ---- ---- ---- arithmeticExpression no expPrime
; 20 TK_SEM ---- assignmentStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- stmts no otherStmts
[ 21 TK_SQL ---- outputParameters yes ----
---- ---- ---- ---- funCallStmt no outputParameters
c4bd56 21 TK_ID ---- idList yes ----
---- ---- ---- ---- outputParameters no idList
---- ---- ---- ---- idList no more_ids
] 21 TK_SQR ---- outputParameters yes ----
<--- 21 TK_ASSIGNOP ---- outputParameters yes ----
---- ---- ---- ---- stmt no funCallStmt
call 21 TK_CALL ---- funCallStmt yes ----
_sumN 21 TK_FUNID ---- funCallStmt yes ----
with 21 TK_WITH ---- funCallStmt yes ----
parameters 21 TK_PARAMETERS ---- funCallStmt yes ----
[ 21 TK_SQL ---- inputParameters yes ----
---- ---- ---- ---- funCallStmt no inputParameters
b3 21 TK_ID ---- idList yes ----
---- ---- ---- ---- inputParameters no idList
---- ---- ---- ---- idList no more_ids
] 21 TK_SQR ---- inputParameters yes ----
; 21 TK_SEM ---- funCallStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- otherStmts no otherStmts
write 22 TK_WRITE ---- ioStmt yes ----
---- ---- ---- ---- stmt no ioStmt
( 22 TK_OP ---- ioStmt yes ----
c4bd56 22 TK_ID ---- allVar yes ----
---- ---- ---- ---- ioStmt no allVar
---- ---- ---- ---- allVar no newVar
) 22 TK_CL ---- ioStmt yes ----
; 22 TK_SEM ---- ioStmt yes ----
---- ---- ---- ---- otherStmts no stmt
---- ---- ---- ---- otherStmts no otherStmts
---- ---- ---- ---- otherStmts no otherStmts
return 23 TK_RETURN ---- returnStmt yes ----
---- ---- ---- ---- stmts no returnStmt
---- ---- ---- ---- returnStmt no optionalReturn
; 23 TK_SEM ---- returnStmt yes ----
end 24 TK_END ---- mainFunction yes ----