-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparser.output
More file actions
1689 lines (1132 loc) · 34.5 KB
/
Copy pathparser.output
File metadata and controls
1689 lines (1132 loc) · 34.5 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
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
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Terminals unused in grammar
KW_RETURN
TK_ERROR
'"'
Grammar
0 $accept: program $end
1 program: LISTA_COMANDOS
2 LISTA_COMANDOS: LISTA_COMANDOS COMANDO
3 | /* empty */
4 COMANDO: CMD_IF
5 | CMD_WHILE
6 | CMD_PRINT ';'
7 | CMD_READ ';'
8 | CMD_FUNC
9 | ATT_ID ';'
10 | DECL ';'
11 | FUNC_DECL
12 | COMENT
13 | error ';'
14 CMD_IF: KW_IF E KW_THEN BLOCO
15 | KW_IF E KW_THEN BLOCO KW_ELSE BLOCO
16 CMD_WHILE: KW_WHILE E BLOCO
17 CMD_FUNC: TIPO TK_IDENTIFIER '(' LISTA_E ')' BLOCO
18 | TK_IDENTIFIER '(' ')' BLOCO
19 FUNC_DECL: TIPO TK_IDENTIFIER '(' LISTA_DECL ')' BLOCO
20 | KW_INT KW_MAIN '(' LISTA_DECL ')' BLOCO
21 CMD_PRINT: KW_PRINT LIT_STRING
22 CMD_READ: KW_READ TK_IDENTIFIER
23 COMENT: TK_SCOMENT
24 | TK_MCOMENT
25 ATT_ID: TK_IDENTIFIER '=' E
26 | TK_IDENTIFIER '[' E ']' '=' E
27 DECL: TIPO TK_IDENTIFIER
28 | TIPO TK_IDENTIFIER '=' E
29 | TIPO TK_IDENTIFIER '[' E ']'
30 | TIPO TK_IDENTIFIER '[' E ']' '=' '{' LISTA_E '}'
31 LISTA_E: E
32 | E ',' LISTA_E
33 LISTA_DECL: TIPO TK_IDENTIFIER ',' LISTA_DECL
34 | TIPO TK_IDENTIFIER
35 | /* empty */
36 BLOCO: '{' LISTA_COMANDOS '}'
37 E: E '>' E
38 | E '<' E
39 | E '+' E
40 | E '-' E
41 | E '*' E
42 | E '/' E
43 | E "||" E
44 | E "&&" E
45 | "~" E
46 | T
47 | error
48 T: "true"
49 | "false"
50 | F
51 F: LIT_INT
52 | LIT_CHAR
53 | LIT_STRING
54 | TK_IDENTIFIER
55 | '(' E ')'
56 | '(' E '=' E ')'
57 | TK_IDENTIFIER '[' E ']'
58 TIPO: KW_INT
59 | KW_CHAR
Terminals, with rules where they appear
$end (0) 0
'"' (34)
'(' (40) 17 18 19 20 55 56
')' (41) 17 18 19 20 55 56
'*' (42) 41
'+' (43) 39
',' (44) 32 33
'-' (45) 40
'/' (47) 42
';' (59) 6 7 9 10 13
'<' (60) 38
'=' (61) 25 26 28 30 56
'>' (62) 37
'[' (91) 26 29 30 57
']' (93) 26 29 30 57
'{' (123) 30 36
'}' (125) 30 36
error (256) 13 47
KW_CHAR (258) 59
KW_INT (259) 20 58
KW_IF (260) 14 15
KW_THEN (261) 14 15
KW_ELSE (262) 15
KW_WHILE (263) 16
KW_READ (264) 22
KW_PRINT (265) 21
KW_RETURN (266)
KW_MAIN (267) 20
TK_IDENTIFIER (268) 17 18 19 22 25 26 27 28 29 30 33 34 54 57
LIT_INT (269) 51
LIT_CHAR (270) 52
LIT_STRING (271) 21 53
TK_ERROR (272)
TK_SCOMENT (273) 23
TK_MCOMENT (274) 24
"||" (275) 43
"&&" (276) 44
"~" (277) 45
"true" (278) 48
"false" (279) 49
Nonterminals, with rules where they appear
$accept (41)
on left: 0
program (42)
on left: 1, on right: 0
LISTA_COMANDOS (43)
on left: 2 3, on right: 1 2 36
COMANDO (44)
on left: 4 5 6 7 8 9 10 11 12 13, on right: 2
CMD_IF (45)
on left: 14 15, on right: 4
CMD_WHILE (46)
on left: 16, on right: 5
CMD_FUNC (47)
on left: 17 18, on right: 8
FUNC_DECL (48)
on left: 19 20, on right: 11
CMD_PRINT (49)
on left: 21, on right: 6
CMD_READ (50)
on left: 22, on right: 7
COMENT (51)
on left: 23 24, on right: 12
ATT_ID (52)
on left: 25 26, on right: 9
DECL (53)
on left: 27 28 29 30, on right: 10
LISTA_E (54)
on left: 31 32, on right: 17 30 32
LISTA_DECL (55)
on left: 33 34 35, on right: 19 20 33
BLOCO (56)
on left: 36, on right: 14 15 16 17 18 19 20
E (57)
on left: 37 38 39 40 41 42 43 44 45 46 47, on right: 14 15 16 25
26 28 29 30 31 32 37 38 39 40 41 42 43 44 45 55 56 57
T (58)
on left: 48 49 50, on right: 46
F (59)
on left: 51 52 53 54 55 56 57, on right: 50
TIPO (60)
on left: 58 59, on right: 17 19 27 28 29 30 33 34
state 0
0 $accept: . program $end
$default reduce using rule 3 (LISTA_COMANDOS)
program go to state 1
LISTA_COMANDOS go to state 2
state 1
0 $accept: program . $end
$end shift, and go to state 3
state 2
1 program: LISTA_COMANDOS .
2 LISTA_COMANDOS: LISTA_COMANDOS . COMANDO
error shift, and go to state 4
KW_CHAR shift, and go to state 5
KW_INT shift, and go to state 6
KW_IF shift, and go to state 7
KW_WHILE shift, and go to state 8
KW_READ shift, and go to state 9
KW_PRINT shift, and go to state 10
TK_IDENTIFIER shift, and go to state 11
TK_SCOMENT shift, and go to state 12
TK_MCOMENT shift, and go to state 13
$end reduce using rule 1 (program)
COMANDO go to state 14
CMD_IF go to state 15
CMD_WHILE go to state 16
CMD_FUNC go to state 17
FUNC_DECL go to state 18
CMD_PRINT go to state 19
CMD_READ go to state 20
COMENT go to state 21
ATT_ID go to state 22
DECL go to state 23
TIPO go to state 24
state 3
0 $accept: program $end .
$default accept
state 4
13 COMANDO: error . ';'
';' shift, and go to state 25
state 5
59 TIPO: KW_CHAR .
$default reduce using rule 59 (TIPO)
state 6
20 FUNC_DECL: KW_INT . KW_MAIN '(' LISTA_DECL ')' BLOCO
58 TIPO: KW_INT .
KW_MAIN shift, and go to state 26
$default reduce using rule 58 (TIPO)
state 7
14 CMD_IF: KW_IF . E KW_THEN BLOCO
15 | KW_IF . E KW_THEN BLOCO KW_ELSE BLOCO
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 36
T go to state 37
F go to state 38
state 8
16 CMD_WHILE: KW_WHILE . E BLOCO
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 39
T go to state 37
F go to state 38
state 9
22 CMD_READ: KW_READ . TK_IDENTIFIER
TK_IDENTIFIER shift, and go to state 40
state 10
21 CMD_PRINT: KW_PRINT . LIT_STRING
LIT_STRING shift, and go to state 41
state 11
18 CMD_FUNC: TK_IDENTIFIER . '(' ')' BLOCO
25 ATT_ID: TK_IDENTIFIER . '=' E
26 | TK_IDENTIFIER . '[' E ']' '=' E
'[' shift, and go to state 42
'(' shift, and go to state 43
'=' shift, and go to state 44
state 12
23 COMENT: TK_SCOMENT .
$default reduce using rule 23 (COMENT)
state 13
24 COMENT: TK_MCOMENT .
$default reduce using rule 24 (COMENT)
state 14
2 LISTA_COMANDOS: LISTA_COMANDOS COMANDO .
$default reduce using rule 2 (LISTA_COMANDOS)
state 15
4 COMANDO: CMD_IF .
$default reduce using rule 4 (COMANDO)
state 16
5 COMANDO: CMD_WHILE .
$default reduce using rule 5 (COMANDO)
state 17
8 COMANDO: CMD_FUNC .
$default reduce using rule 8 (COMANDO)
state 18
11 COMANDO: FUNC_DECL .
$default reduce using rule 11 (COMANDO)
state 19
6 COMANDO: CMD_PRINT . ';'
';' shift, and go to state 45
state 20
7 COMANDO: CMD_READ . ';'
';' shift, and go to state 46
state 21
12 COMANDO: COMENT .
$default reduce using rule 12 (COMANDO)
state 22
9 COMANDO: ATT_ID . ';'
';' shift, and go to state 47
state 23
10 COMANDO: DECL . ';'
';' shift, and go to state 48
state 24
17 CMD_FUNC: TIPO . TK_IDENTIFIER '(' LISTA_E ')' BLOCO
19 FUNC_DECL: TIPO . TK_IDENTIFIER '(' LISTA_DECL ')' BLOCO
27 DECL: TIPO . TK_IDENTIFIER
28 | TIPO . TK_IDENTIFIER '=' E
29 | TIPO . TK_IDENTIFIER '[' E ']'
30 | TIPO . TK_IDENTIFIER '[' E ']' '=' '{' LISTA_E '}'
TK_IDENTIFIER shift, and go to state 49
state 25
13 COMANDO: error ';' .
$default reduce using rule 13 (COMANDO)
state 26
20 FUNC_DECL: KW_INT KW_MAIN . '(' LISTA_DECL ')' BLOCO
'(' shift, and go to state 50
state 27
47 E: error .
$default reduce using rule 47 (E)
state 28
54 F: TK_IDENTIFIER .
57 | TK_IDENTIFIER . '[' E ']'
'[' shift, and go to state 51
$default reduce using rule 54 (F)
state 29
51 F: LIT_INT .
$default reduce using rule 51 (F)
state 30
52 F: LIT_CHAR .
$default reduce using rule 52 (F)
state 31
53 F: LIT_STRING .
$default reduce using rule 53 (F)
state 32
45 E: "~" . E
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 52
T go to state 37
F go to state 38
state 33
55 F: '(' . E ')'
56 | '(' . E '=' E ')'
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 53
T go to state 37
F go to state 38
state 34
48 T: "true" .
$default reduce using rule 48 (T)
state 35
49 T: "false" .
$default reduce using rule 49 (T)
state 36
14 CMD_IF: KW_IF E . KW_THEN BLOCO
15 | KW_IF E . KW_THEN BLOCO KW_ELSE BLOCO
37 E: E . '>' E
38 | E . '<' E
39 | E . '+' E
40 | E . '-' E
41 | E . '*' E
42 | E . '/' E
43 | E . "||" E
44 | E . "&&" E
KW_THEN shift, and go to state 54
"||" shift, and go to state 55
"&&" shift, and go to state 56
'>' shift, and go to state 57
'<' shift, and go to state 58
'+' shift, and go to state 59
'-' shift, and go to state 60
'*' shift, and go to state 61
'/' shift, and go to state 62
state 37
46 E: T .
$default reduce using rule 46 (E)
state 38
50 T: F .
$default reduce using rule 50 (T)
state 39
16 CMD_WHILE: KW_WHILE E . BLOCO
37 E: E . '>' E
38 | E . '<' E
39 | E . '+' E
40 | E . '-' E
41 | E . '*' E
42 | E . '/' E
43 | E . "||" E
44 | E . "&&" E
"||" shift, and go to state 55
"&&" shift, and go to state 56
'>' shift, and go to state 57
'<' shift, and go to state 58
'+' shift, and go to state 59
'-' shift, and go to state 60
'*' shift, and go to state 61
'/' shift, and go to state 62
'{' shift, and go to state 63
BLOCO go to state 64
state 40
22 CMD_READ: KW_READ TK_IDENTIFIER .
$default reduce using rule 22 (CMD_READ)
state 41
21 CMD_PRINT: KW_PRINT LIT_STRING .
$default reduce using rule 21 (CMD_PRINT)
state 42
26 ATT_ID: TK_IDENTIFIER '[' . E ']' '=' E
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 65
T go to state 37
F go to state 38
state 43
18 CMD_FUNC: TK_IDENTIFIER '(' . ')' BLOCO
')' shift, and go to state 66
state 44
25 ATT_ID: TK_IDENTIFIER '=' . E
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 67
T go to state 37
F go to state 38
state 45
6 COMANDO: CMD_PRINT ';' .
$default reduce using rule 6 (COMANDO)
state 46
7 COMANDO: CMD_READ ';' .
$default reduce using rule 7 (COMANDO)
state 47
9 COMANDO: ATT_ID ';' .
$default reduce using rule 9 (COMANDO)
state 48
10 COMANDO: DECL ';' .
$default reduce using rule 10 (COMANDO)
state 49
17 CMD_FUNC: TIPO TK_IDENTIFIER . '(' LISTA_E ')' BLOCO
19 FUNC_DECL: TIPO TK_IDENTIFIER . '(' LISTA_DECL ')' BLOCO
27 DECL: TIPO TK_IDENTIFIER .
28 | TIPO TK_IDENTIFIER . '=' E
29 | TIPO TK_IDENTIFIER . '[' E ']'
30 | TIPO TK_IDENTIFIER . '[' E ']' '=' '{' LISTA_E '}'
'[' shift, and go to state 68
'(' shift, and go to state 69
'=' shift, and go to state 70
$default reduce using rule 27 (DECL)
state 50
20 FUNC_DECL: KW_INT KW_MAIN '(' . LISTA_DECL ')' BLOCO
KW_CHAR shift, and go to state 5
KW_INT shift, and go to state 71
$default reduce using rule 35 (LISTA_DECL)
LISTA_DECL go to state 72
TIPO go to state 73
state 51
57 F: TK_IDENTIFIER '[' . E ']'
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 74
T go to state 37
F go to state 38
state 52
37 E: E . '>' E
38 | E . '<' E
39 | E . '+' E
40 | E . '-' E
41 | E . '*' E
42 | E . '/' E
43 | E . "||" E
44 | E . "&&" E
45 | "~" E .
'>' shift, and go to state 57
'<' shift, and go to state 58
'+' shift, and go to state 59
'-' shift, and go to state 60
'*' shift, and go to state 61
'/' shift, and go to state 62
$default reduce using rule 45 (E)
state 53
37 E: E . '>' E
38 | E . '<' E
39 | E . '+' E
40 | E . '-' E
41 | E . '*' E
42 | E . '/' E
43 | E . "||" E
44 | E . "&&" E
55 F: '(' E . ')'
56 | '(' E . '=' E ')'
"||" shift, and go to state 55
"&&" shift, and go to state 56
'>' shift, and go to state 57
'<' shift, and go to state 58
'+' shift, and go to state 59
'-' shift, and go to state 60
'*' shift, and go to state 61
'/' shift, and go to state 62
')' shift, and go to state 75
'=' shift, and go to state 76
state 54
14 CMD_IF: KW_IF E KW_THEN . BLOCO
15 | KW_IF E KW_THEN . BLOCO KW_ELSE BLOCO
'{' shift, and go to state 63
BLOCO go to state 77
state 55
43 E: E "||" . E
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 78
T go to state 37
F go to state 38
state 56
44 E: E "&&" . E
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 79
T go to state 37
F go to state 38
state 57
37 E: E '>' . E
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 80
T go to state 37
F go to state 38
state 58
38 E: E '<' . E
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 81
T go to state 37
F go to state 38
state 59
39 E: E '+' . E
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 82
T go to state 37
F go to state 38
state 60
40 E: E '-' . E
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 83
T go to state 37
F go to state 38
state 61
41 E: E '*' . E
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 84
T go to state 37
F go to state 38
state 62
42 E: E '/' . E
error shift, and go to state 27
TK_IDENTIFIER shift, and go to state 28
LIT_INT shift, and go to state 29
LIT_CHAR shift, and go to state 30
LIT_STRING shift, and go to state 31
"~" shift, and go to state 32
'(' shift, and go to state 33
"true" shift, and go to state 34
"false" shift, and go to state 35
E go to state 85
T go to state 37
F go to state 38
state 63
36 BLOCO: '{' . LISTA_COMANDOS '}'
$default reduce using rule 3 (LISTA_COMANDOS)
LISTA_COMANDOS go to state 86
state 64
16 CMD_WHILE: KW_WHILE E BLOCO .
$default reduce using rule 16 (CMD_WHILE)
state 65
26 ATT_ID: TK_IDENTIFIER '[' E . ']' '=' E
37 E: E . '>' E
38 | E . '<' E
39 | E . '+' E
40 | E . '-' E
41 | E . '*' E
42 | E . '/' E
43 | E . "||" E
44 | E . "&&" E
"||" shift, and go to state 55
"&&" shift, and go to state 56
'>' shift, and go to state 57
'<' shift, and go to state 58
'+' shift, and go to state 59
'-' shift, and go to state 60
'*' shift, and go to state 61
'/' shift, and go to state 62
']' shift, and go to state 87
state 66
18 CMD_FUNC: TK_IDENTIFIER '(' ')' . BLOCO
'{' shift, and go to state 63
BLOCO go to state 88
state 67
25 ATT_ID: TK_IDENTIFIER '=' E .
37 E: E . '>' E
38 | E . '<' E
39 | E . '+' E
40 | E . '-' E
41 | E . '*' E
42 | E . '/' E
43 | E . "||" E
44 | E . "&&" E
"||" shift, and go to state 55
"&&" shift, and go to state 56
'>' shift, and go to state 57
'<' shift, and go to state 58
'+' shift, and go to state 59
'-' shift, and go to state 60
'*' shift, and go to state 61
'/' shift, and go to state 62
$default reduce using rule 25 (ATT_ID)