-
Notifications
You must be signed in to change notification settings - Fork 0
/
parser.out
9467 lines (8384 loc) · 367 KB
/
parser.out
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
Created by PLY version 3.11 (http://www.dabeaz.com/ply)
Unused terminals:
FLECHA
SXOR
VAR
abs
array
exit
unset
xor
Grammar
Rule 0 S' -> s
Rule 1 s -> lbody
Rule 2 lbody -> lbody body
Rule 3 lbody -> body
Rule 4 body -> TYPE ID IZQPAR lpam DERPAR IZQCOR linst DERCOR
Rule 5 body -> TYPE main IZQPAR lpam DERPAR IZQCOR linst DERCOR
Rule 6 body -> struct ident IZQCOR linst DERCOR PCOMA
Rule 7 body -> decla PCOMA
Rule 8 linst -> linst inst
Rule 9 linst -> inst
Rule 10 lpam -> lparam
Rule 11 lpam -> <empty>
Rule 12 lparam -> lparam COMA TYPE ident
Rule 13 lparam -> TYPE ident
Rule 14 inst -> asig PCOMA
Rule 15 inst -> para
Rule 16 inst -> si
Rule 17 inst -> mientras
Rule 18 inst -> cual
Rule 19 inst -> call
Rule 20 inst -> dow
Rule 21 inst -> asg
Rule 22 inst -> prin
Rule 23 inst -> decla PCOMA
Rule 24 inst -> tag
Rule 25 inst -> gotot PCOMA
Rule 26 inst -> brk PCOMA
Rule 27 inst -> ret PCOMA
Rule 28 asg -> TYPE lids PCOMA
Rule 29 lids -> lids COMA ident
Rule 30 lids -> ident
Rule 31 call -> ident IZQPAR plex DERPAR PCOMA
Rule 32 brk -> break
Rule 33 ret -> return exp
Rule 34 ret -> return
Rule 35 plex -> lex
Rule 36 plex -> <empty>
Rule 37 lex -> lex COMA exp
Rule 38 lex -> exp
Rule 39 tag -> ident DP
Rule 40 gotot -> goto ident
Rule 41 asig -> ident lacs IGUAL exp
Rule 42 asig -> ident IGUAL exp
Rule 43 asig -> ident lacs INCE
Rule 44 asig -> ident INCE
Rule 45 asig -> ident lacs DECRE
Rule 46 asig -> ident DECRE
Rule 47 decla -> TYPE ident lacs IGUAL exp
Rule 48 decla -> TYPE ident IGUAL exp
Rule 49 mientras -> while IZQPAR exp DERPAR IZQCOR linst DERCOR
Rule 50 dow -> do IZQCOR linst DERCOR while IZQPAR exp DERPAR PCOMA
Rule 51 si -> if IZQPAR exp DERPAR IZQCOR linst DERCOR lelsi els
Rule 52 si -> if IZQPAR exp DERPAR IZQCOR linst DERCOR els
Rule 53 lelsi -> lelsi elsi
Rule 54 lelsi -> elsi
Rule 55 elsi -> else if IZQPAR exp DERPAR IZQCOR linst DERCOR
Rule 56 els -> else IZQCOR linst DERCOR
Rule 57 els -> <empty>
Rule 58 para -> for IZQPAR para1 exp PCOMA para2 DERPAR IZQCOR linst DERCOR
Rule 59 para1 -> asig PCOMA
Rule 60 para1 -> decla PCOMA
Rule 61 para2 -> asig
Rule 62 para2 -> decla
Rule 63 para2 -> exp
Rule 64 cual -> switch IZQPAR exp DERPAR IZQCOR lcase def DERCOR
Rule 65 lcase -> lcase caso
Rule 66 lcase -> caso
Rule 67 caso -> case ID DP linst break PCOMA
Rule 68 caso -> case ID DP linst
Rule 69 def -> default DP linst break PCOMA
Rule 70 def -> <empty>
Rule 71 prin -> printf IZQPAR STR lexpr DERPAR PCOMA
Rule 72 prin -> printf IZQPAR STR DERPAR PCOMA
Rule 73 exp -> scanf IZQPAR DERPAR
Rule 74 lexpr -> lexpr COMA exp
Rule 75 lexpr -> COMA exp
Rule 76 ident -> ID
Rule 77 lacs -> lacs acs
Rule 78 lacs -> acs
Rule 79 acs -> IZQLLAVE exp DERLLAVE
Rule 80 acs -> PUNTO ID
Rule 81 exp -> exp SUMA exp
Rule 82 exp -> exp RESTA exp
Rule 83 exp -> exp MULTI exp
Rule 84 exp -> exp DIV exp
Rule 85 exp -> exp PORCENTAJE exp
Rule 86 exp -> exp DIGUAL exp
Rule 87 exp -> exp DESIGUAL exp
Rule 88 exp -> exp MAYOR exp
Rule 89 exp -> exp MENOR exp
Rule 90 exp -> exp MAYORIGUAL exp
Rule 91 exp -> exp MENORIGUAL exp
Rule 92 exp -> exp AND exp
Rule 93 exp -> exp OR exp
Rule 94 exp -> exp BAND exp
Rule 95 exp -> exp BOR exp
Rule 96 exp -> exp BXOR exp
Rule 97 exp -> exp BLEFT exp
Rule 98 exp -> exp BRIGHT exp
Rule 99 exp -> RESTA exp
Rule 100 exp -> NOT exp
Rule 101 exp -> BNOT exp
Rule 102 exp -> sizeof exp
Rule 103 exp -> IZQPAR exp DERPAR
Rule 104 exp -> IZQPAR TYPE DERPAR exp
Rule 105 exp -> exp ASK exp DP exp
Rule 106 exp -> DOUBLE
Rule 107 exp -> INTEGER
Rule 108 exp -> ident
Rule 109 exp -> ident lacs
Rule 110 exp -> STR
Rule 111 exp -> IZQCOR lex DERCOR
Rule 112 TYPE -> int
Rule 113 TYPE -> float
Rule 114 TYPE -> char
Rule 115 TYPE -> double
Rule 116 TYPE -> void
Terminals, with rules where they appear
AND : 92
ASK : 105
BAND : 94
BLEFT : 97
BNOT : 101
BOR : 95
BRIGHT : 98
BXOR : 96
COMA : 12 29 37 74 75
DECRE : 45 46
DERCOR : 4 5 6 49 50 51 52 55 56 58 64 111
DERLLAVE : 79
DERPAR : 4 5 31 49 50 51 52 55 58 64 71 72 73 103 104
DESIGUAL : 87
DIGUAL : 86
DIV : 84
DOUBLE : 106
DP : 39 67 68 69 105
FLECHA :
ID : 4 67 68 76 80
IGUAL : 41 42 47 48
INCE : 43 44
INTEGER : 107
IZQCOR : 4 5 6 49 50 51 52 55 56 58 64 111
IZQLLAVE : 79
IZQPAR : 4 5 31 49 50 51 52 55 58 64 71 72 73 103 104
MAYOR : 88
MAYORIGUAL : 90
MENOR : 89
MENORIGUAL : 91
MULTI : 83
NOT : 100
OR : 93
PCOMA : 6 7 14 23 25 26 27 28 31 50 58 59 60 67 69 71 72
PORCENTAJE : 85
PUNTO : 80
RESTA : 82 99
STR : 71 72 110
SUMA : 81
SXOR :
VAR :
abs :
array :
break : 32 67 69
case : 67 68
char : 114
default : 69
do : 50
double : 115
else : 55 56
error :
exit :
float : 113
for : 58
goto : 40
if : 51 52 55
int : 112
main : 5
printf : 71 72
return : 33 34
scanf : 73
sizeof : 102
struct : 6
switch : 64
unset :
void : 116
while : 49 50
xor :
Nonterminals, with rules where they appear
TYPE : 4 5 12 13 28 47 48 104
acs : 77 78
asg : 21
asig : 14 59 61
body : 2 3
brk : 26
call : 19
caso : 65 66
cual : 18
decla : 7 23 60 62
def : 64
dow : 20
els : 51 52
elsi : 53 54
exp : 33 37 38 41 42 47 48 49 50 51 52 55 58 63 64 74 75 79 81 81 82 82 83 83 84 84 85 85 86 86 87 87 88 88 89 89 90 90 91 91 92 92 93 93 94 94 95 95 96 96 97 97 98 98 99 100 101 102 103 104 105 105 105
gotot : 25
ident : 6 12 13 29 30 31 39 40 41 42 43 44 45 46 47 48 108 109
inst : 8 9
lacs : 41 43 45 47 77 109
lbody : 1 2
lcase : 64 65
lelsi : 51 53
lex : 35 37 111
lexpr : 71 74
lids : 28 29
linst : 4 5 6 8 49 50 51 52 55 56 58 67 68 69
lpam : 4 5
lparam : 10 12
mientras : 17
para : 15
para1 : 58
para2 : 58
plex : 31
prin : 22
ret : 27
s : 0
si : 16
tag : 24
Parsing method: LALR
state 0
(0) S' -> . s
(1) s -> . lbody
(2) lbody -> . lbody body
(3) lbody -> . body
(4) body -> . TYPE ID IZQPAR lpam DERPAR IZQCOR linst DERCOR
(5) body -> . TYPE main IZQPAR lpam DERPAR IZQCOR linst DERCOR
(6) body -> . struct ident IZQCOR linst DERCOR PCOMA
(7) body -> . decla PCOMA
(112) TYPE -> . int
(113) TYPE -> . float
(114) TYPE -> . char
(115) TYPE -> . double
(116) TYPE -> . void
(47) decla -> . TYPE ident lacs IGUAL exp
(48) decla -> . TYPE ident IGUAL exp
struct shift and go to state 5
int shift and go to state 7
float shift and go to state 8
char shift and go to state 9
double shift and go to state 10
void shift and go to state 11
s shift and go to state 1
lbody shift and go to state 2
body shift and go to state 3
TYPE shift and go to state 4
decla shift and go to state 6
state 1
(0) S' -> s .
state 2
(1) s -> lbody .
(2) lbody -> lbody . body
(4) body -> . TYPE ID IZQPAR lpam DERPAR IZQCOR linst DERCOR
(5) body -> . TYPE main IZQPAR lpam DERPAR IZQCOR linst DERCOR
(6) body -> . struct ident IZQCOR linst DERCOR PCOMA
(7) body -> . decla PCOMA
(112) TYPE -> . int
(113) TYPE -> . float
(114) TYPE -> . char
(115) TYPE -> . double
(116) TYPE -> . void
(47) decla -> . TYPE ident lacs IGUAL exp
(48) decla -> . TYPE ident IGUAL exp
$end reduce using rule 1 (s -> lbody .)
struct shift and go to state 5
int shift and go to state 7
float shift and go to state 8
char shift and go to state 9
double shift and go to state 10
void shift and go to state 11
body shift and go to state 12
TYPE shift and go to state 4
decla shift and go to state 6
state 3
(3) lbody -> body .
struct reduce using rule 3 (lbody -> body .)
int reduce using rule 3 (lbody -> body .)
float reduce using rule 3 (lbody -> body .)
char reduce using rule 3 (lbody -> body .)
double reduce using rule 3 (lbody -> body .)
void reduce using rule 3 (lbody -> body .)
$end reduce using rule 3 (lbody -> body .)
state 4
(4) body -> TYPE . ID IZQPAR lpam DERPAR IZQCOR linst DERCOR
(5) body -> TYPE . main IZQPAR lpam DERPAR IZQCOR linst DERCOR
(47) decla -> TYPE . ident lacs IGUAL exp
(48) decla -> TYPE . ident IGUAL exp
(76) ident -> . ID
ID shift and go to state 13
main shift and go to state 14
ident shift and go to state 15
state 5
(6) body -> struct . ident IZQCOR linst DERCOR PCOMA
(76) ident -> . ID
ID shift and go to state 17
ident shift and go to state 16
state 6
(7) body -> decla . PCOMA
PCOMA shift and go to state 18
state 7
(112) TYPE -> int .
ID reduce using rule 112 (TYPE -> int .)
main reduce using rule 112 (TYPE -> int .)
DERPAR reduce using rule 112 (TYPE -> int .)
state 8
(113) TYPE -> float .
ID reduce using rule 113 (TYPE -> float .)
main reduce using rule 113 (TYPE -> float .)
DERPAR reduce using rule 113 (TYPE -> float .)
state 9
(114) TYPE -> char .
ID reduce using rule 114 (TYPE -> char .)
main reduce using rule 114 (TYPE -> char .)
DERPAR reduce using rule 114 (TYPE -> char .)
state 10
(115) TYPE -> double .
ID reduce using rule 115 (TYPE -> double .)
main reduce using rule 115 (TYPE -> double .)
DERPAR reduce using rule 115 (TYPE -> double .)
state 11
(116) TYPE -> void .
ID reduce using rule 116 (TYPE -> void .)
main reduce using rule 116 (TYPE -> void .)
DERPAR reduce using rule 116 (TYPE -> void .)
state 12
(2) lbody -> lbody body .
struct reduce using rule 2 (lbody -> lbody body .)
int reduce using rule 2 (lbody -> lbody body .)
float reduce using rule 2 (lbody -> lbody body .)
char reduce using rule 2 (lbody -> lbody body .)
double reduce using rule 2 (lbody -> lbody body .)
void reduce using rule 2 (lbody -> lbody body .)
$end reduce using rule 2 (lbody -> lbody body .)
state 13
(4) body -> TYPE ID . IZQPAR lpam DERPAR IZQCOR linst DERCOR
(76) ident -> ID .
IZQPAR shift and go to state 19
IGUAL reduce using rule 76 (ident -> ID .)
IZQLLAVE reduce using rule 76 (ident -> ID .)
PUNTO reduce using rule 76 (ident -> ID .)
state 14
(5) body -> TYPE main . IZQPAR lpam DERPAR IZQCOR linst DERCOR
IZQPAR shift and go to state 20
state 15
(47) decla -> TYPE ident . lacs IGUAL exp
(48) decla -> TYPE ident . IGUAL exp
(77) lacs -> . lacs acs
(78) lacs -> . acs
(79) acs -> . IZQLLAVE exp DERLLAVE
(80) acs -> . PUNTO ID
IGUAL shift and go to state 22
IZQLLAVE shift and go to state 24
PUNTO shift and go to state 25
lacs shift and go to state 21
acs shift and go to state 23
state 16
(6) body -> struct ident . IZQCOR linst DERCOR PCOMA
IZQCOR shift and go to state 26
state 17
(76) ident -> ID .
IZQCOR reduce using rule 76 (ident -> ID .)
IZQLLAVE reduce using rule 76 (ident -> ID .)
PUNTO reduce using rule 76 (ident -> ID .)
SUMA reduce using rule 76 (ident -> ID .)
RESTA reduce using rule 76 (ident -> ID .)
MULTI reduce using rule 76 (ident -> ID .)
DIV reduce using rule 76 (ident -> ID .)
PORCENTAJE reduce using rule 76 (ident -> ID .)
DIGUAL reduce using rule 76 (ident -> ID .)
DESIGUAL reduce using rule 76 (ident -> ID .)
MAYOR reduce using rule 76 (ident -> ID .)
MENOR reduce using rule 76 (ident -> ID .)
MAYORIGUAL reduce using rule 76 (ident -> ID .)
MENORIGUAL reduce using rule 76 (ident -> ID .)
AND reduce using rule 76 (ident -> ID .)
OR reduce using rule 76 (ident -> ID .)
BAND reduce using rule 76 (ident -> ID .)
BOR reduce using rule 76 (ident -> ID .)
BXOR reduce using rule 76 (ident -> ID .)
BLEFT reduce using rule 76 (ident -> ID .)
BRIGHT reduce using rule 76 (ident -> ID .)
ASK reduce using rule 76 (ident -> ID .)
PCOMA reduce using rule 76 (ident -> ID .)
DERPAR reduce using rule 76 (ident -> ID .)
DERLLAVE reduce using rule 76 (ident -> ID .)
IGUAL reduce using rule 76 (ident -> ID .)
INCE reduce using rule 76 (ident -> ID .)
DECRE reduce using rule 76 (ident -> ID .)
IZQPAR reduce using rule 76 (ident -> ID .)
DP reduce using rule 76 (ident -> ID .)
COMA reduce using rule 76 (ident -> ID .)
DERCOR reduce using rule 76 (ident -> ID .)
state 18
(7) body -> decla PCOMA .
struct reduce using rule 7 (body -> decla PCOMA .)
int reduce using rule 7 (body -> decla PCOMA .)
float reduce using rule 7 (body -> decla PCOMA .)
char reduce using rule 7 (body -> decla PCOMA .)
double reduce using rule 7 (body -> decla PCOMA .)
void reduce using rule 7 (body -> decla PCOMA .)
$end reduce using rule 7 (body -> decla PCOMA .)
state 19
(4) body -> TYPE ID IZQPAR . lpam DERPAR IZQCOR linst DERCOR
(10) lpam -> . lparam
(11) lpam -> .
(12) lparam -> . lparam COMA TYPE ident
(13) lparam -> . TYPE ident
(112) TYPE -> . int
(113) TYPE -> . float
(114) TYPE -> . char
(115) TYPE -> . double
(116) TYPE -> . void
DERPAR reduce using rule 11 (lpam -> .)
int shift and go to state 7
float shift and go to state 8
char shift and go to state 9
double shift and go to state 10
void shift and go to state 11
TYPE shift and go to state 27
lpam shift and go to state 28
lparam shift and go to state 29
state 20
(5) body -> TYPE main IZQPAR . lpam DERPAR IZQCOR linst DERCOR
(10) lpam -> . lparam
(11) lpam -> .
(12) lparam -> . lparam COMA TYPE ident
(13) lparam -> . TYPE ident
(112) TYPE -> . int
(113) TYPE -> . float
(114) TYPE -> . char
(115) TYPE -> . double
(116) TYPE -> . void
DERPAR reduce using rule 11 (lpam -> .)
int shift and go to state 7
float shift and go to state 8
char shift and go to state 9
double shift and go to state 10
void shift and go to state 11
TYPE shift and go to state 27
lpam shift and go to state 30
lparam shift and go to state 29
state 21
(47) decla -> TYPE ident lacs . IGUAL exp
(77) lacs -> lacs . acs
(79) acs -> . IZQLLAVE exp DERLLAVE
(80) acs -> . PUNTO ID
IGUAL shift and go to state 31
IZQLLAVE shift and go to state 24
PUNTO shift and go to state 25
acs shift and go to state 32
state 22
(48) decla -> TYPE ident IGUAL . exp
(73) exp -> . scanf IZQPAR DERPAR
(81) exp -> . exp SUMA exp
(82) exp -> . exp RESTA exp
(83) exp -> . exp MULTI exp
(84) exp -> . exp DIV exp
(85) exp -> . exp PORCENTAJE exp
(86) exp -> . exp DIGUAL exp
(87) exp -> . exp DESIGUAL exp
(88) exp -> . exp MAYOR exp
(89) exp -> . exp MENOR exp
(90) exp -> . exp MAYORIGUAL exp
(91) exp -> . exp MENORIGUAL exp
(92) exp -> . exp AND exp
(93) exp -> . exp OR exp
(94) exp -> . exp BAND exp
(95) exp -> . exp BOR exp
(96) exp -> . exp BXOR exp
(97) exp -> . exp BLEFT exp
(98) exp -> . exp BRIGHT exp
(99) exp -> . RESTA exp
(100) exp -> . NOT exp
(101) exp -> . BNOT exp
(102) exp -> . sizeof exp
(103) exp -> . IZQPAR exp DERPAR
(104) exp -> . IZQPAR TYPE DERPAR exp
(105) exp -> . exp ASK exp DP exp
(106) exp -> . DOUBLE
(107) exp -> . INTEGER
(108) exp -> . ident
(109) exp -> . ident lacs
(110) exp -> . STR
(111) exp -> . IZQCOR lex DERCOR
(76) ident -> . ID
scanf shift and go to state 35
RESTA shift and go to state 37
NOT shift and go to state 38
BNOT shift and go to state 39
sizeof shift and go to state 40
IZQPAR shift and go to state 36
DOUBLE shift and go to state 41
INTEGER shift and go to state 42
STR shift and go to state 43
IZQCOR shift and go to state 44
ID shift and go to state 17
ident shift and go to state 33
exp shift and go to state 34
state 23
(78) lacs -> acs .
IGUAL reduce using rule 78 (lacs -> acs .)
IZQLLAVE reduce using rule 78 (lacs -> acs .)
PUNTO reduce using rule 78 (lacs -> acs .)
SUMA reduce using rule 78 (lacs -> acs .)
RESTA reduce using rule 78 (lacs -> acs .)
MULTI reduce using rule 78 (lacs -> acs .)
DIV reduce using rule 78 (lacs -> acs .)
PORCENTAJE reduce using rule 78 (lacs -> acs .)
DIGUAL reduce using rule 78 (lacs -> acs .)
DESIGUAL reduce using rule 78 (lacs -> acs .)
MAYOR reduce using rule 78 (lacs -> acs .)
MENOR reduce using rule 78 (lacs -> acs .)
MAYORIGUAL reduce using rule 78 (lacs -> acs .)
MENORIGUAL reduce using rule 78 (lacs -> acs .)
AND reduce using rule 78 (lacs -> acs .)
OR reduce using rule 78 (lacs -> acs .)
BAND reduce using rule 78 (lacs -> acs .)
BOR reduce using rule 78 (lacs -> acs .)
BXOR reduce using rule 78 (lacs -> acs .)
BLEFT reduce using rule 78 (lacs -> acs .)
BRIGHT reduce using rule 78 (lacs -> acs .)
ASK reduce using rule 78 (lacs -> acs .)
PCOMA reduce using rule 78 (lacs -> acs .)
DERPAR reduce using rule 78 (lacs -> acs .)
DERLLAVE reduce using rule 78 (lacs -> acs .)
DERCOR reduce using rule 78 (lacs -> acs .)
COMA reduce using rule 78 (lacs -> acs .)
DP reduce using rule 78 (lacs -> acs .)
INCE reduce using rule 78 (lacs -> acs .)
DECRE reduce using rule 78 (lacs -> acs .)
state 24
(79) acs -> IZQLLAVE . exp DERLLAVE
(73) exp -> . scanf IZQPAR DERPAR
(81) exp -> . exp SUMA exp
(82) exp -> . exp RESTA exp
(83) exp -> . exp MULTI exp
(84) exp -> . exp DIV exp
(85) exp -> . exp PORCENTAJE exp
(86) exp -> . exp DIGUAL exp
(87) exp -> . exp DESIGUAL exp
(88) exp -> . exp MAYOR exp
(89) exp -> . exp MENOR exp
(90) exp -> . exp MAYORIGUAL exp
(91) exp -> . exp MENORIGUAL exp
(92) exp -> . exp AND exp
(93) exp -> . exp OR exp
(94) exp -> . exp BAND exp
(95) exp -> . exp BOR exp
(96) exp -> . exp BXOR exp
(97) exp -> . exp BLEFT exp
(98) exp -> . exp BRIGHT exp
(99) exp -> . RESTA exp
(100) exp -> . NOT exp
(101) exp -> . BNOT exp
(102) exp -> . sizeof exp
(103) exp -> . IZQPAR exp DERPAR
(104) exp -> . IZQPAR TYPE DERPAR exp
(105) exp -> . exp ASK exp DP exp
(106) exp -> . DOUBLE
(107) exp -> . INTEGER
(108) exp -> . ident
(109) exp -> . ident lacs
(110) exp -> . STR
(111) exp -> . IZQCOR lex DERCOR
(76) ident -> . ID
scanf shift and go to state 35
RESTA shift and go to state 37
NOT shift and go to state 38
BNOT shift and go to state 39
sizeof shift and go to state 40
IZQPAR shift and go to state 36
DOUBLE shift and go to state 41
INTEGER shift and go to state 42
STR shift and go to state 43
IZQCOR shift and go to state 44
ID shift and go to state 17
exp shift and go to state 45
ident shift and go to state 33
state 25
(80) acs -> PUNTO . ID
ID shift and go to state 46
state 26
(6) body -> struct ident IZQCOR . linst DERCOR PCOMA
(8) linst -> . linst inst
(9) linst -> . inst
(14) inst -> . asig PCOMA
(15) inst -> . para
(16) inst -> . si
(17) inst -> . mientras
(18) inst -> . cual
(19) inst -> . call
(20) inst -> . dow
(21) inst -> . asg
(22) inst -> . prin
(23) inst -> . decla PCOMA
(24) inst -> . tag
(25) inst -> . gotot PCOMA
(26) inst -> . brk PCOMA
(27) inst -> . ret PCOMA
(41) asig -> . ident lacs IGUAL exp
(42) asig -> . ident IGUAL exp
(43) asig -> . ident lacs INCE
(44) asig -> . ident INCE
(45) asig -> . ident lacs DECRE
(46) asig -> . ident DECRE
(58) para -> . for IZQPAR para1 exp PCOMA para2 DERPAR IZQCOR linst DERCOR
(51) si -> . if IZQPAR exp DERPAR IZQCOR linst DERCOR lelsi els
(52) si -> . if IZQPAR exp DERPAR IZQCOR linst DERCOR els
(49) mientras -> . while IZQPAR exp DERPAR IZQCOR linst DERCOR
(64) cual -> . switch IZQPAR exp DERPAR IZQCOR lcase def DERCOR
(31) call -> . ident IZQPAR plex DERPAR PCOMA
(50) dow -> . do IZQCOR linst DERCOR while IZQPAR exp DERPAR PCOMA
(28) asg -> . TYPE lids PCOMA
(71) prin -> . printf IZQPAR STR lexpr DERPAR PCOMA
(72) prin -> . printf IZQPAR STR DERPAR PCOMA
(47) decla -> . TYPE ident lacs IGUAL exp
(48) decla -> . TYPE ident IGUAL exp
(39) tag -> . ident DP
(40) gotot -> . goto ident
(32) brk -> . break
(33) ret -> . return exp
(34) ret -> . return
(76) ident -> . ID
(112) TYPE -> . int
(113) TYPE -> . float
(114) TYPE -> . char
(115) TYPE -> . double
(116) TYPE -> . void
for shift and go to state 64
if shift and go to state 65
while shift and go to state 66
switch shift and go to state 67
do shift and go to state 68
printf shift and go to state 70
goto shift and go to state 71
break shift and go to state 72
return shift and go to state 73
ID shift and go to state 17
int shift and go to state 7
float shift and go to state 8
char shift and go to state 9
double shift and go to state 10
void shift and go to state 11
ident shift and go to state 47
linst shift and go to state 48
inst shift and go to state 49
asig shift and go to state 50
para shift and go to state 51
si shift and go to state 52
mientras shift and go to state 53
cual shift and go to state 54
call shift and go to state 55
dow shift and go to state 56
asg shift and go to state 57
prin shift and go to state 58
decla shift and go to state 59
tag shift and go to state 60
gotot shift and go to state 61
brk shift and go to state 62
ret shift and go to state 63
TYPE shift and go to state 69
state 27
(13) lparam -> TYPE . ident
(76) ident -> . ID
ID shift and go to state 17
ident shift and go to state 74
state 28
(4) body -> TYPE ID IZQPAR lpam . DERPAR IZQCOR linst DERCOR
DERPAR shift and go to state 75
state 29
(10) lpam -> lparam .
(12) lparam -> lparam . COMA TYPE ident
DERPAR reduce using rule 10 (lpam -> lparam .)
COMA shift and go to state 76
state 30
(5) body -> TYPE main IZQPAR lpam . DERPAR IZQCOR linst DERCOR
DERPAR shift and go to state 77
state 31
(47) decla -> TYPE ident lacs IGUAL . exp
(73) exp -> . scanf IZQPAR DERPAR
(81) exp -> . exp SUMA exp
(82) exp -> . exp RESTA exp
(83) exp -> . exp MULTI exp
(84) exp -> . exp DIV exp
(85) exp -> . exp PORCENTAJE exp
(86) exp -> . exp DIGUAL exp
(87) exp -> . exp DESIGUAL exp
(88) exp -> . exp MAYOR exp
(89) exp -> . exp MENOR exp
(90) exp -> . exp MAYORIGUAL exp
(91) exp -> . exp MENORIGUAL exp
(92) exp -> . exp AND exp
(93) exp -> . exp OR exp
(94) exp -> . exp BAND exp
(95) exp -> . exp BOR exp
(96) exp -> . exp BXOR exp
(97) exp -> . exp BLEFT exp
(98) exp -> . exp BRIGHT exp
(99) exp -> . RESTA exp
(100) exp -> . NOT exp
(101) exp -> . BNOT exp
(102) exp -> . sizeof exp
(103) exp -> . IZQPAR exp DERPAR
(104) exp -> . IZQPAR TYPE DERPAR exp
(105) exp -> . exp ASK exp DP exp
(106) exp -> . DOUBLE
(107) exp -> . INTEGER
(108) exp -> . ident
(109) exp -> . ident lacs
(110) exp -> . STR
(111) exp -> . IZQCOR lex DERCOR
(76) ident -> . ID
scanf shift and go to state 35
RESTA shift and go to state 37
NOT shift and go to state 38
BNOT shift and go to state 39
sizeof shift and go to state 40
IZQPAR shift and go to state 36
DOUBLE shift and go to state 41
INTEGER shift and go to state 42
STR shift and go to state 43
IZQCOR shift and go to state 44
ID shift and go to state 17
ident shift and go to state 33
exp shift and go to state 78
state 32
(77) lacs -> lacs acs .
IGUAL reduce using rule 77 (lacs -> lacs acs .)
IZQLLAVE reduce using rule 77 (lacs -> lacs acs .)
PUNTO reduce using rule 77 (lacs -> lacs acs .)
SUMA reduce using rule 77 (lacs -> lacs acs .)
RESTA reduce using rule 77 (lacs -> lacs acs .)
MULTI reduce using rule 77 (lacs -> lacs acs .)
DIV reduce using rule 77 (lacs -> lacs acs .)
PORCENTAJE reduce using rule 77 (lacs -> lacs acs .)
DIGUAL reduce using rule 77 (lacs -> lacs acs .)
DESIGUAL reduce using rule 77 (lacs -> lacs acs .)
MAYOR reduce using rule 77 (lacs -> lacs acs .)
MENOR reduce using rule 77 (lacs -> lacs acs .)
MAYORIGUAL reduce using rule 77 (lacs -> lacs acs .)
MENORIGUAL reduce using rule 77 (lacs -> lacs acs .)
AND reduce using rule 77 (lacs -> lacs acs .)
OR reduce using rule 77 (lacs -> lacs acs .)
BAND reduce using rule 77 (lacs -> lacs acs .)
BOR reduce using rule 77 (lacs -> lacs acs .)
BXOR reduce using rule 77 (lacs -> lacs acs .)
BLEFT reduce using rule 77 (lacs -> lacs acs .)
BRIGHT reduce using rule 77 (lacs -> lacs acs .)
ASK reduce using rule 77 (lacs -> lacs acs .)
PCOMA reduce using rule 77 (lacs -> lacs acs .)
DERPAR reduce using rule 77 (lacs -> lacs acs .)
DERLLAVE reduce using rule 77 (lacs -> lacs acs .)
DERCOR reduce using rule 77 (lacs -> lacs acs .)
COMA reduce using rule 77 (lacs -> lacs acs .)
DP reduce using rule 77 (lacs -> lacs acs .)
INCE reduce using rule 77 (lacs -> lacs acs .)
DECRE reduce using rule 77 (lacs -> lacs acs .)
state 33
(108) exp -> ident .
(109) exp -> ident . lacs
(77) lacs -> . lacs acs
(78) lacs -> . acs
(79) acs -> . IZQLLAVE exp DERLLAVE
(80) acs -> . PUNTO ID
SUMA reduce using rule 108 (exp -> ident .)
RESTA reduce using rule 108 (exp -> ident .)
MULTI reduce using rule 108 (exp -> ident .)
DIV reduce using rule 108 (exp -> ident .)
PORCENTAJE reduce using rule 108 (exp -> ident .)
DIGUAL reduce using rule 108 (exp -> ident .)
DESIGUAL reduce using rule 108 (exp -> ident .)
MAYOR reduce using rule 108 (exp -> ident .)
MENOR reduce using rule 108 (exp -> ident .)
MAYORIGUAL reduce using rule 108 (exp -> ident .)
MENORIGUAL reduce using rule 108 (exp -> ident .)
AND reduce using rule 108 (exp -> ident .)
OR reduce using rule 108 (exp -> ident .)
BAND reduce using rule 108 (exp -> ident .)
BOR reduce using rule 108 (exp -> ident .)
BXOR reduce using rule 108 (exp -> ident .)
BLEFT reduce using rule 108 (exp -> ident .)
BRIGHT reduce using rule 108 (exp -> ident .)
ASK reduce using rule 108 (exp -> ident .)
PCOMA reduce using rule 108 (exp -> ident .)
DERPAR reduce using rule 108 (exp -> ident .)
DERLLAVE reduce using rule 108 (exp -> ident .)
DERCOR reduce using rule 108 (exp -> ident .)
COMA reduce using rule 108 (exp -> ident .)
DP reduce using rule 108 (exp -> ident .)
IZQLLAVE shift and go to state 24
PUNTO shift and go to state 25
lacs shift and go to state 79
acs shift and go to state 23
state 34
(48) decla -> TYPE ident IGUAL exp .
(81) exp -> exp . SUMA exp
(82) exp -> exp . RESTA exp
(83) exp -> exp . MULTI exp
(84) exp -> exp . DIV exp
(85) exp -> exp . PORCENTAJE exp
(86) exp -> exp . DIGUAL exp
(87) exp -> exp . DESIGUAL exp
(88) exp -> exp . MAYOR exp
(89) exp -> exp . MENOR exp
(90) exp -> exp . MAYORIGUAL exp
(91) exp -> exp . MENORIGUAL exp
(92) exp -> exp . AND exp
(93) exp -> exp . OR exp
(94) exp -> exp . BAND exp
(95) exp -> exp . BOR exp
(96) exp -> exp . BXOR exp
(97) exp -> exp . BLEFT exp
(98) exp -> exp . BRIGHT exp
(105) exp -> exp . ASK exp DP exp
PCOMA reduce using rule 48 (decla -> TYPE ident IGUAL exp .)
DERPAR reduce using rule 48 (decla -> TYPE ident IGUAL exp .)
SUMA shift and go to state 80
RESTA shift and go to state 81
MULTI shift and go to state 82
DIV shift and go to state 83
PORCENTAJE shift and go to state 84
DIGUAL shift and go to state 85
DESIGUAL shift and go to state 86
MAYOR shift and go to state 87
MENOR shift and go to state 88
MAYORIGUAL shift and go to state 89
MENORIGUAL shift and go to state 90
AND shift and go to state 91
OR shift and go to state 92
BAND shift and go to state 93
BOR shift and go to state 94
BXOR shift and go to state 95
BLEFT shift and go to state 96
BRIGHT shift and go to state 97
ASK shift and go to state 98