-
Notifications
You must be signed in to change notification settings - Fork 0
/
parser.out
1921 lines (1626 loc) · 74.1 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
Grammar:
Rule 0 S' -> start
Rule 1 start -> func_def
Rule 2 start -> MODE seen_mode ID tree_body
Rule 3 seen_mode -> <empty>
Rule 4 func_def -> func_signature tree_body
Rule 5 func_signature -> MODE FUNC ID args RETURNS args
Rule 6 args -> ( args_list )
Rule 7 args_list -> empty
Rule 8 args_list -> name_typed COMMA args_list
Rule 9 args_list -> name_typed
Rule 10 tree_body -> { statements }
Rule 11 statements -> statement
Rule 12 statements -> statement statements
Rule 13 statement -> COMMENT
Rule 14 statement -> expr
Rule 15 statement -> assignment
Rule 16 statement -> declaration
Rule 17 declaration -> LET name_typed EQUALS expr
Rule 18 declaration -> LET ID EQUALS expr
Rule 19 assignment -> ID EQUALS expr
Rule 20 expr -> - expr [precedence=right, level=3]
Rule 21 expr -> ( expr )
Rule 22 expr -> expr @ expr [precedence=left, level=2]
Rule 23 expr -> expr / expr [precedence=left, level=2]
Rule 24 expr -> expr * expr [precedence=left, level=2]
Rule 25 expr -> expr - expr [precedence=left, level=1]
Rule 26 expr -> expr + expr [precedence=left, level=1]
Rule 27 expr -> cast_expr
Rule 28 expr -> accessor_expr
Rule 29 expr -> node_expr
Rule 30 expr -> vector_literal
Rule 31 expr -> BOOL
Rule 32 expr -> STRING
Rule 33 expr -> NUMBER
Rule 34 expr -> TYPE
Rule 35 expr -> ID
Rule 36 vector_literal -> [ NUMBER COMMA NUMBER COMMA NUMBER ]
Rule 37 node_expr -> expr ( params_list )
Rule 38 accessor_expr -> expr DOT ID
Rule 39 cast_expr -> expr AS TYPE
Rule 40 params_list -> named_params_list
Rule 41 params_list -> pos COMMA named_params_list
Rule 42 params_list -> pos COMMA params_list
Rule 43 params_list -> pos
Rule 44 params_list -> empty
Rule 45 named_params_list -> named COMMA named_params_list
Rule 46 named_params_list -> named
Rule 47 named -> ID COLON expr
Rule 48 pos -> expr
Rule 49 name_typed -> ID COLON TYPE
Rule 50 empty -> <empty>
Unused terminals:
POW
Terminals, with rules where they appear:
( : 6 21 37
) : 6 21 37
* : 24
+ : 26
- : 20 25
/ : 23
@ : 22
AS : 39
BOOL : 31
COLON : 47 49
COMMA : 8 36 36 41 42 45
COMMENT : 13
DOT : 38
EQUALS : 17 18 19
FUNC : 5
ID : 2 5 18 19 35 38 47 49
LET : 17 18
MODE : 2 5
NUMBER : 33 36 36 36
POW :
RETURNS : 5
STRING : 32
TYPE : 34 39 49
[ : 36
] : 36
error :
{ : 10
} : 10
Nonterminals, with rules where they appear:
accessor_expr : 28
args : 5 5
args_list : 6 8
assignment : 15
cast_expr : 27
declaration : 16
empty : 7 44
expr : 14 17 18 19 20 21 22 22 23 23 24 24 25 25 26 26 37 38 39 47 48
func_def : 1
func_signature : 4
name_typed : 8 9 17
named : 45 46
named_params_list : 40 41 45
node_expr : 29
params_list : 37 42
pos : 41 42 43
seen_mode : 2
start : 0
statement : 11 12
statements : 10 12
tree_body : 2 4
vector_literal : 30
state 0
(0) S' -> . start
(1) start -> . func_def
(2) start -> . MODE seen_mode ID tree_body
(4) func_def -> . func_signature tree_body
(5) func_signature -> . MODE FUNC ID args RETURNS args
MODE shift and go to state 3
start shift and go to state 1
func_def shift and go to state 2
func_signature shift and go to state 4
state 1
(0) S' -> start .
state 2
(1) start -> func_def .
$end reduce using rule 1 (start -> func_def .)
state 3
(2) start -> MODE . seen_mode ID tree_body
(5) func_signature -> MODE . FUNC ID args RETURNS args
(3) seen_mode -> .
FUNC shift and go to state 6
ID reduce using rule 3 (seen_mode -> .)
seen_mode shift and go to state 5
state 4
(4) func_def -> func_signature . tree_body
(10) tree_body -> . { statements }
{ shift and go to state 8
tree_body shift and go to state 7
state 5
(2) start -> MODE seen_mode . ID tree_body
ID shift and go to state 9
state 6
(5) func_signature -> MODE FUNC . ID args RETURNS args
ID shift and go to state 10
state 7
(4) func_def -> func_signature tree_body .
$end reduce using rule 4 (func_def -> func_signature tree_body .)
state 8
(10) tree_body -> { . statements }
(11) statements -> . statement
(12) statements -> . statement statements
(13) statement -> . COMMENT
(14) statement -> . expr
(15) statement -> . assignment
(16) statement -> . declaration
(20) expr -> . - expr
(21) expr -> . ( expr )
(22) expr -> . expr @ expr
(23) expr -> . expr / expr
(24) expr -> . expr * expr
(25) expr -> . expr - expr
(26) expr -> . expr + expr
(27) expr -> . cast_expr
(28) expr -> . accessor_expr
(29) expr -> . node_expr
(30) expr -> . vector_literal
(31) expr -> . BOOL
(32) expr -> . STRING
(33) expr -> . NUMBER
(34) expr -> . TYPE
(35) expr -> . ID
(19) assignment -> . ID EQUALS expr
(17) declaration -> . LET name_typed EQUALS expr
(18) declaration -> . LET ID EQUALS expr
(39) cast_expr -> . expr AS TYPE
(38) accessor_expr -> . expr DOT ID
(37) node_expr -> . expr ( params_list )
(36) vector_literal -> . [ NUMBER COMMA NUMBER COMMA NUMBER ]
COMMENT shift and go to state 13
- shift and go to state 17
( shift and go to state 18
BOOL shift and go to state 23
STRING shift and go to state 24
NUMBER shift and go to state 25
TYPE shift and go to state 26
ID shift and go to state 27
LET shift and go to state 28
[ shift and go to state 29
statements shift and go to state 11
statement shift and go to state 12
expr shift and go to state 14
assignment shift and go to state 15
declaration shift and go to state 16
cast_expr shift and go to state 19
accessor_expr shift and go to state 20
node_expr shift and go to state 21
vector_literal shift and go to state 22
state 9
(2) start -> MODE seen_mode ID . tree_body
(10) tree_body -> . { statements }
{ shift and go to state 8
tree_body shift and go to state 30
state 10
(5) func_signature -> MODE FUNC ID . args RETURNS args
(6) args -> . ( args_list )
( shift and go to state 32
args shift and go to state 31
state 11
(10) tree_body -> { statements . }
} shift and go to state 33
state 12
(11) statements -> statement .
(12) statements -> statement . statements
(11) statements -> . statement
(12) statements -> . statement statements
(13) statement -> . COMMENT
(14) statement -> . expr
(15) statement -> . assignment
(16) statement -> . declaration
(20) expr -> . - expr
(21) expr -> . ( expr )
(22) expr -> . expr @ expr
(23) expr -> . expr / expr
(24) expr -> . expr * expr
(25) expr -> . expr - expr
(26) expr -> . expr + expr
(27) expr -> . cast_expr
(28) expr -> . accessor_expr
(29) expr -> . node_expr
(30) expr -> . vector_literal
(31) expr -> . BOOL
(32) expr -> . STRING
(33) expr -> . NUMBER
(34) expr -> . TYPE
(35) expr -> . ID
(19) assignment -> . ID EQUALS expr
(17) declaration -> . LET name_typed EQUALS expr
(18) declaration -> . LET ID EQUALS expr
(39) cast_expr -> . expr AS TYPE
(38) accessor_expr -> . expr DOT ID
(37) node_expr -> . expr ( params_list )
(36) vector_literal -> . [ NUMBER COMMA NUMBER COMMA NUMBER ]
} reduce using rule 11 (statements -> statement .)
COMMENT shift and go to state 13
- shift and go to state 17
( shift and go to state 18
BOOL shift and go to state 23
STRING shift and go to state 24
NUMBER shift and go to state 25
TYPE shift and go to state 26
ID shift and go to state 27
LET shift and go to state 28
[ shift and go to state 29
statement shift and go to state 12
statements shift and go to state 34
expr shift and go to state 14
assignment shift and go to state 15
declaration shift and go to state 16
cast_expr shift and go to state 19
accessor_expr shift and go to state 20
node_expr shift and go to state 21
vector_literal shift and go to state 22
state 13
(13) statement -> COMMENT .
COMMENT reduce using rule 13 (statement -> COMMENT .)
- reduce using rule 13 (statement -> COMMENT .)
( reduce using rule 13 (statement -> COMMENT .)
BOOL reduce using rule 13 (statement -> COMMENT .)
STRING reduce using rule 13 (statement -> COMMENT .)
NUMBER reduce using rule 13 (statement -> COMMENT .)
TYPE reduce using rule 13 (statement -> COMMENT .)
ID reduce using rule 13 (statement -> COMMENT .)
LET reduce using rule 13 (statement -> COMMENT .)
[ reduce using rule 13 (statement -> COMMENT .)
} reduce using rule 13 (statement -> COMMENT .)
state 14
(14) statement -> expr .
(22) expr -> expr . @ expr
(23) expr -> expr . / expr
(24) expr -> expr . * expr
(25) expr -> expr . - expr
(26) expr -> expr . + expr
(39) cast_expr -> expr . AS TYPE
(38) accessor_expr -> expr . DOT ID
(37) node_expr -> expr . ( params_list )
! shift/reduce conflict for - resolved as shift
! shift/reduce conflict for ( resolved as shift
COMMENT reduce using rule 14 (statement -> expr .)
BOOL reduce using rule 14 (statement -> expr .)
STRING reduce using rule 14 (statement -> expr .)
NUMBER reduce using rule 14 (statement -> expr .)
TYPE reduce using rule 14 (statement -> expr .)
ID reduce using rule 14 (statement -> expr .)
LET reduce using rule 14 (statement -> expr .)
[ reduce using rule 14 (statement -> expr .)
} reduce using rule 14 (statement -> expr .)
@ shift and go to state 35
/ shift and go to state 36
* shift and go to state 37
- shift and go to state 38
+ shift and go to state 39
AS shift and go to state 40
DOT shift and go to state 41
( shift and go to state 42
state 15
(15) statement -> assignment .
COMMENT reduce using rule 15 (statement -> assignment .)
- reduce using rule 15 (statement -> assignment .)
( reduce using rule 15 (statement -> assignment .)
BOOL reduce using rule 15 (statement -> assignment .)
STRING reduce using rule 15 (statement -> assignment .)
NUMBER reduce using rule 15 (statement -> assignment .)
TYPE reduce using rule 15 (statement -> assignment .)
ID reduce using rule 15 (statement -> assignment .)
LET reduce using rule 15 (statement -> assignment .)
[ reduce using rule 15 (statement -> assignment .)
} reduce using rule 15 (statement -> assignment .)
state 16
(16) statement -> declaration .
COMMENT reduce using rule 16 (statement -> declaration .)
- reduce using rule 16 (statement -> declaration .)
( reduce using rule 16 (statement -> declaration .)
BOOL reduce using rule 16 (statement -> declaration .)
STRING reduce using rule 16 (statement -> declaration .)
NUMBER reduce using rule 16 (statement -> declaration .)
TYPE reduce using rule 16 (statement -> declaration .)
ID reduce using rule 16 (statement -> declaration .)
LET reduce using rule 16 (statement -> declaration .)
[ reduce using rule 16 (statement -> declaration .)
} reduce using rule 16 (statement -> declaration .)
state 17
(20) expr -> - . expr
(20) expr -> . - expr
(21) expr -> . ( expr )
(22) expr -> . expr @ expr
(23) expr -> . expr / expr
(24) expr -> . expr * expr
(25) expr -> . expr - expr
(26) expr -> . expr + expr
(27) expr -> . cast_expr
(28) expr -> . accessor_expr
(29) expr -> . node_expr
(30) expr -> . vector_literal
(31) expr -> . BOOL
(32) expr -> . STRING
(33) expr -> . NUMBER
(34) expr -> . TYPE
(35) expr -> . ID
(39) cast_expr -> . expr AS TYPE
(38) accessor_expr -> . expr DOT ID
(37) node_expr -> . expr ( params_list )
(36) vector_literal -> . [ NUMBER COMMA NUMBER COMMA NUMBER ]
- shift and go to state 17
( shift and go to state 18
BOOL shift and go to state 23
STRING shift and go to state 24
NUMBER shift and go to state 25
TYPE shift and go to state 26
ID shift and go to state 44
[ shift and go to state 29
expr shift and go to state 43
cast_expr shift and go to state 19
accessor_expr shift and go to state 20
node_expr shift and go to state 21
vector_literal shift and go to state 22
state 18
(21) expr -> ( . expr )
(20) expr -> . - expr
(21) expr -> . ( expr )
(22) expr -> . expr @ expr
(23) expr -> . expr / expr
(24) expr -> . expr * expr
(25) expr -> . expr - expr
(26) expr -> . expr + expr
(27) expr -> . cast_expr
(28) expr -> . accessor_expr
(29) expr -> . node_expr
(30) expr -> . vector_literal
(31) expr -> . BOOL
(32) expr -> . STRING
(33) expr -> . NUMBER
(34) expr -> . TYPE
(35) expr -> . ID
(39) cast_expr -> . expr AS TYPE
(38) accessor_expr -> . expr DOT ID
(37) node_expr -> . expr ( params_list )
(36) vector_literal -> . [ NUMBER COMMA NUMBER COMMA NUMBER ]
- shift and go to state 17
( shift and go to state 18
BOOL shift and go to state 23
STRING shift and go to state 24
NUMBER shift and go to state 25
TYPE shift and go to state 26
ID shift and go to state 44
[ shift and go to state 29
expr shift and go to state 45
cast_expr shift and go to state 19
accessor_expr shift and go to state 20
node_expr shift and go to state 21
vector_literal shift and go to state 22
state 19
(27) expr -> cast_expr .
@ reduce using rule 27 (expr -> cast_expr .)
/ reduce using rule 27 (expr -> cast_expr .)
* reduce using rule 27 (expr -> cast_expr .)
- reduce using rule 27 (expr -> cast_expr .)
+ reduce using rule 27 (expr -> cast_expr .)
AS reduce using rule 27 (expr -> cast_expr .)
DOT reduce using rule 27 (expr -> cast_expr .)
( reduce using rule 27 (expr -> cast_expr .)
COMMENT reduce using rule 27 (expr -> cast_expr .)
BOOL reduce using rule 27 (expr -> cast_expr .)
STRING reduce using rule 27 (expr -> cast_expr .)
NUMBER reduce using rule 27 (expr -> cast_expr .)
TYPE reduce using rule 27 (expr -> cast_expr .)
ID reduce using rule 27 (expr -> cast_expr .)
LET reduce using rule 27 (expr -> cast_expr .)
[ reduce using rule 27 (expr -> cast_expr .)
} reduce using rule 27 (expr -> cast_expr .)
) reduce using rule 27 (expr -> cast_expr .)
COMMA reduce using rule 27 (expr -> cast_expr .)
state 20
(28) expr -> accessor_expr .
@ reduce using rule 28 (expr -> accessor_expr .)
/ reduce using rule 28 (expr -> accessor_expr .)
* reduce using rule 28 (expr -> accessor_expr .)
- reduce using rule 28 (expr -> accessor_expr .)
+ reduce using rule 28 (expr -> accessor_expr .)
AS reduce using rule 28 (expr -> accessor_expr .)
DOT reduce using rule 28 (expr -> accessor_expr .)
( reduce using rule 28 (expr -> accessor_expr .)
COMMENT reduce using rule 28 (expr -> accessor_expr .)
BOOL reduce using rule 28 (expr -> accessor_expr .)
STRING reduce using rule 28 (expr -> accessor_expr .)
NUMBER reduce using rule 28 (expr -> accessor_expr .)
TYPE reduce using rule 28 (expr -> accessor_expr .)
ID reduce using rule 28 (expr -> accessor_expr .)
LET reduce using rule 28 (expr -> accessor_expr .)
[ reduce using rule 28 (expr -> accessor_expr .)
} reduce using rule 28 (expr -> accessor_expr .)
) reduce using rule 28 (expr -> accessor_expr .)
COMMA reduce using rule 28 (expr -> accessor_expr .)
state 21
(29) expr -> node_expr .
@ reduce using rule 29 (expr -> node_expr .)
/ reduce using rule 29 (expr -> node_expr .)
* reduce using rule 29 (expr -> node_expr .)
- reduce using rule 29 (expr -> node_expr .)
+ reduce using rule 29 (expr -> node_expr .)
AS reduce using rule 29 (expr -> node_expr .)
DOT reduce using rule 29 (expr -> node_expr .)
( reduce using rule 29 (expr -> node_expr .)
COMMENT reduce using rule 29 (expr -> node_expr .)
BOOL reduce using rule 29 (expr -> node_expr .)
STRING reduce using rule 29 (expr -> node_expr .)
NUMBER reduce using rule 29 (expr -> node_expr .)
TYPE reduce using rule 29 (expr -> node_expr .)
ID reduce using rule 29 (expr -> node_expr .)
LET reduce using rule 29 (expr -> node_expr .)
[ reduce using rule 29 (expr -> node_expr .)
} reduce using rule 29 (expr -> node_expr .)
) reduce using rule 29 (expr -> node_expr .)
COMMA reduce using rule 29 (expr -> node_expr .)
state 22
(30) expr -> vector_literal .
@ reduce using rule 30 (expr -> vector_literal .)
/ reduce using rule 30 (expr -> vector_literal .)
* reduce using rule 30 (expr -> vector_literal .)
- reduce using rule 30 (expr -> vector_literal .)
+ reduce using rule 30 (expr -> vector_literal .)
AS reduce using rule 30 (expr -> vector_literal .)
DOT reduce using rule 30 (expr -> vector_literal .)
( reduce using rule 30 (expr -> vector_literal .)
COMMENT reduce using rule 30 (expr -> vector_literal .)
BOOL reduce using rule 30 (expr -> vector_literal .)
STRING reduce using rule 30 (expr -> vector_literal .)
NUMBER reduce using rule 30 (expr -> vector_literal .)
TYPE reduce using rule 30 (expr -> vector_literal .)
ID reduce using rule 30 (expr -> vector_literal .)
LET reduce using rule 30 (expr -> vector_literal .)
[ reduce using rule 30 (expr -> vector_literal .)
} reduce using rule 30 (expr -> vector_literal .)
) reduce using rule 30 (expr -> vector_literal .)
COMMA reduce using rule 30 (expr -> vector_literal .)
state 23
(31) expr -> BOOL .
@ reduce using rule 31 (expr -> BOOL .)
/ reduce using rule 31 (expr -> BOOL .)
* reduce using rule 31 (expr -> BOOL .)
- reduce using rule 31 (expr -> BOOL .)
+ reduce using rule 31 (expr -> BOOL .)
AS reduce using rule 31 (expr -> BOOL .)
DOT reduce using rule 31 (expr -> BOOL .)
( reduce using rule 31 (expr -> BOOL .)
COMMENT reduce using rule 31 (expr -> BOOL .)
BOOL reduce using rule 31 (expr -> BOOL .)
STRING reduce using rule 31 (expr -> BOOL .)
NUMBER reduce using rule 31 (expr -> BOOL .)
TYPE reduce using rule 31 (expr -> BOOL .)
ID reduce using rule 31 (expr -> BOOL .)
LET reduce using rule 31 (expr -> BOOL .)
[ reduce using rule 31 (expr -> BOOL .)
} reduce using rule 31 (expr -> BOOL .)
) reduce using rule 31 (expr -> BOOL .)
COMMA reduce using rule 31 (expr -> BOOL .)
state 24
(32) expr -> STRING .
@ reduce using rule 32 (expr -> STRING .)
/ reduce using rule 32 (expr -> STRING .)
* reduce using rule 32 (expr -> STRING .)
- reduce using rule 32 (expr -> STRING .)
+ reduce using rule 32 (expr -> STRING .)
AS reduce using rule 32 (expr -> STRING .)
DOT reduce using rule 32 (expr -> STRING .)
( reduce using rule 32 (expr -> STRING .)
COMMENT reduce using rule 32 (expr -> STRING .)
BOOL reduce using rule 32 (expr -> STRING .)
STRING reduce using rule 32 (expr -> STRING .)
NUMBER reduce using rule 32 (expr -> STRING .)
TYPE reduce using rule 32 (expr -> STRING .)
ID reduce using rule 32 (expr -> STRING .)
LET reduce using rule 32 (expr -> STRING .)
[ reduce using rule 32 (expr -> STRING .)
} reduce using rule 32 (expr -> STRING .)
) reduce using rule 32 (expr -> STRING .)
COMMA reduce using rule 32 (expr -> STRING .)
state 25
(33) expr -> NUMBER .
@ reduce using rule 33 (expr -> NUMBER .)
/ reduce using rule 33 (expr -> NUMBER .)
* reduce using rule 33 (expr -> NUMBER .)
- reduce using rule 33 (expr -> NUMBER .)
+ reduce using rule 33 (expr -> NUMBER .)
AS reduce using rule 33 (expr -> NUMBER .)
DOT reduce using rule 33 (expr -> NUMBER .)
( reduce using rule 33 (expr -> NUMBER .)
COMMENT reduce using rule 33 (expr -> NUMBER .)
BOOL reduce using rule 33 (expr -> NUMBER .)
STRING reduce using rule 33 (expr -> NUMBER .)
NUMBER reduce using rule 33 (expr -> NUMBER .)
TYPE reduce using rule 33 (expr -> NUMBER .)
ID reduce using rule 33 (expr -> NUMBER .)
LET reduce using rule 33 (expr -> NUMBER .)
[ reduce using rule 33 (expr -> NUMBER .)
} reduce using rule 33 (expr -> NUMBER .)
) reduce using rule 33 (expr -> NUMBER .)
COMMA reduce using rule 33 (expr -> NUMBER .)
state 26
(34) expr -> TYPE .
@ reduce using rule 34 (expr -> TYPE .)
/ reduce using rule 34 (expr -> TYPE .)
* reduce using rule 34 (expr -> TYPE .)
- reduce using rule 34 (expr -> TYPE .)
+ reduce using rule 34 (expr -> TYPE .)
AS reduce using rule 34 (expr -> TYPE .)
DOT reduce using rule 34 (expr -> TYPE .)
( reduce using rule 34 (expr -> TYPE .)
COMMENT reduce using rule 34 (expr -> TYPE .)
BOOL reduce using rule 34 (expr -> TYPE .)
STRING reduce using rule 34 (expr -> TYPE .)
NUMBER reduce using rule 34 (expr -> TYPE .)
TYPE reduce using rule 34 (expr -> TYPE .)
ID reduce using rule 34 (expr -> TYPE .)
LET reduce using rule 34 (expr -> TYPE .)
[ reduce using rule 34 (expr -> TYPE .)
} reduce using rule 34 (expr -> TYPE .)
) reduce using rule 34 (expr -> TYPE .)
COMMA reduce using rule 34 (expr -> TYPE .)
state 27
(35) expr -> ID .
(19) assignment -> ID . EQUALS expr
@ reduce using rule 35 (expr -> ID .)
/ reduce using rule 35 (expr -> ID .)
* reduce using rule 35 (expr -> ID .)
- reduce using rule 35 (expr -> ID .)
+ reduce using rule 35 (expr -> ID .)
AS reduce using rule 35 (expr -> ID .)
DOT reduce using rule 35 (expr -> ID .)
( reduce using rule 35 (expr -> ID .)
COMMENT reduce using rule 35 (expr -> ID .)
BOOL reduce using rule 35 (expr -> ID .)
STRING reduce using rule 35 (expr -> ID .)
NUMBER reduce using rule 35 (expr -> ID .)
TYPE reduce using rule 35 (expr -> ID .)
ID reduce using rule 35 (expr -> ID .)
LET reduce using rule 35 (expr -> ID .)
[ reduce using rule 35 (expr -> ID .)
} reduce using rule 35 (expr -> ID .)
EQUALS shift and go to state 46
state 28
(17) declaration -> LET . name_typed EQUALS expr
(18) declaration -> LET . ID EQUALS expr
(49) name_typed -> . ID COLON TYPE
ID shift and go to state 48
name_typed shift and go to state 47
state 29
(36) vector_literal -> [ . NUMBER COMMA NUMBER COMMA NUMBER ]
NUMBER shift and go to state 49
state 30
(2) start -> MODE seen_mode ID tree_body .
$end reduce using rule 2 (start -> MODE seen_mode ID tree_body .)
state 31
(5) func_signature -> MODE FUNC ID args . RETURNS args
RETURNS shift and go to state 50
state 32
(6) args -> ( . args_list )
(7) args_list -> . empty
(8) args_list -> . name_typed COMMA args_list
(9) args_list -> . name_typed
(50) empty -> .
(49) name_typed -> . ID COLON TYPE
) reduce using rule 50 (empty -> .)
ID shift and go to state 54
args_list shift and go to state 51
empty shift and go to state 52
name_typed shift and go to state 53
state 33
(10) tree_body -> { statements } .
$end reduce using rule 10 (tree_body -> { statements } .)
state 34
(12) statements -> statement statements .
} reduce using rule 12 (statements -> statement statements .)
state 35
(22) expr -> expr @ . expr
(20) expr -> . - expr
(21) expr -> . ( expr )
(22) expr -> . expr @ expr
(23) expr -> . expr / expr
(24) expr -> . expr * expr
(25) expr -> . expr - expr
(26) expr -> . expr + expr
(27) expr -> . cast_expr
(28) expr -> . accessor_expr
(29) expr -> . node_expr
(30) expr -> . vector_literal
(31) expr -> . BOOL
(32) expr -> . STRING
(33) expr -> . NUMBER
(34) expr -> . TYPE
(35) expr -> . ID
(39) cast_expr -> . expr AS TYPE
(38) accessor_expr -> . expr DOT ID
(37) node_expr -> . expr ( params_list )
(36) vector_literal -> . [ NUMBER COMMA NUMBER COMMA NUMBER ]
- shift and go to state 17
( shift and go to state 18
BOOL shift and go to state 23
STRING shift and go to state 24
NUMBER shift and go to state 25
TYPE shift and go to state 26
ID shift and go to state 44
[ shift and go to state 29
expr shift and go to state 55
cast_expr shift and go to state 19
accessor_expr shift and go to state 20
node_expr shift and go to state 21
vector_literal shift and go to state 22
state 36
(23) expr -> expr / . expr
(20) expr -> . - expr
(21) expr -> . ( expr )
(22) expr -> . expr @ expr
(23) expr -> . expr / expr
(24) expr -> . expr * expr
(25) expr -> . expr - expr
(26) expr -> . expr + expr
(27) expr -> . cast_expr
(28) expr -> . accessor_expr
(29) expr -> . node_expr
(30) expr -> . vector_literal
(31) expr -> . BOOL
(32) expr -> . STRING
(33) expr -> . NUMBER
(34) expr -> . TYPE
(35) expr -> . ID
(39) cast_expr -> . expr AS TYPE
(38) accessor_expr -> . expr DOT ID
(37) node_expr -> . expr ( params_list )
(36) vector_literal -> . [ NUMBER COMMA NUMBER COMMA NUMBER ]
- shift and go to state 17
( shift and go to state 18
BOOL shift and go to state 23
STRING shift and go to state 24
NUMBER shift and go to state 25
TYPE shift and go to state 26
ID shift and go to state 44
[ shift and go to state 29
expr shift and go to state 56
cast_expr shift and go to state 19
accessor_expr shift and go to state 20
node_expr shift and go to state 21
vector_literal shift and go to state 22
state 37
(24) expr -> expr * . expr
(20) expr -> . - expr
(21) expr -> . ( expr )
(22) expr -> . expr @ expr
(23) expr -> . expr / expr
(24) expr -> . expr * expr
(25) expr -> . expr - expr
(26) expr -> . expr + expr
(27) expr -> . cast_expr
(28) expr -> . accessor_expr
(29) expr -> . node_expr
(30) expr -> . vector_literal
(31) expr -> . BOOL
(32) expr -> . STRING
(33) expr -> . NUMBER
(34) expr -> . TYPE
(35) expr -> . ID
(39) cast_expr -> . expr AS TYPE
(38) accessor_expr -> . expr DOT ID
(37) node_expr -> . expr ( params_list )
(36) vector_literal -> . [ NUMBER COMMA NUMBER COMMA NUMBER ]
- shift and go to state 17
( shift and go to state 18
BOOL shift and go to state 23
STRING shift and go to state 24
NUMBER shift and go to state 25
TYPE shift and go to state 26
ID shift and go to state 44
[ shift and go to state 29
expr shift and go to state 57
cast_expr shift and go to state 19
accessor_expr shift and go to state 20
node_expr shift and go to state 21
vector_literal shift and go to state 22
state 38
(25) expr -> expr - . expr
(20) expr -> . - expr
(21) expr -> . ( expr )
(22) expr -> . expr @ expr
(23) expr -> . expr / expr
(24) expr -> . expr * expr
(25) expr -> . expr - expr
(26) expr -> . expr + expr
(27) expr -> . cast_expr
(28) expr -> . accessor_expr
(29) expr -> . node_expr
(30) expr -> . vector_literal
(31) expr -> . BOOL
(32) expr -> . STRING
(33) expr -> . NUMBER
(34) expr -> . TYPE
(35) expr -> . ID
(39) cast_expr -> . expr AS TYPE
(38) accessor_expr -> . expr DOT ID
(37) node_expr -> . expr ( params_list )
(36) vector_literal -> . [ NUMBER COMMA NUMBER COMMA NUMBER ]
- shift and go to state 17
( shift and go to state 18
BOOL shift and go to state 23
STRING shift and go to state 24
NUMBER shift and go to state 25
TYPE shift and go to state 26
ID shift and go to state 44
[ shift and go to state 29
expr shift and go to state 58
cast_expr shift and go to state 19
accessor_expr shift and go to state 20
node_expr shift and go to state 21
vector_literal shift and go to state 22
state 39
(26) expr -> expr + . expr
(20) expr -> . - expr
(21) expr -> . ( expr )
(22) expr -> . expr @ expr
(23) expr -> . expr / expr
(24) expr -> . expr * expr
(25) expr -> . expr - expr
(26) expr -> . expr + expr
(27) expr -> . cast_expr
(28) expr -> . accessor_expr
(29) expr -> . node_expr
(30) expr -> . vector_literal
(31) expr -> . BOOL
(32) expr -> . STRING
(33) expr -> . NUMBER
(34) expr -> . TYPE
(35) expr -> . ID
(39) cast_expr -> . expr AS TYPE
(38) accessor_expr -> . expr DOT ID
(37) node_expr -> . expr ( params_list )
(36) vector_literal -> . [ NUMBER COMMA NUMBER COMMA NUMBER ]
- shift and go to state 17
( shift and go to state 18
BOOL shift and go to state 23
STRING shift and go to state 24
NUMBER shift and go to state 25
TYPE shift and go to state 26
ID shift and go to state 44
[ shift and go to state 29
expr shift and go to state 59
cast_expr shift and go to state 19
accessor_expr shift and go to state 20
node_expr shift and go to state 21
vector_literal shift and go to state 22
state 40
(39) cast_expr -> expr AS . TYPE
TYPE shift and go to state 60
state 41
(38) accessor_expr -> expr DOT . ID
ID shift and go to state 61
state 42
(37) node_expr -> expr ( . params_list )
(40) params_list -> . named_params_list
(41) params_list -> . pos COMMA named_params_list
(42) params_list -> . pos COMMA params_list
(43) params_list -> . pos
(44) params_list -> . empty
(45) named_params_list -> . named COMMA named_params_list
(46) named_params_list -> . named
(48) pos -> . expr
(50) empty -> .
(47) named -> . ID COLON expr
(20) expr -> . - expr
(21) expr -> . ( expr )
(22) expr -> . expr @ expr
(23) expr -> . expr / expr
(24) expr -> . expr * expr
(25) expr -> . expr - expr
(26) expr -> . expr + expr
(27) expr -> . cast_expr
(28) expr -> . accessor_expr
(29) expr -> . node_expr
(30) expr -> . vector_literal
(31) expr -> . BOOL
(32) expr -> . STRING
(33) expr -> . NUMBER
(34) expr -> . TYPE
(35) expr -> . ID
(39) cast_expr -> . expr AS TYPE
(38) accessor_expr -> . expr DOT ID
(37) node_expr -> . expr ( params_list )
(36) vector_literal -> . [ NUMBER COMMA NUMBER COMMA NUMBER ]
) reduce using rule 50 (empty -> .)
ID shift and go to state 68
- shift and go to state 17
( shift and go to state 18
BOOL shift and go to state 23
STRING shift and go to state 24
NUMBER shift and go to state 25
TYPE shift and go to state 26
[ shift and go to state 29
expr shift and go to state 62
params_list shift and go to state 63
named_params_list shift and go to state 64
pos shift and go to state 65
empty shift and go to state 66
named shift and go to state 67
cast_expr shift and go to state 19
accessor_expr shift and go to state 20
node_expr shift and go to state 21
vector_literal shift and go to state 22
state 43
(20) expr -> - expr .
(22) expr -> expr . @ expr
(23) expr -> expr . / expr
(24) expr -> expr . * expr
(25) expr -> expr . - expr
(26) expr -> expr . + expr
(39) cast_expr -> expr . AS TYPE
(38) accessor_expr -> expr . DOT ID
(37) node_expr -> expr . ( params_list )
@ reduce using rule 20 (expr -> - expr .)
/ reduce using rule 20 (expr -> - expr .)