-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparser.out
12985 lines (11754 loc) · 594 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)
Grammar
Rule 0 S' -> inicio
Rule 1 inicio -> sentencias
Rule 2 sentencias -> sentencias sentencia
Rule 3 sentencias -> sentencia
Rule 4 sentencia -> print PTCOMA
Rule 5 sentencia -> expresion PTCOMA
Rule 6 sentencia -> declaracion PTCOMA
Rule 7 sentencia -> if PTCOMA
Rule 8 sentencia -> Sreturn PTCOMA
Rule 9 sentencia -> Scontinue PTCOMA
Rule 10 sentencia -> Sbreak PTCOMA
Rule 11 sentencia -> Swhile PTCOMA
Rule 12 sentencia -> asignacion PTCOMA
Rule 13 sentencia -> for PTCOMA
Rule 14 sentencia -> forOf PTCOMA
Rule 15 sentencia -> declararFuncion PTCOMA
Rule 16 print -> RCONSOLE PT RLOG PARENI listaExpresiones PAREND
Rule 17 Sbreak -> RBREAK
Rule 18 Scontinue -> RCONTINUE
Rule 19 Sreturn -> RRETURN expresion
Rule 20 Sreturn -> RRETURN
Rule 21 if -> RIF PARENI expresion PAREND LLAVEI sentencias LLAVED elseif RELSE LLAVEI sentencias LLAVED
Rule 22 if -> RIF PARENI expresion PAREND LLAVEI sentencias LLAVED RELSE LLAVEI sentencias LLAVED
Rule 23 if -> RIF PARENI expresion PAREND LLAVEI sentencias LLAVED elseif
Rule 24 if -> RIF PARENI expresion PAREND LLAVEI sentencias LLAVED
Rule 25 elseif -> elseif RELSE RIF PARENI expresion PAREND LLAVEI sentencias LLAVED
Rule 26 elseif -> RELSE RIF PARENI expresion PAREND LLAVEI sentencias LLAVED
Rule 27 Swhile -> RWHILE PARENI expresion PAREND LLAVEI sentencias LLAVED
Rule 28 for -> RFOR PARENI forDeclaracion PTCOMA expresion PTCOMA expresion PAREND LLAVEI sentencias LLAVED
Rule 29 forDeclaracion -> asignacion
Rule 30 forDeclaracion -> declaracion
Rule 31 forOf -> RFOR PARENI declaracion ROF expresion PAREND LLAVEI sentencias LLAVED
Rule 32 declararFuncion -> RFUNCTION ID PARENI atributosFuncion PAREND DOSPTS tipoFuncion LLAVEI sentencias LLAVED
Rule 33 declararFuncion -> RFUNCTION ID PARENI PAREND DOSPTS tipoFuncion LLAVEI sentencias LLAVED
Rule 34 tipoFuncion -> tiposAny
Rule 35 tipoFuncion -> tiposAny CORI CORD
Rule 36 tipoFuncion -> ID
Rule 37 tipoFuncion -> RVOID
Rule 38 atributosFuncion -> atributosFuncion COMA atributoFuncion
Rule 39 atributosFuncion -> atributoFuncion
Rule 40 atributoFuncion -> ID DOSPTS tiposAny
Rule 41 atributoFuncion -> ID DOSPTS tiposAny CORI CORD
Rule 42 atributoFuncion -> ID DOSPTS ID
Rule 43 atributoFuncion -> ID
Rule 44 declaracion -> RLET ID DOSPTS tiposNoAny IGUAL expresion
Rule 45 declaracion -> RLET ID DOSPTS tiposNoAny
Rule 46 declaracion -> RLET ID DOSPTS tiposAny CORI CORD IGUAL expresion
Rule 47 declaracion -> RLET ID DOSPTS tiposAny CORI CORD
Rule 48 declaracion -> RLET ID DOSPTS RANY IGUAL expresion
Rule 49 declaracion -> RLET ID DOSPTS RANY
Rule 50 declaracion -> RLET ID IGUAL expresion
Rule 51 declaracion -> RLET ID
Rule 52 declaracion -> RINTERFACE ID LLAVEI atributos LLAVED
Rule 53 atributos -> atributos atributo
Rule 54 atributos -> atributo
Rule 55 atributo -> ID DOSPTS tiposAny PTCOMA
Rule 56 atributo -> ID DOSPTS tiposAny CORI CORD PTCOMA
Rule 57 atributo -> ID DOSPTS ID PTCOMA
Rule 58 declaracion -> RLET ID DOSPTS ID IGUAL expresion
Rule 59 valoresStruct -> valoresStruct COMA valorStruct
Rule 60 valoresStruct -> valorStruct
Rule 61 valorStruct -> ID DOSPTS expresion
Rule 62 asignacion -> ID listaAccesos IGUAL expresion
Rule 63 asignacion -> ID IGUAL expresion
Rule 64 tiposNoAny -> tipoString
Rule 65 tiposNoAny -> tipoNumber
Rule 66 tiposNoAny -> tipoBoolean
Rule 67 tiposAny -> tipoString
Rule 68 tiposAny -> tipoNumber
Rule 69 tiposAny -> tipoBoolean
Rule 70 tiposAny -> tipoAny
Rule 71 tipoString -> RSTRING
Rule 72 tipoAny -> RANY
Rule 73 tipoNumber -> RNUMBER
Rule 74 tipoBoolean -> RBOOLEAN
Rule 75 listaAccesos -> listaAccesos acceso
Rule 76 listaAccesos -> acceso
Rule 77 acceso -> CORI expresion CORD
Rule 78 acceso -> PT ID
Rule 79 listaExpresiones -> listaExpresiones COMA expresion
Rule 80 listaExpresiones -> expresion
Rule 81 expresion -> expresion MAS expresion
Rule 82 expresion -> expresion MENOS expresion
Rule 83 expresion -> expresion MUL expresion
Rule 84 expresion -> expresion DIV expresion
Rule 85 expresion -> expresion MOD expresion
Rule 86 expresion -> expresion POT expresion
Rule 87 expresion -> NOT expresion
Rule 88 expresion -> expresion IGUALACION expresion
Rule 89 expresion -> expresion DISTINTO expresion
Rule 90 expresion -> expresion MAYORQ expresion
Rule 91 expresion -> expresion MENORQ expresion
Rule 92 expresion -> expresion MAYORIG expresion
Rule 93 expresion -> expresion MENORIG expresion
Rule 94 expresion -> expresion OR expresion
Rule 95 expresion -> expresion AND expresion
Rule 96 expresion -> MENOS expresion
Rule 97 expresion -> llamada INCREMENTO
Rule 98 expresion -> llamada DECREMENTO
Rule 99 expresion -> PARENI expresion PAREND
Rule 100 expresion -> RTRUE
Rule 101 expresion -> RFALSE
Rule 102 expresion -> RNULL
Rule 103 expresion -> ENTERO
Rule 104 expresion -> DECIMAL
Rule 105 expresion -> CADENA
Rule 106 expresion -> nativa
Rule 107 expresion -> CORI listaExpresiones CORD
Rule 108 expresion -> LLAVEI valoresStruct LLAVED
Rule 109 expresion -> llamada
Rule 110 expresion -> llamadaFuncion
Rule 111 expresion -> RTYPEOF PARENI expresion PAREND
Rule 112 llamadaFuncion -> ID PARENI listaExpresiones PAREND
Rule 113 llamadaFuncion -> ID PARENI PAREND
Rule 114 llamada -> ID listaAccesos PT nativa
Rule 115 llamada -> ID listaAccesos
Rule 116 llamada -> ID PT nativa
Rule 117 llamada -> ID
Rule 118 nativa -> tofixed
Rule 119 nativa -> toexponential
Rule 120 nativa -> tostring
Rule 121 nativa -> tolowercase
Rule 122 nativa -> touppercase
Rule 123 nativa -> split
Rule 124 nativa -> concat
Rule 125 nativa -> push
Rule 126 nativa -> length
Rule 127 tofixed -> RFIXED PARENI expresion PAREND
Rule 128 toexponential -> REXPONENTIAL PARENI expresion PAREND
Rule 129 tostring -> RTSTRING PARENI PAREND
Rule 130 tolowercase -> RLC PARENI PAREND
Rule 131 touppercase -> RUC PARENI PAREND
Rule 132 length -> RLENGTH PARENI PAREND
Rule 133 split -> RSPLIT PARENI expresion PAREND
Rule 134 concat -> RCONCAT PARENI listaExpresiones PAREND
Rule 135 push -> RPUSH PARENI expresion PAREND
Terminals, with rules where they appear
AND : 95
CADENA : 105
COMA : 38 59 79
CORD : 35 41 46 47 56 77 107
CORI : 35 41 46 47 56 77 107
DECIMAL : 104
DECREMENTO : 98
DISTINTO : 89
DIV : 84
DOSPTS : 32 33 40 41 42 44 45 46 47 48 49 55 56 57 58 61
ENTERO : 103
ID : 32 33 36 40 41 42 42 43 44 45 46 47 48 49 50 51 52 55 56 57 57 58 58 61 62 63 78 112 113 114 115 116 117
IGUAL : 44 46 48 50 58 62 63
IGUALACION : 88
INCREMENTO : 97
LLAVED : 21 21 22 22 23 24 25 26 27 28 31 32 33 52 108
LLAVEI : 21 21 22 22 23 24 25 26 27 28 31 32 33 52 108
MAS : 81
MAYORIG : 92
MAYORQ : 90
MENORIG : 93
MENORQ : 91
MENOS : 82 96
MOD : 85
MUL : 83
NOT : 87
OR : 94
PAREND : 16 21 22 23 24 25 26 27 28 31 32 33 99 111 112 113 127 128 129 130 131 132 133 134 135
PARENI : 16 21 22 23 24 25 26 27 28 31 32 33 99 111 112 113 127 128 129 130 131 132 133 134 135
POT : 86
PT : 16 78 114 116
PTCOMA : 4 5 6 7 8 9 10 11 12 13 14 15 28 28 55 56 57
RANY : 48 49 72
RBOOLEAN : 74
RBREAK : 17
RCONCAT : 134
RCONSOLE : 16
RCONTINUE : 18
RELSE : 21 22 25 26
REXPONENTIAL : 128
RFALSE : 101
RFIXED : 127
RFOR : 28 31
RFUNCTION : 32 33
RIF : 21 22 23 24 25 26
RINTERFACE : 52
RLC : 130
RLENGTH : 132
RLET : 44 45 46 47 48 49 50 51 58
RLOG : 16
RNULL : 102
RNUMBER : 73
ROF : 31
RPUSH : 135
RRETURN : 19 20
RSPLIT : 133
RSTRING : 71
RTRUE : 100
RTSTRING : 129
RTYPEOF : 111
RUC : 131
RVOID : 37
RWHILE : 27
error :
Nonterminals, with rules where they appear
Sbreak : 10
Scontinue : 9
Sreturn : 8
Swhile : 11
acceso : 75 76
asignacion : 12 29
atributo : 53 54
atributoFuncion : 38 39
atributos : 52 53
atributosFuncion : 32 38
concat : 124
declaracion : 6 30 31
declararFuncion : 15
elseif : 21 23 25
expresion : 5 19 21 22 23 24 25 26 27 28 28 31 44 46 48 50 58 61 62 63 77 79 80 81 81 82 82 83 83 84 84 85 85 86 86 87 88 88 89 89 90 90 91 91 92 92 93 93 94 94 95 95 96 99 111 127 128 133 135
for : 13
forDeclaracion : 28
forOf : 14
if : 7
inicio : 0
length : 126
listaAccesos : 62 75 114 115
listaExpresiones : 16 79 107 112 134
llamada : 97 98 109
llamadaFuncion : 110
nativa : 106 114 116
print : 4
push : 125
sentencia : 2 3
sentencias : 1 2 21 21 22 22 23 24 25 26 27 28 31 32 33
split : 123
tipoAny : 70
tipoBoolean : 66 69
tipoFuncion : 32 33
tipoNumber : 65 68
tipoString : 64 67
tiposAny : 34 35 40 41 46 47 55 56
tiposNoAny : 44 45
toexponential : 119
tofixed : 118
tolowercase : 121
tostring : 120
touppercase : 122
valorStruct : 59 60
valoresStruct : 59 108
Parsing method: LALR
state 0
(0) S' -> . inicio
(1) inicio -> . sentencias
(2) sentencias -> . sentencias sentencia
(3) sentencias -> . sentencia
(4) sentencia -> . print PTCOMA
(5) sentencia -> . expresion PTCOMA
(6) sentencia -> . declaracion PTCOMA
(7) sentencia -> . if PTCOMA
(8) sentencia -> . Sreturn PTCOMA
(9) sentencia -> . Scontinue PTCOMA
(10) sentencia -> . Sbreak PTCOMA
(11) sentencia -> . Swhile PTCOMA
(12) sentencia -> . asignacion PTCOMA
(13) sentencia -> . for PTCOMA
(14) sentencia -> . forOf PTCOMA
(15) sentencia -> . declararFuncion PTCOMA
(16) print -> . RCONSOLE PT RLOG PARENI listaExpresiones PAREND
(81) expresion -> . expresion MAS expresion
(82) expresion -> . expresion MENOS expresion
(83) expresion -> . expresion MUL expresion
(84) expresion -> . expresion DIV expresion
(85) expresion -> . expresion MOD expresion
(86) expresion -> . expresion POT expresion
(87) expresion -> . NOT expresion
(88) expresion -> . expresion IGUALACION expresion
(89) expresion -> . expresion DISTINTO expresion
(90) expresion -> . expresion MAYORQ expresion
(91) expresion -> . expresion MENORQ expresion
(92) expresion -> . expresion MAYORIG expresion
(93) expresion -> . expresion MENORIG expresion
(94) expresion -> . expresion OR expresion
(95) expresion -> . expresion AND expresion
(96) expresion -> . MENOS expresion
(97) expresion -> . llamada INCREMENTO
(98) expresion -> . llamada DECREMENTO
(99) expresion -> . PARENI expresion PAREND
(100) expresion -> . RTRUE
(101) expresion -> . RFALSE
(102) expresion -> . RNULL
(103) expresion -> . ENTERO
(104) expresion -> . DECIMAL
(105) expresion -> . CADENA
(106) expresion -> . nativa
(107) expresion -> . CORI listaExpresiones CORD
(108) expresion -> . LLAVEI valoresStruct LLAVED
(109) expresion -> . llamada
(110) expresion -> . llamadaFuncion
(111) expresion -> . RTYPEOF PARENI expresion PAREND
(44) declaracion -> . RLET ID DOSPTS tiposNoAny IGUAL expresion
(45) declaracion -> . RLET ID DOSPTS tiposNoAny
(46) declaracion -> . RLET ID DOSPTS tiposAny CORI CORD IGUAL expresion
(47) declaracion -> . RLET ID DOSPTS tiposAny CORI CORD
(48) declaracion -> . RLET ID DOSPTS RANY IGUAL expresion
(49) declaracion -> . RLET ID DOSPTS RANY
(50) declaracion -> . RLET ID IGUAL expresion
(51) declaracion -> . RLET ID
(52) declaracion -> . RINTERFACE ID LLAVEI atributos LLAVED
(58) declaracion -> . RLET ID DOSPTS ID IGUAL expresion
(21) if -> . RIF PARENI expresion PAREND LLAVEI sentencias LLAVED elseif RELSE LLAVEI sentencias LLAVED
(22) if -> . RIF PARENI expresion PAREND LLAVEI sentencias LLAVED RELSE LLAVEI sentencias LLAVED
(23) if -> . RIF PARENI expresion PAREND LLAVEI sentencias LLAVED elseif
(24) if -> . RIF PARENI expresion PAREND LLAVEI sentencias LLAVED
(19) Sreturn -> . RRETURN expresion
(20) Sreturn -> . RRETURN
(18) Scontinue -> . RCONTINUE
(17) Sbreak -> . RBREAK
(27) Swhile -> . RWHILE PARENI expresion PAREND LLAVEI sentencias LLAVED
(62) asignacion -> . ID listaAccesos IGUAL expresion
(63) asignacion -> . ID IGUAL expresion
(28) for -> . RFOR PARENI forDeclaracion PTCOMA expresion PTCOMA expresion PAREND LLAVEI sentencias LLAVED
(31) forOf -> . RFOR PARENI declaracion ROF expresion PAREND LLAVEI sentencias LLAVED
(32) declararFuncion -> . RFUNCTION ID PARENI atributosFuncion PAREND DOSPTS tipoFuncion LLAVEI sentencias LLAVED
(33) declararFuncion -> . RFUNCTION ID PARENI PAREND DOSPTS tipoFuncion LLAVEI sentencias LLAVED
(114) llamada -> . ID listaAccesos PT nativa
(115) llamada -> . ID listaAccesos
(116) llamada -> . ID PT nativa
(117) llamada -> . ID
(118) nativa -> . tofixed
(119) nativa -> . toexponential
(120) nativa -> . tostring
(121) nativa -> . tolowercase
(122) nativa -> . touppercase
(123) nativa -> . split
(124) nativa -> . concat
(125) nativa -> . push
(126) nativa -> . length
(112) llamadaFuncion -> . ID PARENI listaExpresiones PAREND
(113) llamadaFuncion -> . ID PARENI PAREND
(127) tofixed -> . RFIXED PARENI expresion PAREND
(128) toexponential -> . REXPONENTIAL PARENI expresion PAREND
(129) tostring -> . RTSTRING PARENI PAREND
(130) tolowercase -> . RLC PARENI PAREND
(131) touppercase -> . RUC PARENI PAREND
(133) split -> . RSPLIT PARENI expresion PAREND
(134) concat -> . RCONCAT PARENI listaExpresiones PAREND
(135) push -> . RPUSH PARENI expresion PAREND
(132) length -> . RLENGTH PARENI PAREND
RCONSOLE shift and go to state 16
NOT shift and go to state 19
MENOS shift and go to state 18
PARENI shift and go to state 17
RTRUE shift and go to state 21
RFALSE shift and go to state 22
RNULL shift and go to state 23
ENTERO shift and go to state 24
DECIMAL shift and go to state 25
CADENA shift and go to state 26
CORI shift and go to state 28
LLAVEI shift and go to state 29
RTYPEOF shift and go to state 31
RLET shift and go to state 32
RINTERFACE shift and go to state 34
RIF shift and go to state 35
RRETURN shift and go to state 36
RCONTINUE shift and go to state 37
RBREAK shift and go to state 38
RWHILE shift and go to state 39
ID shift and go to state 33
RFOR shift and go to state 40
RFUNCTION shift and go to state 41
RFIXED shift and go to state 51
REXPONENTIAL shift and go to state 52
RTSTRING shift and go to state 53
RLC shift and go to state 54
RUC shift and go to state 55
RSPLIT shift and go to state 56
RCONCAT shift and go to state 57
RPUSH shift and go to state 58
RLENGTH shift and go to state 59
inicio shift and go to state 1
sentencias shift and go to state 2
sentencia shift and go to state 3
print shift and go to state 4
expresion shift and go to state 5
declaracion shift and go to state 6
if shift and go to state 7
Sreturn shift and go to state 8
Scontinue shift and go to state 9
Sbreak shift and go to state 10
Swhile shift and go to state 11
asignacion shift and go to state 12
for shift and go to state 13
forOf shift and go to state 14
declararFuncion shift and go to state 15
llamada shift and go to state 20
nativa shift and go to state 27
llamadaFuncion shift and go to state 30
tofixed shift and go to state 42
toexponential shift and go to state 43
tostring shift and go to state 44
tolowercase shift and go to state 45
touppercase shift and go to state 46
split shift and go to state 47
concat shift and go to state 48
push shift and go to state 49
length shift and go to state 50
state 1
(0) S' -> inicio .
state 2
(1) inicio -> sentencias .
(2) sentencias -> sentencias . sentencia
(4) sentencia -> . print PTCOMA
(5) sentencia -> . expresion PTCOMA
(6) sentencia -> . declaracion PTCOMA
(7) sentencia -> . if PTCOMA
(8) sentencia -> . Sreturn PTCOMA
(9) sentencia -> . Scontinue PTCOMA
(10) sentencia -> . Sbreak PTCOMA
(11) sentencia -> . Swhile PTCOMA
(12) sentencia -> . asignacion PTCOMA
(13) sentencia -> . for PTCOMA
(14) sentencia -> . forOf PTCOMA
(15) sentencia -> . declararFuncion PTCOMA
(16) print -> . RCONSOLE PT RLOG PARENI listaExpresiones PAREND
(81) expresion -> . expresion MAS expresion
(82) expresion -> . expresion MENOS expresion
(83) expresion -> . expresion MUL expresion
(84) expresion -> . expresion DIV expresion
(85) expresion -> . expresion MOD expresion
(86) expresion -> . expresion POT expresion
(87) expresion -> . NOT expresion
(88) expresion -> . expresion IGUALACION expresion
(89) expresion -> . expresion DISTINTO expresion
(90) expresion -> . expresion MAYORQ expresion
(91) expresion -> . expresion MENORQ expresion
(92) expresion -> . expresion MAYORIG expresion
(93) expresion -> . expresion MENORIG expresion
(94) expresion -> . expresion OR expresion
(95) expresion -> . expresion AND expresion
(96) expresion -> . MENOS expresion
(97) expresion -> . llamada INCREMENTO
(98) expresion -> . llamada DECREMENTO
(99) expresion -> . PARENI expresion PAREND
(100) expresion -> . RTRUE
(101) expresion -> . RFALSE
(102) expresion -> . RNULL
(103) expresion -> . ENTERO
(104) expresion -> . DECIMAL
(105) expresion -> . CADENA
(106) expresion -> . nativa
(107) expresion -> . CORI listaExpresiones CORD
(108) expresion -> . LLAVEI valoresStruct LLAVED
(109) expresion -> . llamada
(110) expresion -> . llamadaFuncion
(111) expresion -> . RTYPEOF PARENI expresion PAREND
(44) declaracion -> . RLET ID DOSPTS tiposNoAny IGUAL expresion
(45) declaracion -> . RLET ID DOSPTS tiposNoAny
(46) declaracion -> . RLET ID DOSPTS tiposAny CORI CORD IGUAL expresion
(47) declaracion -> . RLET ID DOSPTS tiposAny CORI CORD
(48) declaracion -> . RLET ID DOSPTS RANY IGUAL expresion
(49) declaracion -> . RLET ID DOSPTS RANY
(50) declaracion -> . RLET ID IGUAL expresion
(51) declaracion -> . RLET ID
(52) declaracion -> . RINTERFACE ID LLAVEI atributos LLAVED
(58) declaracion -> . RLET ID DOSPTS ID IGUAL expresion
(21) if -> . RIF PARENI expresion PAREND LLAVEI sentencias LLAVED elseif RELSE LLAVEI sentencias LLAVED
(22) if -> . RIF PARENI expresion PAREND LLAVEI sentencias LLAVED RELSE LLAVEI sentencias LLAVED
(23) if -> . RIF PARENI expresion PAREND LLAVEI sentencias LLAVED elseif
(24) if -> . RIF PARENI expresion PAREND LLAVEI sentencias LLAVED
(19) Sreturn -> . RRETURN expresion
(20) Sreturn -> . RRETURN
(18) Scontinue -> . RCONTINUE
(17) Sbreak -> . RBREAK
(27) Swhile -> . RWHILE PARENI expresion PAREND LLAVEI sentencias LLAVED
(62) asignacion -> . ID listaAccesos IGUAL expresion
(63) asignacion -> . ID IGUAL expresion
(28) for -> . RFOR PARENI forDeclaracion PTCOMA expresion PTCOMA expresion PAREND LLAVEI sentencias LLAVED
(31) forOf -> . RFOR PARENI declaracion ROF expresion PAREND LLAVEI sentencias LLAVED
(32) declararFuncion -> . RFUNCTION ID PARENI atributosFuncion PAREND DOSPTS tipoFuncion LLAVEI sentencias LLAVED
(33) declararFuncion -> . RFUNCTION ID PARENI PAREND DOSPTS tipoFuncion LLAVEI sentencias LLAVED
(114) llamada -> . ID listaAccesos PT nativa
(115) llamada -> . ID listaAccesos
(116) llamada -> . ID PT nativa
(117) llamada -> . ID
(118) nativa -> . tofixed
(119) nativa -> . toexponential
(120) nativa -> . tostring
(121) nativa -> . tolowercase
(122) nativa -> . touppercase
(123) nativa -> . split
(124) nativa -> . concat
(125) nativa -> . push
(126) nativa -> . length
(112) llamadaFuncion -> . ID PARENI listaExpresiones PAREND
(113) llamadaFuncion -> . ID PARENI PAREND
(127) tofixed -> . RFIXED PARENI expresion PAREND
(128) toexponential -> . REXPONENTIAL PARENI expresion PAREND
(129) tostring -> . RTSTRING PARENI PAREND
(130) tolowercase -> . RLC PARENI PAREND
(131) touppercase -> . RUC PARENI PAREND
(133) split -> . RSPLIT PARENI expresion PAREND
(134) concat -> . RCONCAT PARENI listaExpresiones PAREND
(135) push -> . RPUSH PARENI expresion PAREND
(132) length -> . RLENGTH PARENI PAREND
$end reduce using rule 1 (inicio -> sentencias .)
RCONSOLE shift and go to state 16
NOT shift and go to state 19
MENOS shift and go to state 18
PARENI shift and go to state 17
RTRUE shift and go to state 21
RFALSE shift and go to state 22
RNULL shift and go to state 23
ENTERO shift and go to state 24
DECIMAL shift and go to state 25
CADENA shift and go to state 26
CORI shift and go to state 28
LLAVEI shift and go to state 29
RTYPEOF shift and go to state 31
RLET shift and go to state 32
RINTERFACE shift and go to state 34
RIF shift and go to state 35
RRETURN shift and go to state 36
RCONTINUE shift and go to state 37
RBREAK shift and go to state 38
RWHILE shift and go to state 39
ID shift and go to state 33
RFOR shift and go to state 40
RFUNCTION shift and go to state 41
RFIXED shift and go to state 51
REXPONENTIAL shift and go to state 52
RTSTRING shift and go to state 53
RLC shift and go to state 54
RUC shift and go to state 55
RSPLIT shift and go to state 56
RCONCAT shift and go to state 57
RPUSH shift and go to state 58
RLENGTH shift and go to state 59
sentencia shift and go to state 60
print shift and go to state 4
expresion shift and go to state 5
declaracion shift and go to state 6
if shift and go to state 7
Sreturn shift and go to state 8
Scontinue shift and go to state 9
Sbreak shift and go to state 10
Swhile shift and go to state 11
asignacion shift and go to state 12
for shift and go to state 13
forOf shift and go to state 14
declararFuncion shift and go to state 15
llamada shift and go to state 20
nativa shift and go to state 27
llamadaFuncion shift and go to state 30
tofixed shift and go to state 42
toexponential shift and go to state 43
tostring shift and go to state 44
tolowercase shift and go to state 45
touppercase shift and go to state 46
split shift and go to state 47
concat shift and go to state 48
push shift and go to state 49
length shift and go to state 50
state 3
(3) sentencias -> sentencia .
RCONSOLE reduce using rule 3 (sentencias -> sentencia .)
NOT reduce using rule 3 (sentencias -> sentencia .)
MENOS reduce using rule 3 (sentencias -> sentencia .)
PARENI reduce using rule 3 (sentencias -> sentencia .)
RTRUE reduce using rule 3 (sentencias -> sentencia .)
RFALSE reduce using rule 3 (sentencias -> sentencia .)
RNULL reduce using rule 3 (sentencias -> sentencia .)
ENTERO reduce using rule 3 (sentencias -> sentencia .)
DECIMAL reduce using rule 3 (sentencias -> sentencia .)
CADENA reduce using rule 3 (sentencias -> sentencia .)
CORI reduce using rule 3 (sentencias -> sentencia .)
LLAVEI reduce using rule 3 (sentencias -> sentencia .)
RTYPEOF reduce using rule 3 (sentencias -> sentencia .)
RLET reduce using rule 3 (sentencias -> sentencia .)
RINTERFACE reduce using rule 3 (sentencias -> sentencia .)
RIF reduce using rule 3 (sentencias -> sentencia .)
RRETURN reduce using rule 3 (sentencias -> sentencia .)
RCONTINUE reduce using rule 3 (sentencias -> sentencia .)
RBREAK reduce using rule 3 (sentencias -> sentencia .)
RWHILE reduce using rule 3 (sentencias -> sentencia .)
ID reduce using rule 3 (sentencias -> sentencia .)
RFOR reduce using rule 3 (sentencias -> sentencia .)
RFUNCTION reduce using rule 3 (sentencias -> sentencia .)
RFIXED reduce using rule 3 (sentencias -> sentencia .)
REXPONENTIAL reduce using rule 3 (sentencias -> sentencia .)
RTSTRING reduce using rule 3 (sentencias -> sentencia .)
RLC reduce using rule 3 (sentencias -> sentencia .)
RUC reduce using rule 3 (sentencias -> sentencia .)
RSPLIT reduce using rule 3 (sentencias -> sentencia .)
RCONCAT reduce using rule 3 (sentencias -> sentencia .)
RPUSH reduce using rule 3 (sentencias -> sentencia .)
RLENGTH reduce using rule 3 (sentencias -> sentencia .)
$end reduce using rule 3 (sentencias -> sentencia .)
LLAVED reduce using rule 3 (sentencias -> sentencia .)
state 4
(4) sentencia -> print . PTCOMA
PTCOMA shift and go to state 61
state 5
(5) sentencia -> expresion . PTCOMA
(81) expresion -> expresion . MAS expresion
(82) expresion -> expresion . MENOS expresion
(83) expresion -> expresion . MUL expresion
(84) expresion -> expresion . DIV expresion
(85) expresion -> expresion . MOD expresion
(86) expresion -> expresion . POT expresion
(88) expresion -> expresion . IGUALACION expresion
(89) expresion -> expresion . DISTINTO expresion
(90) expresion -> expresion . MAYORQ expresion
(91) expresion -> expresion . MENORQ expresion
(92) expresion -> expresion . MAYORIG expresion
(93) expresion -> expresion . MENORIG expresion
(94) expresion -> expresion . OR expresion
(95) expresion -> expresion . AND expresion
PTCOMA shift and go to state 62
MAS shift and go to state 63
MENOS shift and go to state 64
MUL shift and go to state 65
DIV shift and go to state 66
MOD shift and go to state 67
POT shift and go to state 68
IGUALACION shift and go to state 69
DISTINTO shift and go to state 70
MAYORQ shift and go to state 71
MENORQ shift and go to state 72
MAYORIG shift and go to state 73
MENORIG shift and go to state 74
OR shift and go to state 75
AND shift and go to state 76
state 6
(6) sentencia -> declaracion . PTCOMA
PTCOMA shift and go to state 77
state 7
(7) sentencia -> if . PTCOMA
PTCOMA shift and go to state 78
state 8
(8) sentencia -> Sreturn . PTCOMA
PTCOMA shift and go to state 79
state 9
(9) sentencia -> Scontinue . PTCOMA
PTCOMA shift and go to state 80
state 10
(10) sentencia -> Sbreak . PTCOMA
PTCOMA shift and go to state 81
state 11
(11) sentencia -> Swhile . PTCOMA
PTCOMA shift and go to state 82
state 12
(12) sentencia -> asignacion . PTCOMA
PTCOMA shift and go to state 83
state 13
(13) sentencia -> for . PTCOMA
PTCOMA shift and go to state 84
state 14
(14) sentencia -> forOf . PTCOMA
PTCOMA shift and go to state 85
state 15
(15) sentencia -> declararFuncion . PTCOMA
PTCOMA shift and go to state 86
state 16
(16) print -> RCONSOLE . PT RLOG PARENI listaExpresiones PAREND
PT shift and go to state 87
state 17
(99) expresion -> PARENI . expresion PAREND
(81) expresion -> . expresion MAS expresion
(82) expresion -> . expresion MENOS expresion
(83) expresion -> . expresion MUL expresion
(84) expresion -> . expresion DIV expresion
(85) expresion -> . expresion MOD expresion
(86) expresion -> . expresion POT expresion
(87) expresion -> . NOT expresion
(88) expresion -> . expresion IGUALACION expresion
(89) expresion -> . expresion DISTINTO expresion
(90) expresion -> . expresion MAYORQ expresion
(91) expresion -> . expresion MENORQ expresion
(92) expresion -> . expresion MAYORIG expresion
(93) expresion -> . expresion MENORIG expresion
(94) expresion -> . expresion OR expresion
(95) expresion -> . expresion AND expresion
(96) expresion -> . MENOS expresion
(97) expresion -> . llamada INCREMENTO
(98) expresion -> . llamada DECREMENTO
(99) expresion -> . PARENI expresion PAREND
(100) expresion -> . RTRUE
(101) expresion -> . RFALSE
(102) expresion -> . RNULL
(103) expresion -> . ENTERO
(104) expresion -> . DECIMAL
(105) expresion -> . CADENA
(106) expresion -> . nativa
(107) expresion -> . CORI listaExpresiones CORD
(108) expresion -> . LLAVEI valoresStruct LLAVED
(109) expresion -> . llamada
(110) expresion -> . llamadaFuncion
(111) expresion -> . RTYPEOF PARENI expresion PAREND
(114) llamada -> . ID listaAccesos PT nativa
(115) llamada -> . ID listaAccesos
(116) llamada -> . ID PT nativa
(117) llamada -> . ID
(118) nativa -> . tofixed
(119) nativa -> . toexponential
(120) nativa -> . tostring
(121) nativa -> . tolowercase
(122) nativa -> . touppercase
(123) nativa -> . split
(124) nativa -> . concat
(125) nativa -> . push
(126) nativa -> . length
(112) llamadaFuncion -> . ID PARENI listaExpresiones PAREND
(113) llamadaFuncion -> . ID PARENI PAREND
(127) tofixed -> . RFIXED PARENI expresion PAREND
(128) toexponential -> . REXPONENTIAL PARENI expresion PAREND
(129) tostring -> . RTSTRING PARENI PAREND
(130) tolowercase -> . RLC PARENI PAREND
(131) touppercase -> . RUC PARENI PAREND
(133) split -> . RSPLIT PARENI expresion PAREND
(134) concat -> . RCONCAT PARENI listaExpresiones PAREND
(135) push -> . RPUSH PARENI expresion PAREND
(132) length -> . RLENGTH PARENI PAREND
NOT shift and go to state 19
MENOS shift and go to state 18
PARENI shift and go to state 17
RTRUE shift and go to state 21
RFALSE shift and go to state 22
RNULL shift and go to state 23
ENTERO shift and go to state 24
DECIMAL shift and go to state 25
CADENA shift and go to state 26
CORI shift and go to state 28
LLAVEI shift and go to state 29
RTYPEOF shift and go to state 31
ID shift and go to state 89
RFIXED shift and go to state 51
REXPONENTIAL shift and go to state 52
RTSTRING shift and go to state 53
RLC shift and go to state 54
RUC shift and go to state 55
RSPLIT shift and go to state 56
RCONCAT shift and go to state 57
RPUSH shift and go to state 58
RLENGTH shift and go to state 59
expresion shift and go to state 88
llamada shift and go to state 20
nativa shift and go to state 27
llamadaFuncion shift and go to state 30
tofixed shift and go to state 42
toexponential shift and go to state 43
tostring shift and go to state 44
tolowercase shift and go to state 45
touppercase shift and go to state 46
split shift and go to state 47
concat shift and go to state 48
push shift and go to state 49
length shift and go to state 50
state 18
(96) expresion -> MENOS . expresion
(81) expresion -> . expresion MAS expresion
(82) expresion -> . expresion MENOS expresion
(83) expresion -> . expresion MUL expresion
(84) expresion -> . expresion DIV expresion
(85) expresion -> . expresion MOD expresion
(86) expresion -> . expresion POT expresion
(87) expresion -> . NOT expresion
(88) expresion -> . expresion IGUALACION expresion
(89) expresion -> . expresion DISTINTO expresion
(90) expresion -> . expresion MAYORQ expresion
(91) expresion -> . expresion MENORQ expresion
(92) expresion -> . expresion MAYORIG expresion
(93) expresion -> . expresion MENORIG expresion
(94) expresion -> . expresion OR expresion
(95) expresion -> . expresion AND expresion
(96) expresion -> . MENOS expresion
(97) expresion -> . llamada INCREMENTO
(98) expresion -> . llamada DECREMENTO
(99) expresion -> . PARENI expresion PAREND
(100) expresion -> . RTRUE
(101) expresion -> . RFALSE
(102) expresion -> . RNULL
(103) expresion -> . ENTERO
(104) expresion -> . DECIMAL
(105) expresion -> . CADENA
(106) expresion -> . nativa
(107) expresion -> . CORI listaExpresiones CORD
(108) expresion -> . LLAVEI valoresStruct LLAVED
(109) expresion -> . llamada
(110) expresion -> . llamadaFuncion
(111) expresion -> . RTYPEOF PARENI expresion PAREND
(114) llamada -> . ID listaAccesos PT nativa
(115) llamada -> . ID listaAccesos
(116) llamada -> . ID PT nativa
(117) llamada -> . ID
(118) nativa -> . tofixed
(119) nativa -> . toexponential
(120) nativa -> . tostring
(121) nativa -> . tolowercase
(122) nativa -> . touppercase
(123) nativa -> . split
(124) nativa -> . concat
(125) nativa -> . push
(126) nativa -> . length
(112) llamadaFuncion -> . ID PARENI listaExpresiones PAREND
(113) llamadaFuncion -> . ID PARENI PAREND
(127) tofixed -> . RFIXED PARENI expresion PAREND
(128) toexponential -> . REXPONENTIAL PARENI expresion PAREND
(129) tostring -> . RTSTRING PARENI PAREND
(130) tolowercase -> . RLC PARENI PAREND
(131) touppercase -> . RUC PARENI PAREND
(133) split -> . RSPLIT PARENI expresion PAREND
(134) concat -> . RCONCAT PARENI listaExpresiones PAREND
(135) push -> . RPUSH PARENI expresion PAREND
(132) length -> . RLENGTH PARENI PAREND
NOT shift and go to state 19
MENOS shift and go to state 18
PARENI shift and go to state 17
RTRUE shift and go to state 21
RFALSE shift and go to state 22
RNULL shift and go to state 23
ENTERO shift and go to state 24
DECIMAL shift and go to state 25
CADENA shift and go to state 26
CORI shift and go to state 28
LLAVEI shift and go to state 29
RTYPEOF shift and go to state 31
ID shift and go to state 89
RFIXED shift and go to state 51
REXPONENTIAL shift and go to state 52
RTSTRING shift and go to state 53
RLC shift and go to state 54
RUC shift and go to state 55
RSPLIT shift and go to state 56
RCONCAT shift and go to state 57
RPUSH shift and go to state 58
RLENGTH shift and go to state 59
expresion shift and go to state 90
llamada shift and go to state 20
nativa shift and go to state 27
llamadaFuncion shift and go to state 30
tofixed shift and go to state 42
toexponential shift and go to state 43
tostring shift and go to state 44
tolowercase shift and go to state 45
touppercase shift and go to state 46
split shift and go to state 47
concat shift and go to state 48
push shift and go to state 49
length shift and go to state 50
state 19
(87) expresion -> NOT . expresion
(81) expresion -> . expresion MAS expresion
(82) expresion -> . expresion MENOS expresion
(83) expresion -> . expresion MUL expresion
(84) expresion -> . expresion DIV expresion
(85) expresion -> . expresion MOD expresion
(86) expresion -> . expresion POT expresion
(87) expresion -> . NOT expresion
(88) expresion -> . expresion IGUALACION expresion
(89) expresion -> . expresion DISTINTO expresion
(90) expresion -> . expresion MAYORQ expresion
(91) expresion -> . expresion MENORQ expresion
(92) expresion -> . expresion MAYORIG expresion
(93) expresion -> . expresion MENORIG expresion
(94) expresion -> . expresion OR expresion
(95) expresion -> . expresion AND expresion
(96) expresion -> . MENOS expresion
(97) expresion -> . llamada INCREMENTO
(98) expresion -> . llamada DECREMENTO
(99) expresion -> . PARENI expresion PAREND
(100) expresion -> . RTRUE
(101) expresion -> . RFALSE
(102) expresion -> . RNULL
(103) expresion -> . ENTERO
(104) expresion -> . DECIMAL
(105) expresion -> . CADENA
(106) expresion -> . nativa
(107) expresion -> . CORI listaExpresiones CORD
(108) expresion -> . LLAVEI valoresStruct LLAVED
(109) expresion -> . llamada
(110) expresion -> . llamadaFuncion
(111) expresion -> . RTYPEOF PARENI expresion PAREND
(114) llamada -> . ID listaAccesos PT nativa
(115) llamada -> . ID listaAccesos
(116) llamada -> . ID PT nativa
(117) llamada -> . ID
(118) nativa -> . tofixed
(119) nativa -> . toexponential
(120) nativa -> . tostring
(121) nativa -> . tolowercase
(122) nativa -> . touppercase
(123) nativa -> . split
(124) nativa -> . concat
(125) nativa -> . push
(126) nativa -> . length
(112) llamadaFuncion -> . ID PARENI listaExpresiones PAREND
(113) llamadaFuncion -> . ID PARENI PAREND
(127) tofixed -> . RFIXED PARENI expresion PAREND
(128) toexponential -> . REXPONENTIAL PARENI expresion PAREND
(129) tostring -> . RTSTRING PARENI PAREND
(130) tolowercase -> . RLC PARENI PAREND
(131) touppercase -> . RUC PARENI PAREND
(133) split -> . RSPLIT PARENI expresion PAREND
(134) concat -> . RCONCAT PARENI listaExpresiones PAREND
(135) push -> . RPUSH PARENI expresion PAREND
(132) length -> . RLENGTH PARENI PAREND
NOT shift and go to state 19
MENOS shift and go to state 18
PARENI shift and go to state 17
RTRUE shift and go to state 21
RFALSE shift and go to state 22
RNULL shift and go to state 23
ENTERO shift and go to state 24