forked from aliciacatalina/pyngo
/
parser.out
7295 lines (6295 loc) · 351 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.4 (http://www.dabeaz.com/ply)
Unused terminals:
CTESTRING
SUM
BETWEEN
CTEBOOL
Grammar
Rule 0 S' -> program
Rule 1 program -> functions MODEL LCURLY vars data model bloque2 RCURLY
Rule 2 functions -> funcion functions
Rule 3 functions -> empty
Rule 4 vars -> varblock
Rule 5 vars -> empty
Rule 6 varblock -> VARS LCURLY lvars RCURLY
Rule 7 model -> optimize
Rule 8 model -> optimize where
Rule 9 model -> bloque2
Rule 10 model -> empty
Rule 11 optimize -> MIN LCURLY statement where RCURLY
Rule 12 optimize -> MAX LCURLY statement where RCURLY
Rule 13 build -> BUILD expresion SEMIC
Rule 14 where -> WHERE LCURLY bloque2 RCURLY
Rule 15 wherecondition -> CONDITION expresion SEMIC
Rule 16 statement -> declaration
Rule 17 statement -> asign
Rule 18 statement -> condition
Rule 19 statement -> write
Rule 20 statement -> ciclo
Rule 21 statement -> return
Rule 22 statement -> build
Rule 23 statement -> wherecondition
Rule 24 data -> DATA LCURLY asignmany RCURLY
Rule 25 asignmany -> asign asignmany
Rule 26 asignmany -> empty
Rule 27 asign -> id asign_signo expresiones SEMIC
Rule 28 asign -> expresiones
Rule 29 expresiones -> expresion COMMA expresiones
Rule 30 expresiones -> expresion
Rule 31 asign_signo -> ASEQ
Rule 32 asign_signo -> PLUSEQ
Rule 33 asign_signo -> MINEQ
Rule 34 asign_signo -> MULTEQ
Rule 35 asign_signo -> DIVEQ
Rule 36 condition -> IF asign bloque condition1
Rule 37 condition1 -> ELSE bloque
Rule 38 condition1 -> empty
Rule 39 write -> PRINT asign write2 SEMIC
Rule 40 write2 -> COMMA asign write2
Rule 41 write2 -> empty
Rule 42 ciclo -> FOR ID IN DOT ID bloque
Rule 43 funcion -> FUNC ID LPAREN funcion1 RPAREN funcion3 bloque
Rule 44 funcion1 -> type ID funcion2
Rule 45 funcion1 -> <empty>
Rule 46 funcion2 -> COMMA type ID funcion2
Rule 47 funcion2 -> <empty>
Rule 48 funcion3 -> LPAREN type RPAREN
Rule 49 funcion3 -> <empty>
Rule 50 lvars -> declaration lvars
Rule 51 lvars -> empty
Rule 52 declaration -> typedeclaration POINTS ID dec22 SEMIC
Rule 53 typedeclaration -> type dimensionsfixed
Rule 54 dimensions -> LBRACKET expresion RBRACKET dimensions
Rule 55 dimensions -> empty
Rule 56 dimensionsfixed -> LBRACKET CTEI RBRACKET dimensionsfixed
Rule 57 dimensionsfixed -> empty
Rule 58 dec22 -> COMMA ID dec22
Rule 59 dec22 -> empty
Rule 60 bloque -> LCURLY bloque2 RCURLY
Rule 61 bloque2 -> statement bloque2
Rule 62 bloque2 -> empty
Rule 63 return -> RETURN asign
Rule 64 expresion -> expresion2 expresioni
Rule 65 expresioni -> OR expresion
Rule 66 expresioni -> empty
Rule 67 expresion2 -> expresion3 expresion2i
Rule 68 expresion2i -> AND expresion2
Rule 69 expresion2i -> empty
Rule 70 expresion3 -> expresion4 expresion3i
Rule 71 expresion3i -> ORB expresion3
Rule 72 expresion3i -> empty
Rule 73 expresion4 -> expresion5 expresion4i
Rule 74 expresion4i -> XOR expresion4
Rule 75 expresion4i -> empty
Rule 76 expresion5 -> expresion6 expresion5i
Rule 77 expresion5i -> ANDB expresion5
Rule 78 expresion5i -> empty
Rule 79 expresion6 -> expresion7 expresion6i
Rule 80 expresion6i -> EQ expresion6
Rule 81 expresion6i -> DIF expresion6
Rule 82 expresion6i -> empty
Rule 83 expresion7 -> expresion8 expresion7i
Rule 84 expresion7i -> SHR expresion7
Rule 85 expresion7i -> SHL expresion7
Rule 86 expresion7i -> empty
Rule 87 expresion8 -> expresion9 expresion8i
Rule 88 expresion8i -> GREATERTHAN expresion8
Rule 89 expresion8i -> LESSTHAN expresion8
Rule 90 expresion8i -> GREATEREQUAL expresion8
Rule 91 expresion8i -> LESSEQUAL expresion8
Rule 92 expresion8i -> empty
Rule 93 expresion9 -> termino expresion9i
Rule 94 expresion9i -> PLUS expresion9
Rule 95 expresion9i -> MINUS expresion9
Rule 96 expresion9i -> empty
Rule 97 termino -> factor termino2
Rule 98 termino2 -> STAR termino
Rule 99 termino2 -> SLASH termino
Rule 100 termino2 -> MOD termino
Rule 101 termino2 -> empty
Rule 102 factor -> exponencial factor2
Rule 103 factor2 -> EXP factor
Rule 104 factor2 -> empty
Rule 105 exponencial -> LPAREN expresion RPAREN
Rule 106 exponencial -> exponencial2 valor
Rule 107 exponencial2 -> NOT
Rule 108 exponencial2 -> MM
Rule 109 exponencial2 -> PP
Rule 110 exponencial2 -> NEW
Rule 111 exponencial2 -> empty
Rule 112 valor -> id
Rule 113 valor -> int
Rule 114 valor -> float
Rule 115 int -> CTEI
Rule 116 id -> ID llamarfuncion
Rule 117 id -> ID dimensions
Rule 118 id -> ID
Rule 119 float -> CTEF
Rule 120 llamarfuncion -> LPAREN llamarfuncion3 RPAREN
Rule 121 llamarfuncion3 -> asign llamarfuncion33
Rule 122 llamarfuncion3 -> empty
Rule 123 llamarfuncion33 -> COMMA asign llamarfuncion33
Rule 124 llamarfuncion33 -> empty
Rule 125 type -> TINT
Rule 126 type -> TBOOL
Rule 127 type -> TFLOAT
Rule 128 empty -> <empty>
Terminals, with rules where they appear
AND : 68
ANDB : 77
ASEQ : 31
BETWEEN :
BUILD : 13
COMMA : 29 40 46 58 123
CONDITION : 15
CTEBOOL :
CTEF : 119
CTEI : 56 115
CTESTRING :
DATA : 24
DIF : 81
DIVEQ : 35
DOT : 42
ELSE : 37
EQ : 80
EXP : 103
FOR : 42
FUNC : 43
GREATEREQUAL : 90
GREATERTHAN : 88
ID : 42 42 43 44 46 52 58 116 117 118
IF : 36
IN : 42
LBRACKET : 54 56
LCURLY : 1 6 11 12 14 24 60
LESSEQUAL : 91
LESSTHAN : 89
LPAREN : 43 48 105 120
MAX : 12
MIN : 11
MINEQ : 33
MINUS : 95
MM : 108
MOD : 100
MODEL : 1
MULTEQ : 34
NEW : 110
NOT : 107
OR : 65
ORB : 71
PLUS : 94
PLUSEQ : 32
POINTS : 52
PP : 109
PRINT : 39
RBRACKET : 54 56
RCURLY : 1 6 11 12 14 24 60
RETURN : 63
RPAREN : 43 48 105 120
SEMIC : 13 15 27 39 52
SHL : 85
SHR : 84
SLASH : 99
STAR : 98
SUM :
TBOOL : 126
TFLOAT : 127
TINT : 125
VARS : 6
WHERE : 14
XOR : 74
error :
Nonterminals, with rules where they appear
asign : 17 25 36 39 40 63 121 123
asign_signo : 27
asignmany : 24 25
bloque : 36 37 42 43
bloque2 : 1 9 14 60 61
build : 22
ciclo : 20
condition : 18
condition1 : 36
data : 1
dec22 : 52 58
declaration : 16 50
dimensions : 54 117
dimensionsfixed : 53 56
empty : 3 5 10 26 38 41 51 55 57 59 62 66 69 72 75 78 82 86 92 96 101 104 111 122 124
exponencial : 102
exponencial2 : 106
expresion : 13 15 29 30 54 65 105
expresion2 : 64 68
expresion2i : 67
expresion3 : 67 71
expresion3i : 70
expresion4 : 70 74
expresion4i : 73
expresion5 : 73 77
expresion5i : 76
expresion6 : 76 80 81
expresion6i : 79
expresion7 : 79 84 85
expresion7i : 83
expresion8 : 83 88 89 90 91
expresion8i : 87
expresion9 : 87 94 95
expresion9i : 93
expresiones : 27 28 29
expresioni : 64
factor : 97 103
factor2 : 102
float : 114
funcion : 2
funcion1 : 43
funcion2 : 44 46
funcion3 : 43
functions : 1 2
id : 27 112
int : 113
llamarfuncion : 116
llamarfuncion3 : 120
llamarfuncion33 : 121 123
lvars : 6 50
model : 1
optimize : 7 8
program : 0
return : 21
statement : 11 12 61
termino : 93 98 99 100
termino2 : 97
type : 44 46 48 53
typedeclaration : 52
valor : 106
varblock : 4
vars : 1
where : 8 11 12
wherecondition : 23
write : 19
write2 : 39 40
Parsing method: LALR
state 0
(0) S' -> . program
(1) program -> . functions MODEL LCURLY vars data model bloque2 RCURLY
(2) functions -> . funcion functions
(3) functions -> . empty
(43) funcion -> . FUNC ID LPAREN funcion1 RPAREN funcion3 bloque
(128) empty -> .
FUNC shift and go to state 3
MODEL reduce using rule 128 (empty -> .)
functions shift and go to state 1
program shift and go to state 2
empty shift and go to state 4
funcion shift and go to state 5
state 1
(1) program -> functions . MODEL LCURLY vars data model bloque2 RCURLY
MODEL shift and go to state 6
state 2
(0) S' -> program .
state 3
(43) funcion -> FUNC . ID LPAREN funcion1 RPAREN funcion3 bloque
ID shift and go to state 7
state 4
(3) functions -> empty .
MODEL reduce using rule 3 (functions -> empty .)
state 5
(2) functions -> funcion . functions
(2) functions -> . funcion functions
(3) functions -> . empty
(43) funcion -> . FUNC ID LPAREN funcion1 RPAREN funcion3 bloque
(128) empty -> .
FUNC shift and go to state 3
MODEL reduce using rule 128 (empty -> .)
functions shift and go to state 8
empty shift and go to state 4
funcion shift and go to state 5
state 6
(1) program -> functions MODEL . LCURLY vars data model bloque2 RCURLY
LCURLY shift and go to state 9
state 7
(43) funcion -> FUNC ID . LPAREN funcion1 RPAREN funcion3 bloque
LPAREN shift and go to state 10
state 8
(2) functions -> funcion functions .
MODEL reduce using rule 2 (functions -> funcion functions .)
state 9
(1) program -> functions MODEL LCURLY . vars data model bloque2 RCURLY
(4) vars -> . varblock
(5) vars -> . empty
(6) varblock -> . VARS LCURLY lvars RCURLY
(128) empty -> .
VARS shift and go to state 11
DATA reduce using rule 128 (empty -> .)
vars shift and go to state 12
varblock shift and go to state 13
empty shift and go to state 14
state 10
(43) funcion -> FUNC ID LPAREN . funcion1 RPAREN funcion3 bloque
(44) funcion1 -> . type ID funcion2
(45) funcion1 -> .
(125) type -> . TINT
(126) type -> . TBOOL
(127) type -> . TFLOAT
RPAREN reduce using rule 45 (funcion1 -> .)
TINT shift and go to state 15
TBOOL shift and go to state 18
TFLOAT shift and go to state 16
funcion1 shift and go to state 17
type shift and go to state 19
state 11
(6) varblock -> VARS . LCURLY lvars RCURLY
LCURLY shift and go to state 20
state 12
(1) program -> functions MODEL LCURLY vars . data model bloque2 RCURLY
(24) data -> . DATA LCURLY asignmany RCURLY
DATA shift and go to state 21
data shift and go to state 22
state 13
(4) vars -> varblock .
DATA reduce using rule 4 (vars -> varblock .)
state 14
(5) vars -> empty .
DATA reduce using rule 5 (vars -> empty .)
state 15
(125) type -> TINT .
RPAREN reduce using rule 125 (type -> TINT .)
LBRACKET reduce using rule 125 (type -> TINT .)
POINTS reduce using rule 125 (type -> TINT .)
ID reduce using rule 125 (type -> TINT .)
state 16
(127) type -> TFLOAT .
RPAREN reduce using rule 127 (type -> TFLOAT .)
LBRACKET reduce using rule 127 (type -> TFLOAT .)
POINTS reduce using rule 127 (type -> TFLOAT .)
ID reduce using rule 127 (type -> TFLOAT .)
state 17
(43) funcion -> FUNC ID LPAREN funcion1 . RPAREN funcion3 bloque
RPAREN shift and go to state 23
state 18
(126) type -> TBOOL .
RPAREN reduce using rule 126 (type -> TBOOL .)
LBRACKET reduce using rule 126 (type -> TBOOL .)
POINTS reduce using rule 126 (type -> TBOOL .)
ID reduce using rule 126 (type -> TBOOL .)
state 19
(44) funcion1 -> type . ID funcion2
ID shift and go to state 24
state 20
(6) varblock -> VARS LCURLY . lvars RCURLY
(50) lvars -> . declaration lvars
(51) lvars -> . empty
(52) declaration -> . typedeclaration POINTS ID dec22 SEMIC
(128) empty -> .
(53) typedeclaration -> . type dimensionsfixed
(125) type -> . TINT
(126) type -> . TBOOL
(127) type -> . TFLOAT
RCURLY reduce using rule 128 (empty -> .)
TINT shift and go to state 15
TBOOL shift and go to state 18
TFLOAT shift and go to state 16
typedeclaration shift and go to state 25
lvars shift and go to state 26
declaration shift and go to state 27
type shift and go to state 28
empty shift and go to state 29
state 21
(24) data -> DATA . LCURLY asignmany RCURLY
LCURLY shift and go to state 30
state 22
(1) program -> functions MODEL LCURLY vars data . model bloque2 RCURLY
(7) model -> . optimize
(8) model -> . optimize where
(9) model -> . bloque2
(10) model -> . empty
(11) optimize -> . MIN LCURLY statement where RCURLY
(12) optimize -> . MAX LCURLY statement where RCURLY
(61) bloque2 -> . statement bloque2
(62) bloque2 -> . empty
(128) empty -> .
(16) statement -> . declaration
(17) statement -> . asign
(18) statement -> . condition
(19) statement -> . write
(20) statement -> . ciclo
(21) statement -> . return
(22) statement -> . build
(23) statement -> . wherecondition
(52) declaration -> . typedeclaration POINTS ID dec22 SEMIC
(27) asign -> . id asign_signo expresiones SEMIC
(28) asign -> . expresiones
(36) condition -> . IF asign bloque condition1
(39) write -> . PRINT asign write2 SEMIC
(42) ciclo -> . FOR ID IN DOT ID bloque
(63) return -> . RETURN asign
(13) build -> . BUILD expresion SEMIC
(15) wherecondition -> . CONDITION expresion SEMIC
(53) typedeclaration -> . type dimensionsfixed
(116) id -> . ID llamarfuncion
(117) id -> . ID dimensions
(118) id -> . ID
(29) expresiones -> . expresion COMMA expresiones
(30) expresiones -> . expresion
(125) type -> . TINT
(126) type -> . TBOOL
(127) type -> . TFLOAT
(64) expresion -> . expresion2 expresioni
(67) expresion2 -> . expresion3 expresion2i
(70) expresion3 -> . expresion4 expresion3i
(73) expresion4 -> . expresion5 expresion4i
(76) expresion5 -> . expresion6 expresion5i
(79) expresion6 -> . expresion7 expresion6i
(83) expresion7 -> . expresion8 expresion7i
(87) expresion8 -> . expresion9 expresion8i
(93) expresion9 -> . termino expresion9i
(97) termino -> . factor termino2
(102) factor -> . exponencial factor2
(105) exponencial -> . LPAREN expresion RPAREN
(106) exponencial -> . exponencial2 valor
(107) exponencial2 -> . NOT
(108) exponencial2 -> . MM
(109) exponencial2 -> . PP
(110) exponencial2 -> . NEW
(111) exponencial2 -> . empty
! shift/reduce conflict for IF resolved as shift
! shift/reduce conflict for PRINT resolved as shift
! shift/reduce conflict for FOR resolved as shift
! shift/reduce conflict for RETURN resolved as shift
! shift/reduce conflict for BUILD resolved as shift
! shift/reduce conflict for CONDITION resolved as shift
! shift/reduce conflict for ID resolved as shift
! shift/reduce conflict for TINT resolved as shift
! shift/reduce conflict for TBOOL resolved as shift
! shift/reduce conflict for TFLOAT resolved as shift
! shift/reduce conflict for LPAREN resolved as shift
! shift/reduce conflict for NOT resolved as shift
! shift/reduce conflict for MM resolved as shift
! shift/reduce conflict for PP resolved as shift
! shift/reduce conflict for NEW resolved as shift
MIN shift and go to state 32
MAX shift and go to state 68
RCURLY reduce using rule 128 (empty -> .)
CTEI reduce using rule 128 (empty -> .)
CTEF reduce using rule 128 (empty -> .)
IF shift and go to state 63
PRINT shift and go to state 36
FOR shift and go to state 52
RETURN shift and go to state 31
BUILD shift and go to state 58
CONDITION shift and go to state 70
ID shift and go to state 40
TINT shift and go to state 15
TBOOL shift and go to state 18
TFLOAT shift and go to state 16
LPAREN shift and go to state 59
NOT shift and go to state 71
MM shift and go to state 67
PP shift and go to state 66
NEW shift and go to state 35
! IF [ reduce using rule 128 (empty -> .) ]
! PRINT [ reduce using rule 128 (empty -> .) ]
! FOR [ reduce using rule 128 (empty -> .) ]
! RETURN [ reduce using rule 128 (empty -> .) ]
! BUILD [ reduce using rule 128 (empty -> .) ]
! CONDITION [ reduce using rule 128 (empty -> .) ]
! ID [ reduce using rule 128 (empty -> .) ]
! TINT [ reduce using rule 128 (empty -> .) ]
! TBOOL [ reduce using rule 128 (empty -> .) ]
! TFLOAT [ reduce using rule 128 (empty -> .) ]
! LPAREN [ reduce using rule 128 (empty -> .) ]
! NOT [ reduce using rule 128 (empty -> .) ]
! MM [ reduce using rule 128 (empty -> .) ]
! PP [ reduce using rule 128 (empty -> .) ]
! NEW [ reduce using rule 128 (empty -> .) ]
termino shift and go to state 34
expresion5 shift and go to state 56
id shift and go to state 37
ciclo shift and go to state 38
exponencial2 shift and go to state 39
optimize shift and go to state 61
write shift and go to state 41
expresion9 shift and go to state 33
build shift and go to state 42
statement shift and go to state 43
factor shift and go to state 44
exponencial shift and go to state 45
type shift and go to state 28
empty shift and go to state 46
expresion3 shift and go to state 48
expresion2 shift and go to state 49
return shift and go to state 50
expresion4 shift and go to state 51
expresion7 shift and go to state 57
expresion6 shift and go to state 53
expresion8 shift and go to state 54
typedeclaration shift and go to state 25
expresiones shift and go to state 55
declaration shift and go to state 60
model shift and go to state 47
condition shift and go to state 62
expresion shift and go to state 64
bloque2 shift and go to state 65
asign shift and go to state 69
wherecondition shift and go to state 72
state 23
(43) funcion -> FUNC ID LPAREN funcion1 RPAREN . funcion3 bloque
(48) funcion3 -> . LPAREN type RPAREN
(49) funcion3 -> .
LPAREN shift and go to state 74
LCURLY reduce using rule 49 (funcion3 -> .)
funcion3 shift and go to state 73
state 24
(44) funcion1 -> type ID . funcion2
(46) funcion2 -> . COMMA type ID funcion2
(47) funcion2 -> .
COMMA shift and go to state 75
RPAREN reduce using rule 47 (funcion2 -> .)
funcion2 shift and go to state 76
state 25
(52) declaration -> typedeclaration . POINTS ID dec22 SEMIC
POINTS shift and go to state 77
state 26
(6) varblock -> VARS LCURLY lvars . RCURLY
RCURLY shift and go to state 78
state 27
(50) lvars -> declaration . lvars
(50) lvars -> . declaration lvars
(51) lvars -> . empty
(52) declaration -> . typedeclaration POINTS ID dec22 SEMIC
(128) empty -> .
(53) typedeclaration -> . type dimensionsfixed
(125) type -> . TINT
(126) type -> . TBOOL
(127) type -> . TFLOAT
RCURLY reduce using rule 128 (empty -> .)
TINT shift and go to state 15
TBOOL shift and go to state 18
TFLOAT shift and go to state 16
typedeclaration shift and go to state 25
lvars shift and go to state 79
declaration shift and go to state 27
type shift and go to state 28
empty shift and go to state 29
state 28
(53) typedeclaration -> type . dimensionsfixed
(56) dimensionsfixed -> . LBRACKET CTEI RBRACKET dimensionsfixed
(57) dimensionsfixed -> . empty
(128) empty -> .
LBRACKET shift and go to state 81
POINTS reduce using rule 128 (empty -> .)
dimensionsfixed shift and go to state 80
empty shift and go to state 82
state 29
(51) lvars -> empty .
RCURLY reduce using rule 51 (lvars -> empty .)
state 30
(24) data -> DATA LCURLY . asignmany RCURLY
(25) asignmany -> . asign asignmany
(26) asignmany -> . empty
(27) asign -> . id asign_signo expresiones SEMIC
(28) asign -> . expresiones
(128) empty -> .
(116) id -> . ID llamarfuncion
(117) id -> . ID dimensions
(118) id -> . ID
(29) expresiones -> . expresion COMMA expresiones
(30) expresiones -> . expresion
(64) expresion -> . expresion2 expresioni
(67) expresion2 -> . expresion3 expresion2i
(70) expresion3 -> . expresion4 expresion3i
(73) expresion4 -> . expresion5 expresion4i
(76) expresion5 -> . expresion6 expresion5i
(79) expresion6 -> . expresion7 expresion6i
(83) expresion7 -> . expresion8 expresion7i
(87) expresion8 -> . expresion9 expresion8i
(93) expresion9 -> . termino expresion9i
(97) termino -> . factor termino2
(102) factor -> . exponencial factor2
(105) exponencial -> . LPAREN expresion RPAREN
(106) exponencial -> . exponencial2 valor
(107) exponencial2 -> . NOT
(108) exponencial2 -> . MM
(109) exponencial2 -> . PP
(110) exponencial2 -> . NEW
(111) exponencial2 -> . empty
! shift/reduce conflict for ID resolved as shift
RCURLY reduce using rule 128 (empty -> .)
CTEI reduce using rule 128 (empty -> .)
CTEF reduce using rule 128 (empty -> .)
ID shift and go to state 40
LPAREN shift and go to state 59
NOT shift and go to state 71
MM shift and go to state 67
PP shift and go to state 66
NEW shift and go to state 35
! ID [ reduce using rule 128 (empty -> .) ]
expresion3 shift and go to state 48
termino shift and go to state 34
id shift and go to state 37
expresion4 shift and go to state 51
expresiones shift and go to state 55
exponencial2 shift and go to state 39
expresion9 shift and go to state 33
factor shift and go to state 44
exponencial shift and go to state 45
empty shift and go to state 83
asignmany shift and go to state 84
expresion2 shift and go to state 49
expresion5 shift and go to state 56
expresion7 shift and go to state 57
expresion6 shift and go to state 53
expresion8 shift and go to state 54
expresion shift and go to state 64
asign shift and go to state 85
state 31
(63) return -> RETURN . asign
(27) asign -> . id asign_signo expresiones SEMIC
(28) asign -> . expresiones
(116) id -> . ID llamarfuncion
(117) id -> . ID dimensions
(118) id -> . ID
(29) expresiones -> . expresion COMMA expresiones
(30) expresiones -> . expresion
(64) expresion -> . expresion2 expresioni
(67) expresion2 -> . expresion3 expresion2i
(70) expresion3 -> . expresion4 expresion3i
(73) expresion4 -> . expresion5 expresion4i
(76) expresion5 -> . expresion6 expresion5i
(79) expresion6 -> . expresion7 expresion6i
(83) expresion7 -> . expresion8 expresion7i
(87) expresion8 -> . expresion9 expresion8i
(93) expresion9 -> . termino expresion9i
(97) termino -> . factor termino2
(102) factor -> . exponencial factor2
(105) exponencial -> . LPAREN expresion RPAREN
(106) exponencial -> . exponencial2 valor
(107) exponencial2 -> . NOT
(108) exponencial2 -> . MM
(109) exponencial2 -> . PP
(110) exponencial2 -> . NEW
(111) exponencial2 -> . empty
(128) empty -> .
! shift/reduce conflict for ID resolved as shift
ID shift and go to state 40
LPAREN shift and go to state 59
NOT shift and go to state 71
MM shift and go to state 67
PP shift and go to state 66
NEW shift and go to state 35
CTEI reduce using rule 128 (empty -> .)
CTEF reduce using rule 128 (empty -> .)
! ID [ reduce using rule 128 (empty -> .) ]
termino shift and go to state 34
id shift and go to state 37
expresion4 shift and go to state 51
expresiones shift and go to state 55
exponencial2 shift and go to state 39
expresion9 shift and go to state 33
factor shift and go to state 44
exponencial shift and go to state 45
empty shift and go to state 86
expresion3 shift and go to state 48
expresion2 shift and go to state 49
expresion5 shift and go to state 56
expresion7 shift and go to state 57
expresion6 shift and go to state 53
expresion8 shift and go to state 54
expresion shift and go to state 64
asign shift and go to state 87
state 32
(11) optimize -> MIN . LCURLY statement where RCURLY
LCURLY shift and go to state 88
state 33
(87) expresion8 -> expresion9 . expresion8i
(88) expresion8i -> . GREATERTHAN expresion8
(89) expresion8i -> . LESSTHAN expresion8
(90) expresion8i -> . GREATEREQUAL expresion8
(91) expresion8i -> . LESSEQUAL expresion8
(92) expresion8i -> . empty
(128) empty -> .
GREATERTHAN shift and go to state 92
LESSTHAN shift and go to state 91
GREATEREQUAL shift and go to state 89
LESSEQUAL shift and go to state 93
SHR reduce using rule 128 (empty -> .)
SHL reduce using rule 128 (empty -> .)
EQ reduce using rule 128 (empty -> .)
DIF reduce using rule 128 (empty -> .)
ANDB reduce using rule 128 (empty -> .)
XOR reduce using rule 128 (empty -> .)
ORB reduce using rule 128 (empty -> .)
AND reduce using rule 128 (empty -> .)
OR reduce using rule 128 (empty -> .)
COMMA reduce using rule 128 (empty -> .)
IF reduce using rule 128 (empty -> .)
PRINT reduce using rule 128 (empty -> .)
FOR reduce using rule 128 (empty -> .)
RETURN reduce using rule 128 (empty -> .)
BUILD reduce using rule 128 (empty -> .)
CONDITION reduce using rule 128 (empty -> .)
ID reduce using rule 128 (empty -> .)
TINT reduce using rule 128 (empty -> .)
TBOOL reduce using rule 128 (empty -> .)
TFLOAT reduce using rule 128 (empty -> .)
LPAREN reduce using rule 128 (empty -> .)
NOT reduce using rule 128 (empty -> .)
MM reduce using rule 128 (empty -> .)
PP reduce using rule 128 (empty -> .)
NEW reduce using rule 128 (empty -> .)
CTEI reduce using rule 128 (empty -> .)
CTEF reduce using rule 128 (empty -> .)
RCURLY reduce using rule 128 (empty -> .)
WHERE reduce using rule 128 (empty -> .)
SEMIC reduce using rule 128 (empty -> .)
RPAREN reduce using rule 128 (empty -> .)
LCURLY reduce using rule 128 (empty -> .)
RBRACKET reduce using rule 128 (empty -> .)
expresion8i shift and go to state 90
empty shift and go to state 94
state 34
(93) expresion9 -> termino . expresion9i
(94) expresion9i -> . PLUS expresion9
(95) expresion9i -> . MINUS expresion9
(96) expresion9i -> . empty
(128) empty -> .
PLUS shift and go to state 96
MINUS shift and go to state 97
GREATERTHAN reduce using rule 128 (empty -> .)
LESSTHAN reduce using rule 128 (empty -> .)
GREATEREQUAL reduce using rule 128 (empty -> .)
LESSEQUAL reduce using rule 128 (empty -> .)
SHR reduce using rule 128 (empty -> .)
SHL reduce using rule 128 (empty -> .)
EQ reduce using rule 128 (empty -> .)
DIF reduce using rule 128 (empty -> .)
ANDB reduce using rule 128 (empty -> .)
XOR reduce using rule 128 (empty -> .)
ORB reduce using rule 128 (empty -> .)
AND reduce using rule 128 (empty -> .)
OR reduce using rule 128 (empty -> .)
COMMA reduce using rule 128 (empty -> .)
IF reduce using rule 128 (empty -> .)
PRINT reduce using rule 128 (empty -> .)
FOR reduce using rule 128 (empty -> .)
RETURN reduce using rule 128 (empty -> .)
BUILD reduce using rule 128 (empty -> .)
CONDITION reduce using rule 128 (empty -> .)
ID reduce using rule 128 (empty -> .)
TINT reduce using rule 128 (empty -> .)
TBOOL reduce using rule 128 (empty -> .)
TFLOAT reduce using rule 128 (empty -> .)
LPAREN reduce using rule 128 (empty -> .)
NOT reduce using rule 128 (empty -> .)
MM reduce using rule 128 (empty -> .)
PP reduce using rule 128 (empty -> .)
NEW reduce using rule 128 (empty -> .)
CTEI reduce using rule 128 (empty -> .)
CTEF reduce using rule 128 (empty -> .)
RCURLY reduce using rule 128 (empty -> .)
WHERE reduce using rule 128 (empty -> .)
SEMIC reduce using rule 128 (empty -> .)
RPAREN reduce using rule 128 (empty -> .)
LCURLY reduce using rule 128 (empty -> .)
RBRACKET reduce using rule 128 (empty -> .)
expresion9i shift and go to state 95
empty shift and go to state 98
state 35
(110) exponencial2 -> NEW .
ID reduce using rule 110 (exponencial2 -> NEW .)
CTEI reduce using rule 110 (exponencial2 -> NEW .)
CTEF reduce using rule 110 (exponencial2 -> NEW .)
state 36
(39) write -> PRINT . asign write2 SEMIC
(27) asign -> . id asign_signo expresiones SEMIC
(28) asign -> . expresiones
(116) id -> . ID llamarfuncion
(117) id -> . ID dimensions
(118) id -> . ID
(29) expresiones -> . expresion COMMA expresiones
(30) expresiones -> . expresion
(64) expresion -> . expresion2 expresioni
(67) expresion2 -> . expresion3 expresion2i
(70) expresion3 -> . expresion4 expresion3i
(73) expresion4 -> . expresion5 expresion4i
(76) expresion5 -> . expresion6 expresion5i
(79) expresion6 -> . expresion7 expresion6i
(83) expresion7 -> . expresion8 expresion7i
(87) expresion8 -> . expresion9 expresion8i
(93) expresion9 -> . termino expresion9i
(97) termino -> . factor termino2
(102) factor -> . exponencial factor2
(105) exponencial -> . LPAREN expresion RPAREN
(106) exponencial -> . exponencial2 valor
(107) exponencial2 -> . NOT
(108) exponencial2 -> . MM
(109) exponencial2 -> . PP
(110) exponencial2 -> . NEW
(111) exponencial2 -> . empty
(128) empty -> .
! shift/reduce conflict for ID resolved as shift
ID shift and go to state 40
LPAREN shift and go to state 59
NOT shift and go to state 71
MM shift and go to state 67
PP shift and go to state 66
NEW shift and go to state 35
CTEI reduce using rule 128 (empty -> .)
CTEF reduce using rule 128 (empty -> .)
! ID [ reduce using rule 128 (empty -> .) ]
termino shift and go to state 34
id shift and go to state 37