-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparser.out
More file actions
4865 lines (3561 loc) · 210 KB
/
parser.out
File metadata and controls
4865 lines (3561 loc) · 210 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
Created by PLY version 3.11 (http://www.dabeaz.com/ply)
Grammar
Rule 0 S' -> program
Rule 1 program -> PROGRAMA ID neu_programa PUNTOYCOMA variables funciones PRINCIPAL neu_principal L_PAR R_PAR bloque neu_endPrograma empty
Rule 2 variables -> VARIABLES variablesU
Rule 3 variables -> empty
Rule 4 variablesU -> variablesD
Rule 5 variablesU -> empty
Rule 6 variablesD -> ID neu_addVariableAStack COMA variablesD
Rule 7 variablesD -> ID DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA variablesU
Rule 8 variablesD -> ID L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addArreglo PUNTOYCOMA variablesU
Rule 9 variablesD -> ID L_CORCHETE ENTEROVAL R_CORCHETE L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addMatriz PUNTOYCOMA variablesU
Rule 10 funciones -> funcionesU
Rule 11 funciones -> empty
Rule 12 funcionesU -> tipo_funcion FUNCION ID neu_addFuncion L_PAR recibir_parametros R_PAR variables bloque neu_endFuncion funcionesD
Rule 13 funcionesD -> funciones
Rule 14 funcionesD -> empty
Rule 15 tipo_funcion -> ENTERO empty
Rule 16 tipo_funcion -> FLOTANTE empty
Rule 17 tipo_funcion -> CARACTER empty
Rule 18 tipo_funcion -> VOID empty
Rule 19 tipo_var -> ENTERO empty
Rule 20 tipo_var -> FLOTANTE empty
Rule 21 tipo_var -> CARACTER empty
Rule 22 recibir_parametros -> ID DOSPUNTOS tipo_var neu_recibirParametros recibir_parametrosD empty
Rule 23 recibir_parametros -> empty
Rule 24 recibir_parametrosD -> COMA recibir_parametros empty
Rule 25 recibir_parametrosD -> empty
Rule 26 mandar_parametros -> hiper_exp neu_parametroEnviado mandar_parametrosD empty
Rule 27 mandar_parametros -> empty
Rule 28 mandar_parametrosD -> COMA mandar_parametros empty
Rule 29 mandar_parametrosD -> empty
Rule 30 bloque -> L_LLAVE bloqueU R_LLAVE empty
Rule 31 bloqueU -> estatuto bloqueD neu_vaciarPilas empty
Rule 32 bloqueU -> empty
Rule 33 bloqueD -> bloqueU empty
Rule 34 bloqueD -> empty
Rule 35 estatuto -> asignacion PUNTOYCOMA empty
Rule 36 estatuto -> llamada neu_esEstatuto PUNTOYCOMA empty
Rule 37 estatuto -> retorno PUNTOYCOMA empty
Rule 38 estatuto -> lectura PUNTOYCOMA empty
Rule 39 estatuto -> escritura PUNTOYCOMA empty
Rule 40 estatuto -> decision empty
Rule 41 estatuto -> condicional empty
Rule 42 estatuto -> no_condicional empty
Rule 43 estatuto -> empty
Rule 44 asignacion -> ID neu_addID IGUAL neu_addOperador hiper_exp neu_asignacion empty
Rule 45 asignacion -> ID L_CORCHETE neu_fondoFalso hiper_exp R_CORCHETE neu_addIDArreglo IGUAL neu_addOperador hiper_exp neu_asignacion empty
Rule 46 asignacion -> ID L_CORCHETE neu_fondoFalso hiper_exp R_CORCHETE L_CORCHETE neu_fondoFalso hiper_exp R_CORCHETE neu_addIDMatriz IGUAL neu_addOperador hiper_exp neu_asignacion empty
Rule 47 llamada -> ID neu_llamada_era L_PAR mandar_parametros neu_paramValidacion R_PAR neu_llamada_gosub empty
Rule 48 retorno -> REGRESA L_PAR hiper_exp neu_retorno R_PAR empty
Rule 49 lectura -> LEER L_PAR ID neu_lectura R_PAR empty
Rule 50 escritura -> ESCRIBIR L_PAR escrituraD R_PAR empty
Rule 51 escrituraD -> hiper_exp neu_escritura empty
Rule 52 escrituraD -> LETRERO neu_letrero empty
Rule 53 decision -> SI L_PAR hiper_exp R_PAR neu_iniciarDecision ENTONCES bloque decisionU neu_endDecision empty
Rule 54 decisionU -> SINO neu_iniciarDecisionElse bloque empty
Rule 55 decisionU -> empty
Rule 56 condicional -> MIENTRAS L_PAR neu_condicionalAntes hiper_exp neu_condicionalDurante R_PAR HACER bloque neu_condicionalDespues empty
Rule 57 no_condicional -> DESDE L_PAR asignacionFor R_PAR HASTA hiper_exp neu_boolFor HACER bloque neu_endCondicion empty
Rule 58 asignacionFor -> ID neu_addIDFor IGUAL neu_addOperador hiper_exp neu_asignacionFor empty
Rule 59 operadorA -> MAS neu_addOperador empty
Rule 60 operadorA -> MENOS neu_addOperador empty
Rule 61 operadorT -> MULT neu_addOperador empty
Rule 62 operadorT -> DIV neu_addOperador empty
Rule 63 operadorL -> OR neu_addOperador empty
Rule 64 operadorL -> AND neu_addOperador empty
Rule 65 operadorR -> MENORQUE neu_addOperador empty
Rule 66 operadorR -> MAYORQUE neu_addOperador empty
Rule 67 operadorR -> MENORIGUALQUE neu_addOperador empty
Rule 68 operadorR -> MAYORIGUALQUE neu_addOperador empty
Rule 69 operadorR -> IGUALQUE neu_addOperador empty
Rule 70 operadorR -> DIFQUE neu_addOperador empty
Rule 71 hiper_exp -> super_exp neu_hacerHiperExp hiper_expU
Rule 72 hiper_expU -> operadorL hiper_exp empty
Rule 73 hiper_expU -> empty
Rule 74 super_exp -> exp neu_hacerSuperExp super_expU
Rule 75 super_expU -> operadorR super_exp empty
Rule 76 super_expU -> empty
Rule 77 exp -> termino neu_hacerExp expU
Rule 78 expU -> operadorA exp
Rule 79 expU -> empty
Rule 80 termino -> factor neu_hacerTermino terminoU
Rule 81 terminoU -> operadorT termino
Rule 82 terminoU -> empty
Rule 83 factor -> varcte empty
Rule 84 factor -> llamada neu_esExpresion empty
Rule 85 factor -> L_PAR hiper_exp R_PAR empty
Rule 86 varcte -> ID neu_addID empty
Rule 87 varcte -> ID L_CORCHETE neu_fondoFalso hiper_exp R_CORCHETE neu_addIDArreglo empty
Rule 88 varcte -> ID L_CORCHETE neu_fondoFalso hiper_exp R_CORCHETE L_CORCHETE neu_fondoFalso hiper_exp R_CORCHETE neu_addIDMatriz empty
Rule 89 varcte -> ENTEROVAL neu_addConstanteEntero empty
Rule 90 varcte -> FLOTANTEVAL neu_addConstanteFlotante empty
Rule 91 varcte -> CARACTERVAL neu_addConstanteCaracter empty
Rule 92 empty -> <empty>
Rule 93 neu_programa -> <empty>
Rule 94 neu_endPrograma -> <empty>
Rule 95 neu_addFuncion -> <empty>
Rule 96 neu_endFuncion -> <empty>
Rule 97 neu_principal -> <empty>
Rule 98 neu_addVariable -> <empty>
Rule 99 neu_addVariableAStack -> <empty>
Rule 100 neu_addArreglo -> <empty>
Rule 101 neu_addMatriz -> <empty>
Rule 102 neu_addID -> <empty>
Rule 103 neu_fondoFalso -> <empty>
Rule 104 neu_addIDArreglo -> <empty>
Rule 105 neu_addIDMatriz -> <empty>
Rule 106 neu_addConstanteEntero -> <empty>
Rule 107 neu_addConstanteFlotante -> <empty>
Rule 108 neu_addConstanteCaracter -> <empty>
Rule 109 neu_llamada_era -> <empty>
Rule 110 neu_llamada_gosub -> <empty>
Rule 111 neu_esEstatuto -> <empty>
Rule 112 neu_esExpresion -> <empty>
Rule 113 neu_addOperador -> <empty>
Rule 114 getGMemoria -> <empty>
Rule 115 getLMemoria -> <empty>
Rule 116 getCMemoria -> <empty>
Rule 117 neu_hacerTermino -> <empty>
Rule 118 neu_hacerExp -> <empty>
Rule 119 neu_hacerSuperExp -> <empty>
Rule 120 neu_hacerHiperExp -> <empty>
Rule 121 neu_asignacion -> <empty>
Rule 122 neu_lectura -> <empty>
Rule 123 neu_escritura -> <empty>
Rule 124 neu_letrero -> <empty>
Rule 125 neu_retorno -> <empty>
Rule 126 neu_iniciarDecision -> <empty>
Rule 127 neu_iniciarDecisionElse -> <empty>
Rule 128 neu_endDecision -> <empty>
Rule 129 neu_condicionalAntes -> <empty>
Rule 130 neu_condicionalDurante -> <empty>
Rule 131 neu_condicionalDespues -> <empty>
Rule 132 neu_addIDFor -> <empty>
Rule 133 neu_asignacionFor -> <empty>
Rule 134 neu_boolFor -> <empty>
Rule 135 neu_endCondicion -> <empty>
Rule 136 neu_parametroEnviado -> <empty>
Rule 137 neu_recibirParametros -> <empty>
Rule 138 neu_paramValidacion -> <empty>
Rule 139 neu_vaciarPilas -> <empty>
Rule 140 notifError -> <empty>
Terminals, with rules where they appear
AND : 64
CARACTER : 17 21
CARACTERVAL : 91
COMA : 6 24 28
DESDE : 57
DIFQUE : 70
DIV : 62
DOSPUNTOS : 7 8 9 22
ENTERO : 15 19
ENTEROVAL : 8 9 9 89
ENTONCES : 53
ESCRIBIR : 50
FLOTANTE : 16 20
FLOTANTEVAL : 90
FUNCION : 12
HACER : 56 57
HASTA : 57
ID : 1 6 7 8 9 12 22 44 45 46 47 49 58 86 87 88
IGUAL : 44 45 46 58
IGUALQUE : 69
LEER : 49
LETRERO : 52
L_CORCHETE : 8 9 9 45 46 46 87 88 88
L_LLAVE : 30
L_PAR : 1 12 47 48 49 50 53 56 57 85
MAS : 59
MAYORIGUALQUE : 68
MAYORQUE : 66
MENORIGUALQUE : 67
MENORQUE : 65
MENOS : 60
MIENTRAS : 56
MULT : 61
OR : 63
PRINCIPAL : 1
PROGRAMA : 1
PUNTOYCOMA : 1 7 8 9 35 36 37 38 39
REGRESA : 48
R_CORCHETE : 8 9 9 45 46 46 87 88 88
R_LLAVE : 30
R_PAR : 1 12 47 48 49 50 53 56 57 85
SI : 53
SINO : 54
VARIABLES : 2
VOID : 18
error :
Nonterminals, with rules where they appear
asignacion : 35
asignacionFor : 57
bloque : 1 12 53 54 56 57
bloqueD : 31
bloqueU : 30 33
condicional : 41
decision : 40
decisionU : 53
empty : 1 3 5 11 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 72 73 75 76 79 82 83 84 85 86 87 88 89 90 91
escritura : 39
escrituraD : 50
estatuto : 31
exp : 74 78
expU : 77
factor : 80
funciones : 1 13
funcionesD : 12
funcionesU : 10
getCMemoria :
getGMemoria :
getLMemoria :
hiper_exp : 26 44 45 45 46 46 46 48 51 53 56 57 58 72 85 87 88 88
hiper_expU : 71
lectura : 38
llamada : 36 84
mandar_parametros : 28 47
mandar_parametrosD : 26
neu_addArreglo : 8
neu_addConstanteCaracter : 91
neu_addConstanteEntero : 89
neu_addConstanteFlotante : 90
neu_addFuncion : 12
neu_addID : 44 86
neu_addIDArreglo : 45 87
neu_addIDFor : 58
neu_addIDMatriz : 46 88
neu_addMatriz : 9
neu_addOperador : 44 45 46 58 59 60 61 62 63 64 65 66 67 68 69 70
neu_addVariable : 7
neu_addVariableAStack : 6
neu_asignacion : 44 45 46
neu_asignacionFor : 58
neu_boolFor : 57
neu_condicionalAntes : 56
neu_condicionalDespues : 56
neu_condicionalDurante : 56
neu_endCondicion : 57
neu_endDecision : 53
neu_endFuncion : 12
neu_endPrograma : 1
neu_esEstatuto : 36
neu_esExpresion : 84
neu_escritura : 51
neu_fondoFalso : 45 46 46 87 88 88
neu_hacerExp : 77
neu_hacerHiperExp : 71
neu_hacerSuperExp : 74
neu_hacerTermino : 80
neu_iniciarDecision : 53
neu_iniciarDecisionElse : 54
neu_lectura : 49
neu_letrero : 52
neu_llamada_era : 47
neu_llamada_gosub : 47
neu_paramValidacion : 47
neu_parametroEnviado : 26
neu_principal : 1
neu_programa : 1
neu_recibirParametros : 22
neu_retorno : 48
neu_vaciarPilas : 31
no_condicional : 42
notifError :
operadorA : 78
operadorL : 72
operadorR : 75
operadorT : 81
program : 0
recibir_parametros : 12 24
recibir_parametrosD : 22
retorno : 37
super_exp : 71 75
super_expU : 74
termino : 77 81
terminoU : 80
tipo_funcion : 12
tipo_var : 7 8 9 22
varcte : 83
variables : 1 12
variablesD : 4 6
variablesU : 2 7 8 9
Parsing method: LALR
state 0
(0) S' -> . program
(1) program -> . PROGRAMA ID neu_programa PUNTOYCOMA variables funciones PRINCIPAL neu_principal L_PAR R_PAR bloque neu_endPrograma empty
PROGRAMA shift and go to state 2
program shift and go to state 1
state 1
(0) S' -> program .
state 2
(1) program -> PROGRAMA . ID neu_programa PUNTOYCOMA variables funciones PRINCIPAL neu_principal L_PAR R_PAR bloque neu_endPrograma empty
ID shift and go to state 3
state 3
(1) program -> PROGRAMA ID . neu_programa PUNTOYCOMA variables funciones PRINCIPAL neu_principal L_PAR R_PAR bloque neu_endPrograma empty
(93) neu_programa -> .
PUNTOYCOMA reduce using rule 93 (neu_programa -> .)
neu_programa shift and go to state 4
state 4
(1) program -> PROGRAMA ID neu_programa . PUNTOYCOMA variables funciones PRINCIPAL neu_principal L_PAR R_PAR bloque neu_endPrograma empty
PUNTOYCOMA shift and go to state 5
state 5
(1) program -> PROGRAMA ID neu_programa PUNTOYCOMA . variables funciones PRINCIPAL neu_principal L_PAR R_PAR bloque neu_endPrograma empty
(2) variables -> . VARIABLES variablesU
(3) variables -> . empty
(92) empty -> .
VARIABLES shift and go to state 8
ENTERO reduce using rule 92 (empty -> .)
FLOTANTE reduce using rule 92 (empty -> .)
CARACTER reduce using rule 92 (empty -> .)
VOID reduce using rule 92 (empty -> .)
PRINCIPAL reduce using rule 92 (empty -> .)
variables shift and go to state 6
empty shift and go to state 7
state 6
(1) program -> PROGRAMA ID neu_programa PUNTOYCOMA variables . funciones PRINCIPAL neu_principal L_PAR R_PAR bloque neu_endPrograma empty
(10) funciones -> . funcionesU
(11) funciones -> . empty
(12) funcionesU -> . tipo_funcion FUNCION ID neu_addFuncion L_PAR recibir_parametros R_PAR variables bloque neu_endFuncion funcionesD
(92) empty -> .
(15) tipo_funcion -> . ENTERO empty
(16) tipo_funcion -> . FLOTANTE empty
(17) tipo_funcion -> . CARACTER empty
(18) tipo_funcion -> . VOID empty
PRINCIPAL reduce using rule 92 (empty -> .)
ENTERO shift and go to state 13
FLOTANTE shift and go to state 14
CARACTER shift and go to state 15
VOID shift and go to state 16
funciones shift and go to state 9
empty shift and go to state 10
funcionesU shift and go to state 11
tipo_funcion shift and go to state 12
state 7
(3) variables -> empty .
ENTERO reduce using rule 3 (variables -> empty .)
FLOTANTE reduce using rule 3 (variables -> empty .)
CARACTER reduce using rule 3 (variables -> empty .)
VOID reduce using rule 3 (variables -> empty .)
PRINCIPAL reduce using rule 3 (variables -> empty .)
L_LLAVE reduce using rule 3 (variables -> empty .)
state 8
(2) variables -> VARIABLES . variablesU
(4) variablesU -> . variablesD
(5) variablesU -> . empty
(6) variablesD -> . ID neu_addVariableAStack COMA variablesD
(7) variablesD -> . ID DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA variablesU
(8) variablesD -> . ID L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addArreglo PUNTOYCOMA variablesU
(9) variablesD -> . ID L_CORCHETE ENTEROVAL R_CORCHETE L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addMatriz PUNTOYCOMA variablesU
(92) empty -> .
ID shift and go to state 20
ENTERO reduce using rule 92 (empty -> .)
FLOTANTE reduce using rule 92 (empty -> .)
CARACTER reduce using rule 92 (empty -> .)
VOID reduce using rule 92 (empty -> .)
PRINCIPAL reduce using rule 92 (empty -> .)
L_LLAVE reduce using rule 92 (empty -> .)
variablesU shift and go to state 17
variablesD shift and go to state 18
empty shift and go to state 19
state 9
(1) program -> PROGRAMA ID neu_programa PUNTOYCOMA variables funciones . PRINCIPAL neu_principal L_PAR R_PAR bloque neu_endPrograma empty
PRINCIPAL shift and go to state 21
state 10
(11) funciones -> empty .
PRINCIPAL reduce using rule 11 (funciones -> empty .)
state 11
(10) funciones -> funcionesU .
PRINCIPAL reduce using rule 10 (funciones -> funcionesU .)
state 12
(12) funcionesU -> tipo_funcion . FUNCION ID neu_addFuncion L_PAR recibir_parametros R_PAR variables bloque neu_endFuncion funcionesD
FUNCION shift and go to state 22
state 13
(15) tipo_funcion -> ENTERO . empty
(92) empty -> .
FUNCION reduce using rule 92 (empty -> .)
empty shift and go to state 23
state 14
(16) tipo_funcion -> FLOTANTE . empty
(92) empty -> .
FUNCION reduce using rule 92 (empty -> .)
empty shift and go to state 24
state 15
(17) tipo_funcion -> CARACTER . empty
(92) empty -> .
FUNCION reduce using rule 92 (empty -> .)
empty shift and go to state 25
state 16
(18) tipo_funcion -> VOID . empty
(92) empty -> .
FUNCION reduce using rule 92 (empty -> .)
empty shift and go to state 26
state 17
(2) variables -> VARIABLES variablesU .
ENTERO reduce using rule 2 (variables -> VARIABLES variablesU .)
FLOTANTE reduce using rule 2 (variables -> VARIABLES variablesU .)
CARACTER reduce using rule 2 (variables -> VARIABLES variablesU .)
VOID reduce using rule 2 (variables -> VARIABLES variablesU .)
PRINCIPAL reduce using rule 2 (variables -> VARIABLES variablesU .)
L_LLAVE reduce using rule 2 (variables -> VARIABLES variablesU .)
state 18
(4) variablesU -> variablesD .
ENTERO reduce using rule 4 (variablesU -> variablesD .)
FLOTANTE reduce using rule 4 (variablesU -> variablesD .)
CARACTER reduce using rule 4 (variablesU -> variablesD .)
VOID reduce using rule 4 (variablesU -> variablesD .)
PRINCIPAL reduce using rule 4 (variablesU -> variablesD .)
L_LLAVE reduce using rule 4 (variablesU -> variablesD .)
state 19
(5) variablesU -> empty .
ENTERO reduce using rule 5 (variablesU -> empty .)
FLOTANTE reduce using rule 5 (variablesU -> empty .)
CARACTER reduce using rule 5 (variablesU -> empty .)
VOID reduce using rule 5 (variablesU -> empty .)
PRINCIPAL reduce using rule 5 (variablesU -> empty .)
L_LLAVE reduce using rule 5 (variablesU -> empty .)
state 20
(6) variablesD -> ID . neu_addVariableAStack COMA variablesD
(7) variablesD -> ID . DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA variablesU
(8) variablesD -> ID . L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addArreglo PUNTOYCOMA variablesU
(9) variablesD -> ID . L_CORCHETE ENTEROVAL R_CORCHETE L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addMatriz PUNTOYCOMA variablesU
(99) neu_addVariableAStack -> .
DOSPUNTOS shift and go to state 28
L_CORCHETE shift and go to state 29
COMA reduce using rule 99 (neu_addVariableAStack -> .)
neu_addVariableAStack shift and go to state 27
state 21
(1) program -> PROGRAMA ID neu_programa PUNTOYCOMA variables funciones PRINCIPAL . neu_principal L_PAR R_PAR bloque neu_endPrograma empty
(97) neu_principal -> .
L_PAR reduce using rule 97 (neu_principal -> .)
neu_principal shift and go to state 30
state 22
(12) funcionesU -> tipo_funcion FUNCION . ID neu_addFuncion L_PAR recibir_parametros R_PAR variables bloque neu_endFuncion funcionesD
ID shift and go to state 31
state 23
(15) tipo_funcion -> ENTERO empty .
FUNCION reduce using rule 15 (tipo_funcion -> ENTERO empty .)
state 24
(16) tipo_funcion -> FLOTANTE empty .
FUNCION reduce using rule 16 (tipo_funcion -> FLOTANTE empty .)
state 25
(17) tipo_funcion -> CARACTER empty .
FUNCION reduce using rule 17 (tipo_funcion -> CARACTER empty .)
state 26
(18) tipo_funcion -> VOID empty .
FUNCION reduce using rule 18 (tipo_funcion -> VOID empty .)
state 27
(6) variablesD -> ID neu_addVariableAStack . COMA variablesD
COMA shift and go to state 32
state 28
(7) variablesD -> ID DOSPUNTOS . tipo_var neu_addVariable PUNTOYCOMA variablesU
(19) tipo_var -> . ENTERO empty
(20) tipo_var -> . FLOTANTE empty
(21) tipo_var -> . CARACTER empty
ENTERO shift and go to state 34
FLOTANTE shift and go to state 35
CARACTER shift and go to state 36
tipo_var shift and go to state 33
state 29
(8) variablesD -> ID L_CORCHETE . ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addArreglo PUNTOYCOMA variablesU
(9) variablesD -> ID L_CORCHETE . ENTEROVAL R_CORCHETE L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addMatriz PUNTOYCOMA variablesU
ENTEROVAL shift and go to state 37
state 30
(1) program -> PROGRAMA ID neu_programa PUNTOYCOMA variables funciones PRINCIPAL neu_principal . L_PAR R_PAR bloque neu_endPrograma empty
L_PAR shift and go to state 38
state 31
(12) funcionesU -> tipo_funcion FUNCION ID . neu_addFuncion L_PAR recibir_parametros R_PAR variables bloque neu_endFuncion funcionesD
(95) neu_addFuncion -> .
L_PAR reduce using rule 95 (neu_addFuncion -> .)
neu_addFuncion shift and go to state 39
state 32
(6) variablesD -> ID neu_addVariableAStack COMA . variablesD
(6) variablesD -> . ID neu_addVariableAStack COMA variablesD
(7) variablesD -> . ID DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA variablesU
(8) variablesD -> . ID L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addArreglo PUNTOYCOMA variablesU
(9) variablesD -> . ID L_CORCHETE ENTEROVAL R_CORCHETE L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addMatriz PUNTOYCOMA variablesU
ID shift and go to state 20
variablesD shift and go to state 40
state 33
(7) variablesD -> ID DOSPUNTOS tipo_var . neu_addVariable PUNTOYCOMA variablesU
(98) neu_addVariable -> .
PUNTOYCOMA reduce using rule 98 (neu_addVariable -> .)
neu_addVariable shift and go to state 41
state 34
(19) tipo_var -> ENTERO . empty
(92) empty -> .
PUNTOYCOMA reduce using rule 92 (empty -> .)
COMA reduce using rule 92 (empty -> .)
R_PAR reduce using rule 92 (empty -> .)
empty shift and go to state 42
state 35
(20) tipo_var -> FLOTANTE . empty
(92) empty -> .
PUNTOYCOMA reduce using rule 92 (empty -> .)
COMA reduce using rule 92 (empty -> .)
R_PAR reduce using rule 92 (empty -> .)
empty shift and go to state 43
state 36
(21) tipo_var -> CARACTER . empty
(92) empty -> .
PUNTOYCOMA reduce using rule 92 (empty -> .)
COMA reduce using rule 92 (empty -> .)
R_PAR reduce using rule 92 (empty -> .)
empty shift and go to state 44
state 37
(8) variablesD -> ID L_CORCHETE ENTEROVAL . R_CORCHETE DOSPUNTOS tipo_var neu_addArreglo PUNTOYCOMA variablesU
(9) variablesD -> ID L_CORCHETE ENTEROVAL . R_CORCHETE L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addMatriz PUNTOYCOMA variablesU
R_CORCHETE shift and go to state 45
state 38
(1) program -> PROGRAMA ID neu_programa PUNTOYCOMA variables funciones PRINCIPAL neu_principal L_PAR . R_PAR bloque neu_endPrograma empty
R_PAR shift and go to state 46
state 39
(12) funcionesU -> tipo_funcion FUNCION ID neu_addFuncion . L_PAR recibir_parametros R_PAR variables bloque neu_endFuncion funcionesD
L_PAR shift and go to state 47
state 40
(6) variablesD -> ID neu_addVariableAStack COMA variablesD .
ENTERO reduce using rule 6 (variablesD -> ID neu_addVariableAStack COMA variablesD .)
FLOTANTE reduce using rule 6 (variablesD -> ID neu_addVariableAStack COMA variablesD .)
CARACTER reduce using rule 6 (variablesD -> ID neu_addVariableAStack COMA variablesD .)
VOID reduce using rule 6 (variablesD -> ID neu_addVariableAStack COMA variablesD .)
PRINCIPAL reduce using rule 6 (variablesD -> ID neu_addVariableAStack COMA variablesD .)
L_LLAVE reduce using rule 6 (variablesD -> ID neu_addVariableAStack COMA variablesD .)
state 41
(7) variablesD -> ID DOSPUNTOS tipo_var neu_addVariable . PUNTOYCOMA variablesU
PUNTOYCOMA shift and go to state 48
state 42
(19) tipo_var -> ENTERO empty .
PUNTOYCOMA reduce using rule 19 (tipo_var -> ENTERO empty .)
COMA reduce using rule 19 (tipo_var -> ENTERO empty .)
R_PAR reduce using rule 19 (tipo_var -> ENTERO empty .)
state 43
(20) tipo_var -> FLOTANTE empty .
PUNTOYCOMA reduce using rule 20 (tipo_var -> FLOTANTE empty .)
COMA reduce using rule 20 (tipo_var -> FLOTANTE empty .)
R_PAR reduce using rule 20 (tipo_var -> FLOTANTE empty .)
state 44
(21) tipo_var -> CARACTER empty .
PUNTOYCOMA reduce using rule 21 (tipo_var -> CARACTER empty .)
COMA reduce using rule 21 (tipo_var -> CARACTER empty .)
R_PAR reduce using rule 21 (tipo_var -> CARACTER empty .)
state 45
(8) variablesD -> ID L_CORCHETE ENTEROVAL R_CORCHETE . DOSPUNTOS tipo_var neu_addArreglo PUNTOYCOMA variablesU
(9) variablesD -> ID L_CORCHETE ENTEROVAL R_CORCHETE . L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addMatriz PUNTOYCOMA variablesU
DOSPUNTOS shift and go to state 50
L_CORCHETE shift and go to state 49
state 46
(1) program -> PROGRAMA ID neu_programa PUNTOYCOMA variables funciones PRINCIPAL neu_principal L_PAR R_PAR . bloque neu_endPrograma empty
(30) bloque -> . L_LLAVE bloqueU R_LLAVE empty
L_LLAVE shift and go to state 52
bloque shift and go to state 51
state 47
(12) funcionesU -> tipo_funcion FUNCION ID neu_addFuncion L_PAR . recibir_parametros R_PAR variables bloque neu_endFuncion funcionesD
(22) recibir_parametros -> . ID DOSPUNTOS tipo_var neu_recibirParametros recibir_parametrosD empty
(23) recibir_parametros -> . empty
(92) empty -> .
ID shift and go to state 53
R_PAR reduce using rule 92 (empty -> .)
recibir_parametros shift and go to state 54
empty shift and go to state 55
state 48
(7) variablesD -> ID DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA . variablesU
(4) variablesU -> . variablesD
(5) variablesU -> . empty
(6) variablesD -> . ID neu_addVariableAStack COMA variablesD
(7) variablesD -> . ID DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA variablesU
(8) variablesD -> . ID L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addArreglo PUNTOYCOMA variablesU
(9) variablesD -> . ID L_CORCHETE ENTEROVAL R_CORCHETE L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addMatriz PUNTOYCOMA variablesU
(92) empty -> .
ID shift and go to state 20
ENTERO reduce using rule 92 (empty -> .)
FLOTANTE reduce using rule 92 (empty -> .)
CARACTER reduce using rule 92 (empty -> .)
VOID reduce using rule 92 (empty -> .)
PRINCIPAL reduce using rule 92 (empty -> .)
L_LLAVE reduce using rule 92 (empty -> .)
variablesU shift and go to state 56
variablesD shift and go to state 18
empty shift and go to state 19
state 49
(9) variablesD -> ID L_CORCHETE ENTEROVAL R_CORCHETE L_CORCHETE . ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var neu_addMatriz PUNTOYCOMA variablesU
ENTEROVAL shift and go to state 57
state 50
(8) variablesD -> ID L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS . tipo_var neu_addArreglo PUNTOYCOMA variablesU
(19) tipo_var -> . ENTERO empty
(20) tipo_var -> . FLOTANTE empty
(21) tipo_var -> . CARACTER empty
ENTERO shift and go to state 34
FLOTANTE shift and go to state 35
CARACTER shift and go to state 36
tipo_var shift and go to state 58
state 51
(1) program -> PROGRAMA ID neu_programa PUNTOYCOMA variables funciones PRINCIPAL neu_principal L_PAR R_PAR bloque . neu_endPrograma empty
(94) neu_endPrograma -> .
$end reduce using rule 94 (neu_endPrograma -> .)
neu_endPrograma shift and go to state 59
state 52
(30) bloque -> L_LLAVE . bloqueU R_LLAVE empty
(31) bloqueU -> . estatuto bloqueD neu_vaciarPilas empty
(32) bloqueU -> . empty
(35) estatuto -> . asignacion PUNTOYCOMA empty
(36) estatuto -> . llamada neu_esEstatuto PUNTOYCOMA empty
(37) estatuto -> . retorno PUNTOYCOMA empty
(38) estatuto -> . lectura PUNTOYCOMA empty
(39) estatuto -> . escritura PUNTOYCOMA empty
(40) estatuto -> . decision empty
(41) estatuto -> . condicional empty
(42) estatuto -> . no_condicional empty
(43) estatuto -> . empty
(92) empty -> .
(44) asignacion -> . ID neu_addID IGUAL neu_addOperador hiper_exp neu_asignacion empty
(45) asignacion -> . ID L_CORCHETE neu_fondoFalso hiper_exp R_CORCHETE neu_addIDArreglo IGUAL neu_addOperador hiper_exp neu_asignacion empty
(46) asignacion -> . ID L_CORCHETE neu_fondoFalso hiper_exp R_CORCHETE L_CORCHETE neu_fondoFalso hiper_exp R_CORCHETE neu_addIDMatriz IGUAL neu_addOperador hiper_exp neu_asignacion empty
(47) llamada -> . ID neu_llamada_era L_PAR mandar_parametros neu_paramValidacion R_PAR neu_llamada_gosub empty
(48) retorno -> . REGRESA L_PAR hiper_exp neu_retorno R_PAR empty
(49) lectura -> . LEER L_PAR ID neu_lectura R_PAR empty
(50) escritura -> . ESCRIBIR L_PAR escrituraD R_PAR empty
(53) decision -> . SI L_PAR hiper_exp R_PAR neu_iniciarDecision ENTONCES bloque decisionU neu_endDecision empty
(56) condicional -> . MIENTRAS L_PAR neu_condicionalAntes hiper_exp neu_condicionalDurante R_PAR HACER bloque neu_condicionalDespues empty
(57) no_condicional -> . DESDE L_PAR asignacionFor R_PAR HASTA hiper_exp neu_boolFor HACER bloque neu_endCondicion empty
! shift/reduce conflict for ID resolved as shift
! shift/reduce conflict for REGRESA resolved as shift
! shift/reduce conflict for LEER resolved as shift
! shift/reduce conflict for ESCRIBIR resolved as shift
! shift/reduce conflict for SI resolved as shift
! shift/reduce conflict for MIENTRAS resolved as shift
! shift/reduce conflict for DESDE resolved as shift
R_LLAVE reduce using rule 92 (empty -> .)
ID shift and go to state 71
REGRESA shift and go to state 72
LEER shift and go to state 73
ESCRIBIR shift and go to state 74
SI shift and go to state 75
MIENTRAS shift and go to state 76
DESDE shift and go to state 77
! ID [ reduce using rule 92 (empty -> .) ]
! REGRESA [ reduce using rule 92 (empty -> .) ]
! LEER [ reduce using rule 92 (empty -> .) ]
! ESCRIBIR [ reduce using rule 92 (empty -> .) ]
! SI [ reduce using rule 92 (empty -> .) ]
! MIENTRAS [ reduce using rule 92 (empty -> .) ]
! DESDE [ reduce using rule 92 (empty -> .) ]
bloqueU shift and go to state 60
empty shift and go to state 61
estatuto shift and go to state 62
asignacion shift and go to state 63
llamada shift and go to state 64
retorno shift and go to state 65
lectura shift and go to state 66
escritura shift and go to state 67
decision shift and go to state 68
condicional shift and go to state 69
no_condicional shift and go to state 70
state 53
(22) recibir_parametros -> ID . DOSPUNTOS tipo_var neu_recibirParametros recibir_parametrosD empty
DOSPUNTOS shift and go to state 78
state 54
(12) funcionesU -> tipo_funcion FUNCION ID neu_addFuncion L_PAR recibir_parametros . R_PAR variables bloque neu_endFuncion funcionesD
R_PAR shift and go to state 79
state 55
(23) recibir_parametros -> empty .
R_PAR reduce using rule 23 (recibir_parametros -> empty .)
state 56
(7) variablesD -> ID DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA variablesU .
ENTERO reduce using rule 7 (variablesD -> ID DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA variablesU .)
FLOTANTE reduce using rule 7 (variablesD -> ID DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA variablesU .)
CARACTER reduce using rule 7 (variablesD -> ID DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA variablesU .)
VOID reduce using rule 7 (variablesD -> ID DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA variablesU .)
PRINCIPAL reduce using rule 7 (variablesD -> ID DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA variablesU .)
L_LLAVE reduce using rule 7 (variablesD -> ID DOSPUNTOS tipo_var neu_addVariable PUNTOYCOMA variablesU .)
state 57
(9) variablesD -> ID L_CORCHETE ENTEROVAL R_CORCHETE L_CORCHETE ENTEROVAL . R_CORCHETE DOSPUNTOS tipo_var neu_addMatriz PUNTOYCOMA variablesU
R_CORCHETE shift and go to state 80
state 58
(8) variablesD -> ID L_CORCHETE ENTEROVAL R_CORCHETE DOSPUNTOS tipo_var . neu_addArreglo PUNTOYCOMA variablesU
(100) neu_addArreglo -> .
PUNTOYCOMA reduce using rule 100 (neu_addArreglo -> .)
neu_addArreglo shift and go to state 81
state 59
(1) program -> PROGRAMA ID neu_programa PUNTOYCOMA variables funciones PRINCIPAL neu_principal L_PAR R_PAR bloque neu_endPrograma . empty
(92) empty -> .
$end reduce using rule 92 (empty -> .)
empty shift and go to state 82
state 60
(30) bloque -> L_LLAVE bloqueU . R_LLAVE empty
R_LLAVE shift and go to state 83
state 61
(32) bloqueU -> empty .
(43) estatuto -> empty .
! reduce/reduce conflict for R_LLAVE resolved using rule 32 (bloqueU -> empty .)
R_LLAVE reduce using rule 32 (bloqueU -> empty .)
ID reduce using rule 43 (estatuto -> empty .)
REGRESA reduce using rule 43 (estatuto -> empty .)
LEER reduce using rule 43 (estatuto -> empty .)
ESCRIBIR reduce using rule 43 (estatuto -> empty .)
SI reduce using rule 43 (estatuto -> empty .)
MIENTRAS reduce using rule 43 (estatuto -> empty .)
DESDE reduce using rule 43 (estatuto -> empty .)
! R_LLAVE [ reduce using rule 43 (estatuto -> empty .) ]
state 62
(31) bloqueU -> estatuto . bloqueD neu_vaciarPilas empty
(33) bloqueD -> . bloqueU empty
(34) bloqueD -> . empty
(31) bloqueU -> . estatuto bloqueD neu_vaciarPilas empty
(32) bloqueU -> . empty
(92) empty -> .
(35) estatuto -> . asignacion PUNTOYCOMA empty
(36) estatuto -> . llamada neu_esEstatuto PUNTOYCOMA empty
(37) estatuto -> . retorno PUNTOYCOMA empty
(38) estatuto -> . lectura PUNTOYCOMA empty
(39) estatuto -> . escritura PUNTOYCOMA empty
(40) estatuto -> . decision empty
(41) estatuto -> . condicional empty
(42) estatuto -> . no_condicional empty
(43) estatuto -> . empty
(44) asignacion -> . ID neu_addID IGUAL neu_addOperador hiper_exp neu_asignacion empty
(45) asignacion -> . ID L_CORCHETE neu_fondoFalso hiper_exp R_CORCHETE neu_addIDArreglo IGUAL neu_addOperador hiper_exp neu_asignacion empty
(46) asignacion -> . ID L_CORCHETE neu_fondoFalso hiper_exp R_CORCHETE L_CORCHETE neu_fondoFalso hiper_exp R_CORCHETE neu_addIDMatriz IGUAL neu_addOperador hiper_exp neu_asignacion empty
(47) llamada -> . ID neu_llamada_era L_PAR mandar_parametros neu_paramValidacion R_PAR neu_llamada_gosub empty
(48) retorno -> . REGRESA L_PAR hiper_exp neu_retorno R_PAR empty
(49) lectura -> . LEER L_PAR ID neu_lectura R_PAR empty
(50) escritura -> . ESCRIBIR L_PAR escrituraD R_PAR empty
(53) decision -> . SI L_PAR hiper_exp R_PAR neu_iniciarDecision ENTONCES bloque decisionU neu_endDecision empty
(56) condicional -> . MIENTRAS L_PAR neu_condicionalAntes hiper_exp neu_condicionalDurante R_PAR HACER bloque neu_condicionalDespues empty
(57) no_condicional -> . DESDE L_PAR asignacionFor R_PAR HASTA hiper_exp neu_boolFor HACER bloque neu_endCondicion empty
! shift/reduce conflict for ID resolved as shift
! shift/reduce conflict for REGRESA resolved as shift
! shift/reduce conflict for LEER resolved as shift
! shift/reduce conflict for ESCRIBIR resolved as shift
! shift/reduce conflict for SI resolved as shift
! shift/reduce conflict for MIENTRAS resolved as shift
! shift/reduce conflict for DESDE resolved as shift
R_LLAVE reduce using rule 92 (empty -> .)
ID shift and go to state 71
REGRESA shift and go to state 72
LEER shift and go to state 73
ESCRIBIR shift and go to state 74
SI shift and go to state 75
MIENTRAS shift and go to state 76
DESDE shift and go to state 77