-
Notifications
You must be signed in to change notification settings - Fork 0
/
parser.out
5524 lines (4155 loc) · 217 KB
/
parser.out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Created by PLY version 3.11 (http://www.dabeaz.com/ply)
Unused terminals:
AS
ASYNC
AWAIT
BREAK
B_FALSE
B_TRUE
CONST
CONTIN
CRATE
DOLLAR
DOTDOTDOT
DYN
ENUM
ERRORPROP
EXTERN
IMPL
LESSEQ
LOOP
MATCH
MAYOR
MAYORIGUAL
MOD
MOVE
NOT
NUMBER
OR
REF
SELF
SELFLOWERCASE
STATIC
SUPER
TRAIT
TYPE
UNSAFE
USE
WHERE
Grammar
Rule 0 S' -> rust
Rule 1 op_mat -> ope_u8
Rule 2 op_mat -> ope_f32
Rule 3 op_mat -> ope_i8
Rule 4 rust -> asignacion
Rule 5 rust -> asignacion_sintipo
Rule 6 rust -> prints
Rule 7 rust -> hashfunc
Rule 8 rust -> conditional
Rule 9 rust -> conditional_asigned
Rule 10 rust -> for_loop
Rule 11 rust -> struct_s
Rule 12 rust -> while_loop
Rule 13 rust -> empty_vector
Rule 14 rust -> vector_methods
Rule 15 rust -> data_vector
Rule 16 rust -> slice_get
Rule 17 rust -> slice_contains
Rule 18 rust -> read_data
Rule 19 rust -> function
Rule 20 ope_u8 -> U8 signo_arit U8
Rule 21 ope_u8 -> U8 signo_arit VARIABLE
Rule 22 ope_u8 -> VARIABLE signo_arit U8
Rule 23 ope_u8 -> U8 signo_arit ope_u8
Rule 24 ope_u8 -> VARIABLE signo_arit ope_u8
Rule 25 ope_f32 -> F32 signo_arit F32
Rule 26 ope_f32 -> F32 signo_arit VARIABLE
Rule 27 ope_f32 -> VARIABLE signo_arit F32
Rule 28 ope_f32 -> F32 signo_arit ope_f32
Rule 29 ope_f32 -> VARIABLE signo_arit ope_f32
Rule 30 ope_i8 -> I8 signo_arit I8
Rule 31 ope_i8 -> I8 signo_arit VARIABLE
Rule 32 ope_i8 -> VARIABLE signo_arit I8
Rule 33 ope_i8 -> I8 signo_arit ope_i8
Rule 34 ope_i8 -> VARIABLE signo_arit ope_i8
Rule 35 asignacion -> declarador ASIGNAR expresion ENDLINE
Rule 36 asignacion -> other_operators ENDLINE
Rule 37 asignacion -> op_mat ENDLINE
Rule 38 asignacion_sintipo -> declarador_sintipo ASIGNAR expresion_sintipo ENDLINE
Rule 39 other_operators -> VARIABLE oper_asig expresion_sintipo
Rule 40 declarador -> VARIABLE
Rule 41 declarador -> let_asig
Rule 42 declarador_sintipo -> VARIABLE
Rule 43 declarador_sintipo -> let_asig_sintipo
Rule 44 let_asig -> LET var_tipo
Rule 45 let_asig -> LET MUT var_tipo
Rule 46 let_asig_sintipo -> LET MUT VARIABLE
Rule 47 let_asig_sintipo -> LET VARIABLE
Rule 48 var_tipo -> VARIABLE
Rule 49 var_tipo -> VARIABLE ASIGNATION_TYPE tipos
Rule 50 oper_asig -> ASIGNAR
Rule 51 oper_asig -> PLUSEQ
Rule 52 oper_asig -> MINUSEQ
Rule 53 oper_asig -> STAREQ
Rule 54 oper_asig -> SLASHEQ
Rule 55 prints -> PRINTS empty LPAREN print_expresion RPAREN empty ENDLINE
Rule 56 print_expresion -> STRING
Rule 57 print_expresion -> STRING COMMA print_args
Rule 58 print_args -> print_datos COMMA print_args
Rule 59 print_args -> print_datos
Rule 60 print_datos -> expresion
Rule 61 hashset -> HASHSET empty PATHSEP empty NEWFUNC
Rule 62 hashfunc -> hashset_insert
Rule 63 hashfunc -> hashset_union
Rule 64 hashset_insert -> VARIABLE empty DOT empty INSERT_HASH empty LPAREN expresion RPAREN empty ENDLINE
Rule 65 hashset_union -> VARIABLE empty DOT empty UNION_HASH empty LPAREN AND empty VARIABLE RPAREN empty ENDLINE
Rule 66 conditional_asigned -> declarador ASIGNAR conditional ENDLINE
Rule 67 conditional -> if_type validations LLAVEIZ rust LLAVEDER
Rule 68 if_type -> IF
Rule 69 if_type -> ELSE IF
Rule 70 if_type -> ELSE
Rule 71 validations -> comparison
Rule 72 validations -> comparison ANDAND validations
Rule 73 validations -> comparison OROR validations
Rule 74 comparison -> VARIABLE signo_comp VARIABLE
Rule 75 comparison -> VARIABLE signo_comp U8
Rule 76 comparison -> U8 signo_comp VARIABLE
Rule 77 signo_comp -> GREATER
Rule 78 signo_comp -> LESST
Rule 79 signo_comp -> GREATEQ
Rule 80 signo_comp -> EQUAL
Rule 81 signo_comp -> DIFFERENT
Rule 82 f_comparacion -> rango
Rule 83 f_comparacion -> VARIABLE
Rule 84 for_loop -> FOR VARIABLE IN f_comparacion LLAVEIZ rust LLAVEDER
Rule 85 struct_s -> STRUCT sent_stru
Rule 86 argumentos_juntos -> VARIABLE ASIGNATION_TYPE tipos
Rule 87 argumentos_juntos -> VARIABLE ASIGNATION_TYPE tipos COMMA argumentos_juntos
Rule 88 argumentos_juntos -> PUB VARIABLE ASIGNATION_TYPE tipos COMMA argumentos_juntos
Rule 89 argumentos_tipo -> tipos
Rule 90 argumentos_tipo -> tipos COMMA argumentos_tipo
Rule 91 sent_stru -> UNIT ENDLINE
Rule 92 sent_stru -> TUPLE LPAREN argumentos_tipo RPAREN ENDLINE
Rule 93 sent_stru -> VARIABLE LLAVEIZ argumentos_juntos LLAVEDER
Rule 94 signo_arit -> MAS
Rule 95 signo_arit -> MENOS
Rule 96 signo_arit -> MULT
Rule 97 signo_arit -> DIVISION
Rule 98 signo_arit -> MODULO
Rule 99 rango -> U8 DOT DOT U8
Rule 100 slice_exp -> AND empty VARIABLE empty BRACKETL rango BRACKETR
Rule 101 slice_get -> VARIABLE empty DOT empty GET_SLICE empty LPAREN valor_get RPAREN
Rule 102 valor_get -> rango
Rule 103 valor_get -> U8
Rule 104 slice_contains -> VARIABLE empty DOT empty CONTAINS_SLICE empty LPAREN AND U8 RPAREN
Rule 105 empty -> <empty>
Rule 106 while_loop -> WHILE validations LLAVEIZ rust LLAVEDER
Rule 107 read_data -> IO empty PATHSEP empty STDIN LPAREN RPAREN empty DOT empty READ LPAREN reference RPAREN ENDLINE
Rule 108 reference -> AND empty MUT VARIABLE
Rule 109 function -> no_return_function
Rule 110 function -> return_function
Rule 111 return_function -> FUNCTION VARIABLE LPAREN arguments RPAREN ARROW tipos LLAVEIZ rust return LLAVEDER
Rule 112 return_function -> FUNCTION VARIABLE LPAREN RPAREN ARROW tipos LLAVEIZ rust return LLAVEDER
Rule 113 return_function -> FUNCTION VARIABLE LPAREN RPAREN ARROW tipos LLAVEIZ return LLAVEDER
Rule 114 no_return_function -> FUNCTION VARIABLE LPAREN arguments RPAREN LLAVEIZ rust LLAVEDER
Rule 115 no_return_function -> FUNCTION VARIABLE LPAREN RPAREN LLAVEIZ rust LLAVEDER
Rule 116 arguments -> VARIABLE ASIGNATION_TYPE tipos
Rule 117 arguments -> VARIABLE ASIGNATION_TYPE tipos COMMA arguments
Rule 118 return -> RETURN expresion ENDLINE
Rule 119 return -> expresion
Rule 120 empty_vector -> declare_vector types_vector empty_vec
Rule 121 data_vector -> declare_vector types_vector vector_content
Rule 122 data_vector -> declare_vector ASIGNAR VECTMACRO BRACKETL element_type COMMA vector_elements BRACKETR ENDLINE
Rule 123 vector_content -> ASIGNAR VECTMACRO vect_list ENDLINE
Rule 124 vector_content -> ASIGNAR VECT PATHSEP FROM LPAREN vect_list RPAREN ENDLINE
Rule 125 vect_list -> BRACKETL vector_elements BRACKETR
Rule 126 vector_elements -> expresion
Rule 127 vector_elements -> expresion COMMA vector_elements
Rule 128 element_type -> U8 empty NUMDATATYPES
Rule 129 types_vector -> VECT empty LESST DATATYPES GREATER
Rule 130 types_vector -> VECT empty LESST NUMDATATYPES GREATER
Rule 131 declare_vector -> LET MUT VARIABLE ASIGNATION_TYPE
Rule 132 declare_vector -> LET VARIABLE ASIGNATION_TYPE
Rule 133 empty_vec -> ASIGNAR VECT PATHSEP NEWFUNC ENDLINE
Rule 134 empty_vec -> ASIGNAR VECTMACRO BRACKETL BRACKETR ENDLINE
Rule 135 empty_vec -> ASIGNAR VECT PATHSEP FROM LPAREN RPAREN ENDLINE
Rule 136 vector_methods -> VARIABLE empty DOT empty PUSH_VEC LPAREN expresion RPAREN
Rule 137 vector_methods -> VARIABLE empty DOT empty POP_VEC LPAREN RPAREN
Rule 138 tipos -> DATATYPES
Rule 139 tipos -> NUMDATATYPES
Rule 140 expresion -> STRING
Rule 141 expresion -> U8
Rule 142 expresion -> F32
Rule 143 expresion -> VARIABLE
Rule 144 expresion -> op_mat
Rule 145 expresion_sintipo -> hashset
Rule 146 expresion_sintipo -> slice_exp
Rule 147 expresion_sintipo -> expresion
Terminals, with rules where they appear
AND : 65 100 104 108
ANDAND : 72
ARROW : 111 112 113
AS :
ASIGNAR : 35 38 50 66 122 123 124 133 134 135
ASIGNATION_TYPE : 49 86 87 88 116 117 131 132
ASYNC :
AWAIT :
BRACKETL : 100 122 125 134
BRACKETR : 100 122 125 134
BREAK :
B_FALSE :
B_TRUE :
COMMA : 57 58 87 88 90 117 122 127
CONST :
CONTAINS_SLICE : 104
CONTIN :
CRATE :
DATATYPES : 129 138
DIFFERENT : 81
DIVISION : 97
DOLLAR :
DOT : 64 65 99 99 101 104 107 136 137
DOTDOTDOT :
DYN :
ELSE : 69 70
ENDLINE : 35 36 37 38 55 64 65 66 91 92 107 118 122 123 124 133 134 135
ENUM :
EQUAL : 80
ERRORPROP :
EXTERN :
F32 : 25 25 26 27 28 142
FOR : 84
FROM : 124 135
FUNCTION : 111 112 113 114 115
GET_SLICE : 101
GREATEQ : 79
GREATER : 77 129 130
HASHSET : 61
I8 : 30 30 31 32 33
IF : 68 69
IMPL :
IN : 84
INSERT_HASH : 64
IO : 107
LESSEQ :
LESST : 78 129 130
LET : 44 45 46 47 131 132
LLAVEDER : 67 84 93 106 111 112 113 114 115
LLAVEIZ : 67 84 93 106 111 112 113 114 115
LOOP :
LPAREN : 55 64 65 92 101 104 107 107 111 112 113 114 115 124 135 136 137
MAS : 94
MATCH :
MAYOR :
MAYORIGUAL :
MENOS : 95
MINUSEQ : 52
MOD :
MODULO : 98
MOVE :
MULT : 96
MUT : 45 46 108 131
NEWFUNC : 61 133
NOT :
NUMBER :
NUMDATATYPES : 128 130 139
OR :
OROR : 73
PATHSEP : 61 107 124 133 135
PLUSEQ : 51
POP_VEC : 137
PRINTS : 55
PUB : 88
PUSH_VEC : 136
READ : 107
REF :
RETURN : 118
RPAREN : 55 64 65 92 101 104 107 107 111 112 113 114 115 124 135 136 137
SELF :
SELFLOWERCASE :
SLASHEQ : 54
STAREQ : 53
STATIC :
STDIN : 107
STRING : 56 57 140
STRUCT : 85
SUPER :
TRAIT :
TUPLE : 92
TYPE :
U8 : 20 20 21 22 23 75 76 99 99 103 104 128 141
UNION_HASH : 65
UNIT : 91
UNSAFE :
USE :
VARIABLE : 21 22 24 26 27 29 31 32 34 39 40 42 46 47 48 49 64 65 65 74 74 75 76 83 84 86 87 88 93 100 101 104 108 111 112 113 114 115 116 117 131 132 136 137 143
VECT : 124 129 130 133 135
VECTMACRO : 122 123 134
WHERE :
WHILE : 106
error :
Nonterminals, with rules where they appear
argumentos_juntos : 87 88 93
argumentos_tipo : 90 92
arguments : 111 114 117
asignacion : 4
asignacion_sintipo : 5
comparison : 71 72 73
conditional : 8 66
conditional_asigned : 9
data_vector : 15
declarador : 35 66
declarador_sintipo : 38
declare_vector : 120 121 122
element_type : 122
empty : 55 55 61 61 64 64 64 64 65 65 65 65 65 100 100 101 101 101 104 104 104 107 107 107 107 108 128 129 130 136 136 137 137
empty_vec : 120
empty_vector : 13
expresion : 35 60 64 118 119 126 127 136 147
expresion_sintipo : 38 39
f_comparacion : 84
for_loop : 10
function : 19
hashfunc : 7
hashset : 145
hashset_insert : 62
hashset_union : 63
if_type : 67
let_asig : 41
let_asig_sintipo : 43
no_return_function : 109
op_mat : 37 144
ope_f32 : 2 28 29
ope_i8 : 3 33 34
ope_u8 : 1 23 24
oper_asig : 39
other_operators : 36
print_args : 57 58
print_datos : 58 59
print_expresion : 55
prints : 6
rango : 82 100 102
read_data : 18
reference : 107
return : 111 112 113
return_function : 110
rust : 67 84 106 111 112 114 115 0
sent_stru : 85
signo_arit : 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
signo_comp : 74 75 76
slice_contains : 17
slice_exp : 146
slice_get : 16
struct_s : 11
tipos : 49 86 87 88 89 90 111 112 113 116 117
types_vector : 120 121
validations : 67 72 73 106
valor_get : 101
var_tipo : 44 45
vect_list : 123 124
vector_content : 121
vector_elements : 122 125 127
vector_methods : 14
while_loop : 12
Parsing method: LALR
state 0
(0) S' -> . rust
(4) rust -> . asignacion
(5) rust -> . asignacion_sintipo
(6) rust -> . prints
(7) rust -> . hashfunc
(8) rust -> . conditional
(9) rust -> . conditional_asigned
(10) rust -> . for_loop
(11) rust -> . struct_s
(12) rust -> . while_loop
(13) rust -> . empty_vector
(14) rust -> . vector_methods
(15) rust -> . data_vector
(16) rust -> . slice_get
(17) rust -> . slice_contains
(18) rust -> . read_data
(19) rust -> . function
(35) asignacion -> . declarador ASIGNAR expresion ENDLINE
(36) asignacion -> . other_operators ENDLINE
(37) asignacion -> . op_mat ENDLINE
(38) asignacion_sintipo -> . declarador_sintipo ASIGNAR expresion_sintipo ENDLINE
(55) prints -> . PRINTS empty LPAREN print_expresion RPAREN empty ENDLINE
(62) hashfunc -> . hashset_insert
(63) hashfunc -> . hashset_union
(67) conditional -> . if_type validations LLAVEIZ rust LLAVEDER
(66) conditional_asigned -> . declarador ASIGNAR conditional ENDLINE
(84) for_loop -> . FOR VARIABLE IN f_comparacion LLAVEIZ rust LLAVEDER
(85) struct_s -> . STRUCT sent_stru
(106) while_loop -> . WHILE validations LLAVEIZ rust LLAVEDER
(120) empty_vector -> . declare_vector types_vector empty_vec
(136) vector_methods -> . VARIABLE empty DOT empty PUSH_VEC LPAREN expresion RPAREN
(137) vector_methods -> . VARIABLE empty DOT empty POP_VEC LPAREN RPAREN
(121) data_vector -> . declare_vector types_vector vector_content
(122) data_vector -> . declare_vector ASIGNAR VECTMACRO BRACKETL element_type COMMA vector_elements BRACKETR ENDLINE
(101) slice_get -> . VARIABLE empty DOT empty GET_SLICE empty LPAREN valor_get RPAREN
(104) slice_contains -> . VARIABLE empty DOT empty CONTAINS_SLICE empty LPAREN AND U8 RPAREN
(107) read_data -> . IO empty PATHSEP empty STDIN LPAREN RPAREN empty DOT empty READ LPAREN reference RPAREN ENDLINE
(109) function -> . no_return_function
(110) function -> . return_function
(40) declarador -> . VARIABLE
(41) declarador -> . let_asig
(39) other_operators -> . VARIABLE oper_asig expresion_sintipo
(1) op_mat -> . ope_u8
(2) op_mat -> . ope_f32
(3) op_mat -> . ope_i8
(42) declarador_sintipo -> . VARIABLE
(43) declarador_sintipo -> . let_asig_sintipo
(64) hashset_insert -> . VARIABLE empty DOT empty INSERT_HASH empty LPAREN expresion RPAREN empty ENDLINE
(65) hashset_union -> . VARIABLE empty DOT empty UNION_HASH empty LPAREN AND empty VARIABLE RPAREN empty ENDLINE
(68) if_type -> . IF
(69) if_type -> . ELSE IF
(70) if_type -> . ELSE
(131) declare_vector -> . LET MUT VARIABLE ASIGNATION_TYPE
(132) declare_vector -> . LET VARIABLE ASIGNATION_TYPE
(114) no_return_function -> . FUNCTION VARIABLE LPAREN arguments RPAREN LLAVEIZ rust LLAVEDER
(115) no_return_function -> . FUNCTION VARIABLE LPAREN RPAREN LLAVEIZ rust LLAVEDER
(111) return_function -> . FUNCTION VARIABLE LPAREN arguments RPAREN ARROW tipos LLAVEIZ rust return LLAVEDER
(112) return_function -> . FUNCTION VARIABLE LPAREN RPAREN ARROW tipos LLAVEIZ rust return LLAVEDER
(113) return_function -> . FUNCTION VARIABLE LPAREN RPAREN ARROW tipos LLAVEIZ return LLAVEDER
(44) let_asig -> . LET var_tipo
(45) let_asig -> . LET MUT var_tipo
(20) ope_u8 -> . U8 signo_arit U8
(21) ope_u8 -> . U8 signo_arit VARIABLE
(22) ope_u8 -> . VARIABLE signo_arit U8
(23) ope_u8 -> . U8 signo_arit ope_u8
(24) ope_u8 -> . VARIABLE signo_arit ope_u8
(25) ope_f32 -> . F32 signo_arit F32
(26) ope_f32 -> . F32 signo_arit VARIABLE
(27) ope_f32 -> . VARIABLE signo_arit F32
(28) ope_f32 -> . F32 signo_arit ope_f32
(29) ope_f32 -> . VARIABLE signo_arit ope_f32
(30) ope_i8 -> . I8 signo_arit I8
(31) ope_i8 -> . I8 signo_arit VARIABLE
(32) ope_i8 -> . VARIABLE signo_arit I8
(33) ope_i8 -> . I8 signo_arit ope_i8
(34) ope_i8 -> . VARIABLE signo_arit ope_i8
(46) let_asig_sintipo -> . LET MUT VARIABLE
(47) let_asig_sintipo -> . LET VARIABLE
PRINTS shift and go to state 22
FOR shift and go to state 26
STRUCT shift and go to state 28
WHILE shift and go to state 29
VARIABLE shift and go to state 27
IO shift and go to state 32
IF shift and go to state 40
ELSE shift and go to state 41
LET shift and go to state 42
FUNCTION shift and go to state 43
U8 shift and go to state 31
F32 shift and go to state 44
I8 shift and go to state 45
rust shift and go to state 1
asignacion shift and go to state 2
asignacion_sintipo shift and go to state 3
prints shift and go to state 4
hashfunc shift and go to state 5
conditional shift and go to state 6
conditional_asigned shift and go to state 7
for_loop shift and go to state 8
struct_s shift and go to state 9
while_loop shift and go to state 10
empty_vector shift and go to state 11
vector_methods shift and go to state 12
data_vector shift and go to state 13
slice_get shift and go to state 14
slice_contains shift and go to state 15
read_data shift and go to state 16
function shift and go to state 17
declarador shift and go to state 18
other_operators shift and go to state 19
op_mat shift and go to state 20
declarador_sintipo shift and go to state 21
hashset_insert shift and go to state 23
hashset_union shift and go to state 24
if_type shift and go to state 25
declare_vector shift and go to state 30
no_return_function shift and go to state 33
return_function shift and go to state 34
let_asig shift and go to state 35
ope_u8 shift and go to state 36
ope_f32 shift and go to state 37
ope_i8 shift and go to state 38
let_asig_sintipo shift and go to state 39
state 1
(0) S' -> rust .
state 2
(4) rust -> asignacion .
$end reduce using rule 4 (rust -> asignacion .)
LLAVEDER reduce using rule 4 (rust -> asignacion .)
RETURN reduce using rule 4 (rust -> asignacion .)
STRING reduce using rule 4 (rust -> asignacion .)
U8 reduce using rule 4 (rust -> asignacion .)
F32 reduce using rule 4 (rust -> asignacion .)
VARIABLE reduce using rule 4 (rust -> asignacion .)
I8 reduce using rule 4 (rust -> asignacion .)
state 3
(5) rust -> asignacion_sintipo .
$end reduce using rule 5 (rust -> asignacion_sintipo .)
LLAVEDER reduce using rule 5 (rust -> asignacion_sintipo .)
RETURN reduce using rule 5 (rust -> asignacion_sintipo .)
STRING reduce using rule 5 (rust -> asignacion_sintipo .)
U8 reduce using rule 5 (rust -> asignacion_sintipo .)
F32 reduce using rule 5 (rust -> asignacion_sintipo .)
VARIABLE reduce using rule 5 (rust -> asignacion_sintipo .)
I8 reduce using rule 5 (rust -> asignacion_sintipo .)
state 4
(6) rust -> prints .
$end reduce using rule 6 (rust -> prints .)
LLAVEDER reduce using rule 6 (rust -> prints .)
RETURN reduce using rule 6 (rust -> prints .)
STRING reduce using rule 6 (rust -> prints .)
U8 reduce using rule 6 (rust -> prints .)
F32 reduce using rule 6 (rust -> prints .)
VARIABLE reduce using rule 6 (rust -> prints .)
I8 reduce using rule 6 (rust -> prints .)
state 5
(7) rust -> hashfunc .
$end reduce using rule 7 (rust -> hashfunc .)
LLAVEDER reduce using rule 7 (rust -> hashfunc .)
RETURN reduce using rule 7 (rust -> hashfunc .)
STRING reduce using rule 7 (rust -> hashfunc .)
U8 reduce using rule 7 (rust -> hashfunc .)
F32 reduce using rule 7 (rust -> hashfunc .)
VARIABLE reduce using rule 7 (rust -> hashfunc .)
I8 reduce using rule 7 (rust -> hashfunc .)
state 6
(8) rust -> conditional .
$end reduce using rule 8 (rust -> conditional .)
LLAVEDER reduce using rule 8 (rust -> conditional .)
RETURN reduce using rule 8 (rust -> conditional .)
STRING reduce using rule 8 (rust -> conditional .)
U8 reduce using rule 8 (rust -> conditional .)
F32 reduce using rule 8 (rust -> conditional .)
VARIABLE reduce using rule 8 (rust -> conditional .)
I8 reduce using rule 8 (rust -> conditional .)
state 7
(9) rust -> conditional_asigned .
$end reduce using rule 9 (rust -> conditional_asigned .)
LLAVEDER reduce using rule 9 (rust -> conditional_asigned .)
RETURN reduce using rule 9 (rust -> conditional_asigned .)
STRING reduce using rule 9 (rust -> conditional_asigned .)
U8 reduce using rule 9 (rust -> conditional_asigned .)
F32 reduce using rule 9 (rust -> conditional_asigned .)
VARIABLE reduce using rule 9 (rust -> conditional_asigned .)
I8 reduce using rule 9 (rust -> conditional_asigned .)
state 8
(10) rust -> for_loop .
$end reduce using rule 10 (rust -> for_loop .)
LLAVEDER reduce using rule 10 (rust -> for_loop .)
RETURN reduce using rule 10 (rust -> for_loop .)
STRING reduce using rule 10 (rust -> for_loop .)
U8 reduce using rule 10 (rust -> for_loop .)
F32 reduce using rule 10 (rust -> for_loop .)
VARIABLE reduce using rule 10 (rust -> for_loop .)
I8 reduce using rule 10 (rust -> for_loop .)
state 9
(11) rust -> struct_s .
$end reduce using rule 11 (rust -> struct_s .)
LLAVEDER reduce using rule 11 (rust -> struct_s .)
RETURN reduce using rule 11 (rust -> struct_s .)
STRING reduce using rule 11 (rust -> struct_s .)
U8 reduce using rule 11 (rust -> struct_s .)
F32 reduce using rule 11 (rust -> struct_s .)
VARIABLE reduce using rule 11 (rust -> struct_s .)
I8 reduce using rule 11 (rust -> struct_s .)
state 10
(12) rust -> while_loop .
$end reduce using rule 12 (rust -> while_loop .)
LLAVEDER reduce using rule 12 (rust -> while_loop .)
RETURN reduce using rule 12 (rust -> while_loop .)
STRING reduce using rule 12 (rust -> while_loop .)
U8 reduce using rule 12 (rust -> while_loop .)
F32 reduce using rule 12 (rust -> while_loop .)
VARIABLE reduce using rule 12 (rust -> while_loop .)
I8 reduce using rule 12 (rust -> while_loop .)
state 11
(13) rust -> empty_vector .
$end reduce using rule 13 (rust -> empty_vector .)
LLAVEDER reduce using rule 13 (rust -> empty_vector .)
RETURN reduce using rule 13 (rust -> empty_vector .)
STRING reduce using rule 13 (rust -> empty_vector .)
U8 reduce using rule 13 (rust -> empty_vector .)
F32 reduce using rule 13 (rust -> empty_vector .)
VARIABLE reduce using rule 13 (rust -> empty_vector .)
I8 reduce using rule 13 (rust -> empty_vector .)
state 12
(14) rust -> vector_methods .
$end reduce using rule 14 (rust -> vector_methods .)
LLAVEDER reduce using rule 14 (rust -> vector_methods .)
RETURN reduce using rule 14 (rust -> vector_methods .)
STRING reduce using rule 14 (rust -> vector_methods .)
U8 reduce using rule 14 (rust -> vector_methods .)
F32 reduce using rule 14 (rust -> vector_methods .)
VARIABLE reduce using rule 14 (rust -> vector_methods .)
I8 reduce using rule 14 (rust -> vector_methods .)
state 13
(15) rust -> data_vector .
$end reduce using rule 15 (rust -> data_vector .)
LLAVEDER reduce using rule 15 (rust -> data_vector .)
RETURN reduce using rule 15 (rust -> data_vector .)
STRING reduce using rule 15 (rust -> data_vector .)
U8 reduce using rule 15 (rust -> data_vector .)
F32 reduce using rule 15 (rust -> data_vector .)
VARIABLE reduce using rule 15 (rust -> data_vector .)
I8 reduce using rule 15 (rust -> data_vector .)
state 14
(16) rust -> slice_get .
$end reduce using rule 16 (rust -> slice_get .)
LLAVEDER reduce using rule 16 (rust -> slice_get .)
RETURN reduce using rule 16 (rust -> slice_get .)
STRING reduce using rule 16 (rust -> slice_get .)
U8 reduce using rule 16 (rust -> slice_get .)
F32 reduce using rule 16 (rust -> slice_get .)
VARIABLE reduce using rule 16 (rust -> slice_get .)
I8 reduce using rule 16 (rust -> slice_get .)
state 15
(17) rust -> slice_contains .
$end reduce using rule 17 (rust -> slice_contains .)
LLAVEDER reduce using rule 17 (rust -> slice_contains .)
RETURN reduce using rule 17 (rust -> slice_contains .)
STRING reduce using rule 17 (rust -> slice_contains .)
U8 reduce using rule 17 (rust -> slice_contains .)
F32 reduce using rule 17 (rust -> slice_contains .)
VARIABLE reduce using rule 17 (rust -> slice_contains .)
I8 reduce using rule 17 (rust -> slice_contains .)
state 16
(18) rust -> read_data .
$end reduce using rule 18 (rust -> read_data .)
LLAVEDER reduce using rule 18 (rust -> read_data .)
RETURN reduce using rule 18 (rust -> read_data .)
STRING reduce using rule 18 (rust -> read_data .)
U8 reduce using rule 18 (rust -> read_data .)
F32 reduce using rule 18 (rust -> read_data .)
VARIABLE reduce using rule 18 (rust -> read_data .)
I8 reduce using rule 18 (rust -> read_data .)
state 17
(19) rust -> function .
$end reduce using rule 19 (rust -> function .)
LLAVEDER reduce using rule 19 (rust -> function .)
RETURN reduce using rule 19 (rust -> function .)
STRING reduce using rule 19 (rust -> function .)
U8 reduce using rule 19 (rust -> function .)
F32 reduce using rule 19 (rust -> function .)
VARIABLE reduce using rule 19 (rust -> function .)
I8 reduce using rule 19 (rust -> function .)
state 18
(35) asignacion -> declarador . ASIGNAR expresion ENDLINE
(66) conditional_asigned -> declarador . ASIGNAR conditional ENDLINE
ASIGNAR shift and go to state 46
state 19
(36) asignacion -> other_operators . ENDLINE
ENDLINE shift and go to state 47
state 20
(37) asignacion -> op_mat . ENDLINE
ENDLINE shift and go to state 48
state 21
(38) asignacion_sintipo -> declarador_sintipo . ASIGNAR expresion_sintipo ENDLINE
ASIGNAR shift and go to state 49
state 22
(55) prints -> PRINTS . empty LPAREN print_expresion RPAREN empty ENDLINE
(105) empty -> .
LPAREN reduce using rule 105 (empty -> .)
empty shift and go to state 50
state 23
(62) hashfunc -> hashset_insert .
$end reduce using rule 62 (hashfunc -> hashset_insert .)
LLAVEDER reduce using rule 62 (hashfunc -> hashset_insert .)
RETURN reduce using rule 62 (hashfunc -> hashset_insert .)
STRING reduce using rule 62 (hashfunc -> hashset_insert .)
U8 reduce using rule 62 (hashfunc -> hashset_insert .)
F32 reduce using rule 62 (hashfunc -> hashset_insert .)
VARIABLE reduce using rule 62 (hashfunc -> hashset_insert .)
I8 reduce using rule 62 (hashfunc -> hashset_insert .)
state 24
(63) hashfunc -> hashset_union .
$end reduce using rule 63 (hashfunc -> hashset_union .)
LLAVEDER reduce using rule 63 (hashfunc -> hashset_union .)
RETURN reduce using rule 63 (hashfunc -> hashset_union .)
STRING reduce using rule 63 (hashfunc -> hashset_union .)
U8 reduce using rule 63 (hashfunc -> hashset_union .)
F32 reduce using rule 63 (hashfunc -> hashset_union .)
VARIABLE reduce using rule 63 (hashfunc -> hashset_union .)
I8 reduce using rule 63 (hashfunc -> hashset_union .)
state 25
(67) conditional -> if_type . validations LLAVEIZ rust LLAVEDER
(71) validations -> . comparison
(72) validations -> . comparison ANDAND validations
(73) validations -> . comparison OROR validations
(74) comparison -> . VARIABLE signo_comp VARIABLE
(75) comparison -> . VARIABLE signo_comp U8
(76) comparison -> . U8 signo_comp VARIABLE
VARIABLE shift and go to state 53
U8 shift and go to state 54
validations shift and go to state 51
comparison shift and go to state 52
state 26
(84) for_loop -> FOR . VARIABLE IN f_comparacion LLAVEIZ rust LLAVEDER
VARIABLE shift and go to state 55
state 27
(136) vector_methods -> VARIABLE . empty DOT empty PUSH_VEC LPAREN expresion RPAREN
(137) vector_methods -> VARIABLE . empty DOT empty POP_VEC LPAREN RPAREN
(101) slice_get -> VARIABLE . empty DOT empty GET_SLICE empty LPAREN valor_get RPAREN
(104) slice_contains -> VARIABLE . empty DOT empty CONTAINS_SLICE empty LPAREN AND U8 RPAREN
(40) declarador -> VARIABLE .
(39) other_operators -> VARIABLE . oper_asig expresion_sintipo
(42) declarador_sintipo -> VARIABLE .
(64) hashset_insert -> VARIABLE . empty DOT empty INSERT_HASH empty LPAREN expresion RPAREN empty ENDLINE
(65) hashset_union -> VARIABLE . empty DOT empty UNION_HASH empty LPAREN AND empty VARIABLE RPAREN empty ENDLINE
(22) ope_u8 -> VARIABLE . signo_arit U8
(24) ope_u8 -> VARIABLE . signo_arit ope_u8
(27) ope_f32 -> VARIABLE . signo_arit F32
(29) ope_f32 -> VARIABLE . signo_arit ope_f32
(32) ope_i8 -> VARIABLE . signo_arit I8
(34) ope_i8 -> VARIABLE . signo_arit ope_i8
(105) empty -> .
(50) oper_asig -> . ASIGNAR
(51) oper_asig -> . PLUSEQ
(52) oper_asig -> . MINUSEQ
(53) oper_asig -> . STAREQ
(54) oper_asig -> . SLASHEQ
(94) signo_arit -> . MAS
(95) signo_arit -> . MENOS
(96) signo_arit -> . MULT
(97) signo_arit -> . DIVISION
(98) signo_arit -> . MODULO
! reduce/reduce conflict for ASIGNAR resolved using rule 40 (declarador -> VARIABLE .)
! shift/reduce conflict for ASIGNAR resolved as shift
DOT reduce using rule 105 (empty -> .)
ASIGNAR shift and go to state 59
PLUSEQ shift and go to state 60
MINUSEQ shift and go to state 61
STAREQ shift and go to state 62
SLASHEQ shift and go to state 63
MAS shift and go to state 64
MENOS shift and go to state 65
MULT shift and go to state 66
DIVISION shift and go to state 67
MODULO shift and go to state 68
! ASIGNAR [ reduce using rule 40 (declarador -> VARIABLE .) ]
! ASIGNAR [ reduce using rule 42 (declarador_sintipo -> VARIABLE .) ]
empty shift and go to state 56
oper_asig shift and go to state 57
signo_arit shift and go to state 58
state 28
(85) struct_s -> STRUCT . sent_stru
(91) sent_stru -> . UNIT ENDLINE
(92) sent_stru -> . TUPLE LPAREN argumentos_tipo RPAREN ENDLINE
(93) sent_stru -> . VARIABLE LLAVEIZ argumentos_juntos LLAVEDER
UNIT shift and go to state 70
TUPLE shift and go to state 71
VARIABLE shift and go to state 72
sent_stru shift and go to state 69
state 29
(106) while_loop -> WHILE . validations LLAVEIZ rust LLAVEDER
(71) validations -> . comparison
(72) validations -> . comparison ANDAND validations
(73) validations -> . comparison OROR validations
(74) comparison -> . VARIABLE signo_comp VARIABLE
(75) comparison -> . VARIABLE signo_comp U8
(76) comparison -> . U8 signo_comp VARIABLE
VARIABLE shift and go to state 53
U8 shift and go to state 54
validations shift and go to state 73
comparison shift and go to state 52
state 30
(120) empty_vector -> declare_vector . types_vector empty_vec
(121) data_vector -> declare_vector . types_vector vector_content
(122) data_vector -> declare_vector . ASIGNAR VECTMACRO BRACKETL element_type COMMA vector_elements BRACKETR ENDLINE
(129) types_vector -> . VECT empty LESST DATATYPES GREATER
(130) types_vector -> . VECT empty LESST NUMDATATYPES GREATER
ASIGNAR shift and go to state 75
VECT shift and go to state 76
types_vector shift and go to state 74
state 31
(20) ope_u8 -> U8 . signo_arit U8
(21) ope_u8 -> U8 . signo_arit VARIABLE
(23) ope_u8 -> U8 . signo_arit ope_u8
(94) signo_arit -> . MAS
(95) signo_arit -> . MENOS
(96) signo_arit -> . MULT
(97) signo_arit -> . DIVISION
(98) signo_arit -> . MODULO
MAS shift and go to state 64
MENOS shift and go to state 65
MULT shift and go to state 66
DIVISION shift and go to state 67
MODULO shift and go to state 68
signo_arit shift and go to state 77
state 32
(107) read_data -> IO . empty PATHSEP empty STDIN LPAREN RPAREN empty DOT empty READ LPAREN reference RPAREN ENDLINE
(105) empty -> .
PATHSEP reduce using rule 105 (empty -> .)
empty shift and go to state 78
state 33
(109) function -> no_return_function .
$end reduce using rule 109 (function -> no_return_function .)
LLAVEDER reduce using rule 109 (function -> no_return_function .)
RETURN reduce using rule 109 (function -> no_return_function .)
STRING reduce using rule 109 (function -> no_return_function .)
U8 reduce using rule 109 (function -> no_return_function .)
F32 reduce using rule 109 (function -> no_return_function .)
VARIABLE reduce using rule 109 (function -> no_return_function .)
I8 reduce using rule 109 (function -> no_return_function .)
state 34
(110) function -> return_function .
$end reduce using rule 110 (function -> return_function .)
LLAVEDER reduce using rule 110 (function -> return_function .)
RETURN reduce using rule 110 (function -> return_function .)
STRING reduce using rule 110 (function -> return_function .)
U8 reduce using rule 110 (function -> return_function .)
F32 reduce using rule 110 (function -> return_function .)
VARIABLE reduce using rule 110 (function -> return_function .)
I8 reduce using rule 110 (function -> return_function .)
state 35
(41) declarador -> let_asig .
ASIGNAR reduce using rule 41 (declarador -> let_asig .)
state 36
(1) op_mat -> ope_u8 .
ENDLINE reduce using rule 1 (op_mat -> ope_u8 .)
COMMA reduce using rule 1 (op_mat -> ope_u8 .)
RPAREN reduce using rule 1 (op_mat -> ope_u8 .)
BRACKETR reduce using rule 1 (op_mat -> ope_u8 .)
LLAVEDER reduce using rule 1 (op_mat -> ope_u8 .)
state 37
(2) op_mat -> ope_f32 .
ENDLINE reduce using rule 2 (op_mat -> ope_f32 .)
COMMA reduce using rule 2 (op_mat -> ope_f32 .)
RPAREN reduce using rule 2 (op_mat -> ope_f32 .)
BRACKETR reduce using rule 2 (op_mat -> ope_f32 .)
LLAVEDER reduce using rule 2 (op_mat -> ope_f32 .)
state 38
(3) op_mat -> ope_i8 .
ENDLINE reduce using rule 3 (op_mat -> ope_i8 .)
COMMA reduce using rule 3 (op_mat -> ope_i8 .)
RPAREN reduce using rule 3 (op_mat -> ope_i8 .)
BRACKETR reduce using rule 3 (op_mat -> ope_i8 .)
LLAVEDER reduce using rule 3 (op_mat -> ope_i8 .)
state 39