-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparser.out
4469 lines (3824 loc) · 200 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' -> program
Rule 1 program -> structs funcs
Rule 2 program -> funcs
Rule 3 structs -> structs struct
Rule 4 structs -> struct
Rule 5 struct -> STRUCT NAME LBRACE fields RBRACE
Rule 6 fields -> fields field
Rule 7 fields -> field
Rule 8 field -> NAME COLON NAME SEMI
Rule 9 funcs -> funcs func
Rule 10 funcs -> func
Rule 11 func -> FUNC NAME LPAREN formal_args RPAREN COLON NAME LBRACE statements RBRACE
Rule 12 func -> FUNC NAME LPAREN RPAREN COLON NAME LBRACE statements RBRACE
Rule 13 func -> FUNC NAME LPAREN formal_args RPAREN LBRACE statements RBRACE
Rule 14 func -> FUNC NAME LPAREN RPAREN LBRACE statements RBRACE
Rule 15 formal_args -> formal_args COMMA formal_arg
Rule 16 formal_args -> formal_arg
Rule 17 formal_arg -> NAME COLON NAME
Rule 18 formal_arg -> NAME
Rule 19 statements -> statements statement
Rule 20 statements -> statement
Rule 21 statement -> assign SEMI
Rule 22 assign -> variable_w_dot ASSIGN expression
Rule 23 statement -> VAR variable COLON NAME SEMI
Rule 24 statement -> VAR variable SEMI
Rule 25 variable -> NAME
Rule 26 variable_w_dot -> variable_w_dot DOT NAME
Rule 27 variable_w_dot -> NAME
Rule 28 statement -> IF LPAREN expression RPAREN LBRACE statements RBRACE
Rule 29 statement -> IF LPAREN expression RPAREN LBRACE statements RBRACE ELSE LBRACE statements RBRACE
Rule 30 statement -> TRY LBRACE statements RBRACE catchers
Rule 31 catchers -> catchers catch
Rule 32 catchers -> catch
Rule 33 catch -> CATCH STRING LBRACE statements RBRACE
Rule 34 statement -> FOR LPAREN assign SEMI expression SEMI assign RPAREN LBRACE statements RBRACE
Rule 35 statement -> RAISE expression SEMI
Rule 36 statement -> expression SEMI
Rule 37 statement -> RETURN expression SEMI
Rule 38 statement -> RETURN SEMI
Rule 39 expression -> NOT expression
Rule 40 expression -> MINUS expression
Rule 41 expression -> NEW NAME
Rule 42 expression -> expression EQ expression
Rule 43 expression -> expression GREATER expression
Rule 44 expression -> expression LESS expression
Rule 45 expression -> expression NOT_EQ expression
Rule 46 expression -> expression GREATER_EQ expression
Rule 47 expression -> expression LESS_EQ expression
Rule 48 expression -> expression PLUS expression
Rule 49 expression -> expression MINUS expression
Rule 50 expression -> expression MULTIPLY expression
Rule 51 expression -> expression DIVIDE expression
Rule 52 expression -> LPAREN expression RPAREN
Rule 53 expression -> expression OR expression
Rule 54 expression -> expression AND expression
Rule 55 expression -> NUMBER
Rule 56 expression -> TRUE
Rule 57 expression -> FALSE
Rule 58 expression -> NIL
Rule 59 expression -> STRING
Rule 60 expression -> variable_w_dot
Rule 61 expression -> NAME LPAREN args RPAREN
Rule 62 expression -> NAME LPAREN RPAREN
Rule 63 args -> args COMMA expression
Rule 64 args -> expression
Terminals, with rules where they appear
AND : 54
ASSIGN : 22
CATCH : 33
COLON : 8 11 12 17 23
COMMA : 15 63
DIVIDE : 51
DOT : 26
ELSE : 29
EQ : 42
FALSE : 57
FOR : 34
FUNC : 11 12 13 14
GREATER : 43
GREATER_EQ : 46
IF : 28 29
LBRACE : 5 11 12 13 14 28 29 29 30 33 34
LESS : 44
LESS_EQ : 47
LPAREN : 11 12 13 14 28 29 34 52 61 62
MINUS : 40 49
MULTIPLY : 50
NAME : 5 8 8 11 11 12 12 13 14 17 17 18 23 25 26 27 41 61 62
NEW : 41
NIL : 58
NOT : 39
NOT_EQ : 45
NUMBER : 55
OR : 53
PLUS : 48
RAISE : 35
RBRACE : 5 11 12 13 14 28 29 29 30 33 34
RETURN : 37 38
RPAREN : 11 12 13 14 28 29 34 52 61 62
SEMI : 8 21 23 24 34 34 35 36 37 38
STRING : 33 59
STRUCT : 5
TRUE : 56
TRY : 30
VAR : 23 24
error :
Nonterminals, with rules where they appear
args : 61 63
assign : 21 34 34
catch : 31 32
catchers : 30 31
expression : 22 28 29 34 35 36 37 39 40 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 53 53 54 54 63 64
field : 6 7
fields : 5 6
formal_arg : 15 16
formal_args : 11 13 15
func : 9 10
funcs : 1 2 9
program : 0
statement : 19 20
statements : 11 12 13 14 19 28 29 29 30 33 34
struct : 3 4
structs : 1 3
variable : 23 24
variable_w_dot : 22 26 60
Parsing method: LALR
state 0
(0) S' -> . program
(1) program -> . structs funcs
(2) program -> . funcs
(3) structs -> . structs struct
(4) structs -> . struct
(9) funcs -> . funcs func
(10) funcs -> . func
(5) struct -> . STRUCT NAME LBRACE fields RBRACE
(11) func -> . FUNC NAME LPAREN formal_args RPAREN COLON NAME LBRACE statements RBRACE
(12) func -> . FUNC NAME LPAREN RPAREN COLON NAME LBRACE statements RBRACE
(13) func -> . FUNC NAME LPAREN formal_args RPAREN LBRACE statements RBRACE
(14) func -> . FUNC NAME LPAREN RPAREN LBRACE statements RBRACE
STRUCT shift and go to state 6
FUNC shift and go to state 7
program shift and go to state 1
structs shift and go to state 2
funcs shift and go to state 3
struct shift and go to state 4
func shift and go to state 5
state 1
(0) S' -> program .
state 2
(1) program -> structs . funcs
(3) structs -> structs . struct
(9) funcs -> . funcs func
(10) funcs -> . func
(5) struct -> . STRUCT NAME LBRACE fields RBRACE
(11) func -> . FUNC NAME LPAREN formal_args RPAREN COLON NAME LBRACE statements RBRACE
(12) func -> . FUNC NAME LPAREN RPAREN COLON NAME LBRACE statements RBRACE
(13) func -> . FUNC NAME LPAREN formal_args RPAREN LBRACE statements RBRACE
(14) func -> . FUNC NAME LPAREN RPAREN LBRACE statements RBRACE
STRUCT shift and go to state 6
FUNC shift and go to state 7
funcs shift and go to state 8
struct shift and go to state 9
func shift and go to state 5
state 3
(2) program -> funcs .
(9) funcs -> funcs . func
(11) func -> . FUNC NAME LPAREN formal_args RPAREN COLON NAME LBRACE statements RBRACE
(12) func -> . FUNC NAME LPAREN RPAREN COLON NAME LBRACE statements RBRACE
(13) func -> . FUNC NAME LPAREN formal_args RPAREN LBRACE statements RBRACE
(14) func -> . FUNC NAME LPAREN RPAREN LBRACE statements RBRACE
$end reduce using rule 2 (program -> funcs .)
FUNC shift and go to state 7
func shift and go to state 10
state 4
(4) structs -> struct .
STRUCT reduce using rule 4 (structs -> struct .)
FUNC reduce using rule 4 (structs -> struct .)
state 5
(10) funcs -> func .
FUNC reduce using rule 10 (funcs -> func .)
$end reduce using rule 10 (funcs -> func .)
state 6
(5) struct -> STRUCT . NAME LBRACE fields RBRACE
NAME shift and go to state 11
state 7
(11) func -> FUNC . NAME LPAREN formal_args RPAREN COLON NAME LBRACE statements RBRACE
(12) func -> FUNC . NAME LPAREN RPAREN COLON NAME LBRACE statements RBRACE
(13) func -> FUNC . NAME LPAREN formal_args RPAREN LBRACE statements RBRACE
(14) func -> FUNC . NAME LPAREN RPAREN LBRACE statements RBRACE
NAME shift and go to state 12
state 8
(1) program -> structs funcs .
(9) funcs -> funcs . func
(11) func -> . FUNC NAME LPAREN formal_args RPAREN COLON NAME LBRACE statements RBRACE
(12) func -> . FUNC NAME LPAREN RPAREN COLON NAME LBRACE statements RBRACE
(13) func -> . FUNC NAME LPAREN formal_args RPAREN LBRACE statements RBRACE
(14) func -> . FUNC NAME LPAREN RPAREN LBRACE statements RBRACE
$end reduce using rule 1 (program -> structs funcs .)
FUNC shift and go to state 7
func shift and go to state 10
state 9
(3) structs -> structs struct .
STRUCT reduce using rule 3 (structs -> structs struct .)
FUNC reduce using rule 3 (structs -> structs struct .)
state 10
(9) funcs -> funcs func .
FUNC reduce using rule 9 (funcs -> funcs func .)
$end reduce using rule 9 (funcs -> funcs func .)
state 11
(5) struct -> STRUCT NAME . LBRACE fields RBRACE
LBRACE shift and go to state 13
state 12
(11) func -> FUNC NAME . LPAREN formal_args RPAREN COLON NAME LBRACE statements RBRACE
(12) func -> FUNC NAME . LPAREN RPAREN COLON NAME LBRACE statements RBRACE
(13) func -> FUNC NAME . LPAREN formal_args RPAREN LBRACE statements RBRACE
(14) func -> FUNC NAME . LPAREN RPAREN LBRACE statements RBRACE
LPAREN shift and go to state 14
state 13
(5) struct -> STRUCT NAME LBRACE . fields RBRACE
(6) fields -> . fields field
(7) fields -> . field
(8) field -> . NAME COLON NAME SEMI
NAME shift and go to state 15
fields shift and go to state 16
field shift and go to state 17
state 14
(11) func -> FUNC NAME LPAREN . formal_args RPAREN COLON NAME LBRACE statements RBRACE
(12) func -> FUNC NAME LPAREN . RPAREN COLON NAME LBRACE statements RBRACE
(13) func -> FUNC NAME LPAREN . formal_args RPAREN LBRACE statements RBRACE
(14) func -> FUNC NAME LPAREN . RPAREN LBRACE statements RBRACE
(15) formal_args -> . formal_args COMMA formal_arg
(16) formal_args -> . formal_arg
(17) formal_arg -> . NAME COLON NAME
(18) formal_arg -> . NAME
RPAREN shift and go to state 20
NAME shift and go to state 18
formal_args shift and go to state 19
formal_arg shift and go to state 21
state 15
(8) field -> NAME . COLON NAME SEMI
COLON shift and go to state 22
state 16
(5) struct -> STRUCT NAME LBRACE fields . RBRACE
(6) fields -> fields . field
(8) field -> . NAME COLON NAME SEMI
RBRACE shift and go to state 23
NAME shift and go to state 15
field shift and go to state 24
state 17
(7) fields -> field .
RBRACE reduce using rule 7 (fields -> field .)
NAME reduce using rule 7 (fields -> field .)
state 18
(17) formal_arg -> NAME . COLON NAME
(18) formal_arg -> NAME .
COLON shift and go to state 25
RPAREN reduce using rule 18 (formal_arg -> NAME .)
COMMA reduce using rule 18 (formal_arg -> NAME .)
state 19
(11) func -> FUNC NAME LPAREN formal_args . RPAREN COLON NAME LBRACE statements RBRACE
(13) func -> FUNC NAME LPAREN formal_args . RPAREN LBRACE statements RBRACE
(15) formal_args -> formal_args . COMMA formal_arg
RPAREN shift and go to state 26
COMMA shift and go to state 27
state 20
(12) func -> FUNC NAME LPAREN RPAREN . COLON NAME LBRACE statements RBRACE
(14) func -> FUNC NAME LPAREN RPAREN . LBRACE statements RBRACE
COLON shift and go to state 28
LBRACE shift and go to state 29
state 21
(16) formal_args -> formal_arg .
RPAREN reduce using rule 16 (formal_args -> formal_arg .)
COMMA reduce using rule 16 (formal_args -> formal_arg .)
state 22
(8) field -> NAME COLON . NAME SEMI
NAME shift and go to state 30
state 23
(5) struct -> STRUCT NAME LBRACE fields RBRACE .
STRUCT reduce using rule 5 (struct -> STRUCT NAME LBRACE fields RBRACE .)
FUNC reduce using rule 5 (struct -> STRUCT NAME LBRACE fields RBRACE .)
state 24
(6) fields -> fields field .
RBRACE reduce using rule 6 (fields -> fields field .)
NAME reduce using rule 6 (fields -> fields field .)
state 25
(17) formal_arg -> NAME COLON . NAME
NAME shift and go to state 31
state 26
(11) func -> FUNC NAME LPAREN formal_args RPAREN . COLON NAME LBRACE statements RBRACE
(13) func -> FUNC NAME LPAREN formal_args RPAREN . LBRACE statements RBRACE
COLON shift and go to state 32
LBRACE shift and go to state 33
state 27
(15) formal_args -> formal_args COMMA . formal_arg
(17) formal_arg -> . NAME COLON NAME
(18) formal_arg -> . NAME
NAME shift and go to state 18
formal_arg shift and go to state 34
state 28
(12) func -> FUNC NAME LPAREN RPAREN COLON . NAME LBRACE statements RBRACE
NAME shift and go to state 35
state 29
(14) func -> FUNC NAME LPAREN RPAREN LBRACE . statements RBRACE
(19) statements -> . statements statement
(20) statements -> . statement
(21) statement -> . assign SEMI
(23) statement -> . VAR variable COLON NAME SEMI
(24) statement -> . VAR variable SEMI
(28) statement -> . IF LPAREN expression RPAREN LBRACE statements RBRACE
(29) statement -> . IF LPAREN expression RPAREN LBRACE statements RBRACE ELSE LBRACE statements RBRACE
(30) statement -> . TRY LBRACE statements RBRACE catchers
(34) statement -> . FOR LPAREN assign SEMI expression SEMI assign RPAREN LBRACE statements RBRACE
(35) statement -> . RAISE expression SEMI
(36) statement -> . expression SEMI
(37) statement -> . RETURN expression SEMI
(38) statement -> . RETURN SEMI
(22) assign -> . variable_w_dot ASSIGN expression
(39) expression -> . NOT expression
(40) expression -> . MINUS expression
(41) expression -> . NEW NAME
(42) expression -> . expression EQ expression
(43) expression -> . expression GREATER expression
(44) expression -> . expression LESS expression
(45) expression -> . expression NOT_EQ expression
(46) expression -> . expression GREATER_EQ expression
(47) expression -> . expression LESS_EQ expression
(48) expression -> . expression PLUS expression
(49) expression -> . expression MINUS expression
(50) expression -> . expression MULTIPLY expression
(51) expression -> . expression DIVIDE expression
(52) expression -> . LPAREN expression RPAREN
(53) expression -> . expression OR expression
(54) expression -> . expression AND expression
(55) expression -> . NUMBER
(56) expression -> . TRUE
(57) expression -> . FALSE
(58) expression -> . NIL
(59) expression -> . STRING
(60) expression -> . variable_w_dot
(61) expression -> . NAME LPAREN args RPAREN
(62) expression -> . NAME LPAREN RPAREN
(26) variable_w_dot -> . variable_w_dot DOT NAME
(27) variable_w_dot -> . NAME
VAR shift and go to state 41
IF shift and go to state 42
TRY shift and go to state 44
FOR shift and go to state 45
RAISE shift and go to state 46
RETURN shift and go to state 47
NOT shift and go to state 49
MINUS shift and go to state 50
NEW shift and go to state 51
LPAREN shift and go to state 37
NUMBER shift and go to state 52
TRUE shift and go to state 53
FALSE shift and go to state 54
NIL shift and go to state 55
STRING shift and go to state 56
NAME shift and go to state 36
statements shift and go to state 38
statement shift and go to state 39
assign shift and go to state 40
expression shift and go to state 43
variable_w_dot shift and go to state 48
state 30
(8) field -> NAME COLON NAME . SEMI
SEMI shift and go to state 57
state 31
(17) formal_arg -> NAME COLON NAME .
RPAREN reduce using rule 17 (formal_arg -> NAME COLON NAME .)
COMMA reduce using rule 17 (formal_arg -> NAME COLON NAME .)
state 32
(11) func -> FUNC NAME LPAREN formal_args RPAREN COLON . NAME LBRACE statements RBRACE
NAME shift and go to state 58
state 33
(13) func -> FUNC NAME LPAREN formal_args RPAREN LBRACE . statements RBRACE
(19) statements -> . statements statement
(20) statements -> . statement
(21) statement -> . assign SEMI
(23) statement -> . VAR variable COLON NAME SEMI
(24) statement -> . VAR variable SEMI
(28) statement -> . IF LPAREN expression RPAREN LBRACE statements RBRACE
(29) statement -> . IF LPAREN expression RPAREN LBRACE statements RBRACE ELSE LBRACE statements RBRACE
(30) statement -> . TRY LBRACE statements RBRACE catchers
(34) statement -> . FOR LPAREN assign SEMI expression SEMI assign RPAREN LBRACE statements RBRACE
(35) statement -> . RAISE expression SEMI
(36) statement -> . expression SEMI
(37) statement -> . RETURN expression SEMI
(38) statement -> . RETURN SEMI
(22) assign -> . variable_w_dot ASSIGN expression
(39) expression -> . NOT expression
(40) expression -> . MINUS expression
(41) expression -> . NEW NAME
(42) expression -> . expression EQ expression
(43) expression -> . expression GREATER expression
(44) expression -> . expression LESS expression
(45) expression -> . expression NOT_EQ expression
(46) expression -> . expression GREATER_EQ expression
(47) expression -> . expression LESS_EQ expression
(48) expression -> . expression PLUS expression
(49) expression -> . expression MINUS expression
(50) expression -> . expression MULTIPLY expression
(51) expression -> . expression DIVIDE expression
(52) expression -> . LPAREN expression RPAREN
(53) expression -> . expression OR expression
(54) expression -> . expression AND expression
(55) expression -> . NUMBER
(56) expression -> . TRUE
(57) expression -> . FALSE
(58) expression -> . NIL
(59) expression -> . STRING
(60) expression -> . variable_w_dot
(61) expression -> . NAME LPAREN args RPAREN
(62) expression -> . NAME LPAREN RPAREN
(26) variable_w_dot -> . variable_w_dot DOT NAME
(27) variable_w_dot -> . NAME
VAR shift and go to state 41
IF shift and go to state 42
TRY shift and go to state 44
FOR shift and go to state 45
RAISE shift and go to state 46
RETURN shift and go to state 47
NOT shift and go to state 49
MINUS shift and go to state 50
NEW shift and go to state 51
LPAREN shift and go to state 37
NUMBER shift and go to state 52
TRUE shift and go to state 53
FALSE shift and go to state 54
NIL shift and go to state 55
STRING shift and go to state 56
NAME shift and go to state 36
statements shift and go to state 59
statement shift and go to state 39
assign shift and go to state 40
expression shift and go to state 43
variable_w_dot shift and go to state 48
state 34
(15) formal_args -> formal_args COMMA formal_arg .
RPAREN reduce using rule 15 (formal_args -> formal_args COMMA formal_arg .)
COMMA reduce using rule 15 (formal_args -> formal_args COMMA formal_arg .)
state 35
(12) func -> FUNC NAME LPAREN RPAREN COLON NAME . LBRACE statements RBRACE
LBRACE shift and go to state 60
state 36
(61) expression -> NAME . LPAREN args RPAREN
(62) expression -> NAME . LPAREN RPAREN
(27) variable_w_dot -> NAME .
LPAREN shift and go to state 61
ASSIGN reduce using rule 27 (variable_w_dot -> NAME .)
DOT reduce using rule 27 (variable_w_dot -> NAME .)
SEMI reduce using rule 27 (variable_w_dot -> NAME .)
EQ reduce using rule 27 (variable_w_dot -> NAME .)
GREATER reduce using rule 27 (variable_w_dot -> NAME .)
LESS reduce using rule 27 (variable_w_dot -> NAME .)
NOT_EQ reduce using rule 27 (variable_w_dot -> NAME .)
GREATER_EQ reduce using rule 27 (variable_w_dot -> NAME .)
LESS_EQ reduce using rule 27 (variable_w_dot -> NAME .)
PLUS reduce using rule 27 (variable_w_dot -> NAME .)
MINUS reduce using rule 27 (variable_w_dot -> NAME .)
MULTIPLY reduce using rule 27 (variable_w_dot -> NAME .)
DIVIDE reduce using rule 27 (variable_w_dot -> NAME .)
OR reduce using rule 27 (variable_w_dot -> NAME .)
AND reduce using rule 27 (variable_w_dot -> NAME .)
RPAREN reduce using rule 27 (variable_w_dot -> NAME .)
COMMA reduce using rule 27 (variable_w_dot -> NAME .)
state 37
(52) expression -> LPAREN . expression RPAREN
(39) expression -> . NOT expression
(40) expression -> . MINUS expression
(41) expression -> . NEW NAME
(42) expression -> . expression EQ expression
(43) expression -> . expression GREATER expression
(44) expression -> . expression LESS expression
(45) expression -> . expression NOT_EQ expression
(46) expression -> . expression GREATER_EQ expression
(47) expression -> . expression LESS_EQ expression
(48) expression -> . expression PLUS expression
(49) expression -> . expression MINUS expression
(50) expression -> . expression MULTIPLY expression
(51) expression -> . expression DIVIDE expression
(52) expression -> . LPAREN expression RPAREN
(53) expression -> . expression OR expression
(54) expression -> . expression AND expression
(55) expression -> . NUMBER
(56) expression -> . TRUE
(57) expression -> . FALSE
(58) expression -> . NIL
(59) expression -> . STRING
(60) expression -> . variable_w_dot
(61) expression -> . NAME LPAREN args RPAREN
(62) expression -> . NAME LPAREN RPAREN
(26) variable_w_dot -> . variable_w_dot DOT NAME
(27) variable_w_dot -> . NAME
NOT shift and go to state 49
MINUS shift and go to state 50
NEW shift and go to state 51
LPAREN shift and go to state 37
NUMBER shift and go to state 52
TRUE shift and go to state 53
FALSE shift and go to state 54
NIL shift and go to state 55
STRING shift and go to state 56
NAME shift and go to state 36
expression shift and go to state 62
variable_w_dot shift and go to state 63
state 38
(14) func -> FUNC NAME LPAREN RPAREN LBRACE statements . RBRACE
(19) statements -> statements . statement
(21) statement -> . assign SEMI
(23) statement -> . VAR variable COLON NAME SEMI
(24) statement -> . VAR variable SEMI
(28) statement -> . IF LPAREN expression RPAREN LBRACE statements RBRACE
(29) statement -> . IF LPAREN expression RPAREN LBRACE statements RBRACE ELSE LBRACE statements RBRACE
(30) statement -> . TRY LBRACE statements RBRACE catchers
(34) statement -> . FOR LPAREN assign SEMI expression SEMI assign RPAREN LBRACE statements RBRACE
(35) statement -> . RAISE expression SEMI
(36) statement -> . expression SEMI
(37) statement -> . RETURN expression SEMI
(38) statement -> . RETURN SEMI
(22) assign -> . variable_w_dot ASSIGN expression
(39) expression -> . NOT expression
(40) expression -> . MINUS expression
(41) expression -> . NEW NAME
(42) expression -> . expression EQ expression
(43) expression -> . expression GREATER expression
(44) expression -> . expression LESS expression
(45) expression -> . expression NOT_EQ expression
(46) expression -> . expression GREATER_EQ expression
(47) expression -> . expression LESS_EQ expression
(48) expression -> . expression PLUS expression
(49) expression -> . expression MINUS expression
(50) expression -> . expression MULTIPLY expression
(51) expression -> . expression DIVIDE expression
(52) expression -> . LPAREN expression RPAREN
(53) expression -> . expression OR expression
(54) expression -> . expression AND expression
(55) expression -> . NUMBER
(56) expression -> . TRUE
(57) expression -> . FALSE
(58) expression -> . NIL
(59) expression -> . STRING
(60) expression -> . variable_w_dot
(61) expression -> . NAME LPAREN args RPAREN
(62) expression -> . NAME LPAREN RPAREN
(26) variable_w_dot -> . variable_w_dot DOT NAME
(27) variable_w_dot -> . NAME
RBRACE shift and go to state 64
VAR shift and go to state 41
IF shift and go to state 42
TRY shift and go to state 44
FOR shift and go to state 45
RAISE shift and go to state 46
RETURN shift and go to state 47
NOT shift and go to state 49
MINUS shift and go to state 50
NEW shift and go to state 51
LPAREN shift and go to state 37
NUMBER shift and go to state 52
TRUE shift and go to state 53
FALSE shift and go to state 54
NIL shift and go to state 55
STRING shift and go to state 56
NAME shift and go to state 36
statement shift and go to state 65
assign shift and go to state 40
expression shift and go to state 43
variable_w_dot shift and go to state 48
state 39
(20) statements -> statement .
RBRACE reduce using rule 20 (statements -> statement .)
VAR reduce using rule 20 (statements -> statement .)
IF reduce using rule 20 (statements -> statement .)
TRY reduce using rule 20 (statements -> statement .)
FOR reduce using rule 20 (statements -> statement .)
RAISE reduce using rule 20 (statements -> statement .)
RETURN reduce using rule 20 (statements -> statement .)
NOT reduce using rule 20 (statements -> statement .)
MINUS reduce using rule 20 (statements -> statement .)
NEW reduce using rule 20 (statements -> statement .)
LPAREN reduce using rule 20 (statements -> statement .)
NUMBER reduce using rule 20 (statements -> statement .)
TRUE reduce using rule 20 (statements -> statement .)
FALSE reduce using rule 20 (statements -> statement .)
NIL reduce using rule 20 (statements -> statement .)
STRING reduce using rule 20 (statements -> statement .)
NAME reduce using rule 20 (statements -> statement .)
state 40
(21) statement -> assign . SEMI
SEMI shift and go to state 66
state 41
(23) statement -> VAR . variable COLON NAME SEMI
(24) statement -> VAR . variable SEMI
(25) variable -> . NAME
NAME shift and go to state 68
variable shift and go to state 67
state 42
(28) statement -> IF . LPAREN expression RPAREN LBRACE statements RBRACE
(29) statement -> IF . LPAREN expression RPAREN LBRACE statements RBRACE ELSE LBRACE statements RBRACE
LPAREN shift and go to state 69
state 43
(36) statement -> expression . SEMI
(42) expression -> expression . EQ expression
(43) expression -> expression . GREATER expression
(44) expression -> expression . LESS expression
(45) expression -> expression . NOT_EQ expression
(46) expression -> expression . GREATER_EQ expression
(47) expression -> expression . LESS_EQ expression
(48) expression -> expression . PLUS expression
(49) expression -> expression . MINUS expression
(50) expression -> expression . MULTIPLY expression
(51) expression -> expression . DIVIDE expression
(53) expression -> expression . OR expression
(54) expression -> expression . AND expression
SEMI shift and go to state 70
EQ shift and go to state 71
GREATER shift and go to state 72
LESS shift and go to state 73
NOT_EQ shift and go to state 74
GREATER_EQ shift and go to state 75
LESS_EQ shift and go to state 76
PLUS shift and go to state 77
MINUS shift and go to state 78
MULTIPLY shift and go to state 79
DIVIDE shift and go to state 80
OR shift and go to state 81
AND shift and go to state 82
state 44
(30) statement -> TRY . LBRACE statements RBRACE catchers
LBRACE shift and go to state 83
state 45
(34) statement -> FOR . LPAREN assign SEMI expression SEMI assign RPAREN LBRACE statements RBRACE
LPAREN shift and go to state 84
state 46
(35) statement -> RAISE . expression SEMI
(39) expression -> . NOT expression
(40) expression -> . MINUS expression
(41) expression -> . NEW NAME
(42) expression -> . expression EQ expression
(43) expression -> . expression GREATER expression
(44) expression -> . expression LESS expression
(45) expression -> . expression NOT_EQ expression
(46) expression -> . expression GREATER_EQ expression
(47) expression -> . expression LESS_EQ expression
(48) expression -> . expression PLUS expression
(49) expression -> . expression MINUS expression
(50) expression -> . expression MULTIPLY expression
(51) expression -> . expression DIVIDE expression
(52) expression -> . LPAREN expression RPAREN
(53) expression -> . expression OR expression
(54) expression -> . expression AND expression
(55) expression -> . NUMBER
(56) expression -> . TRUE
(57) expression -> . FALSE
(58) expression -> . NIL
(59) expression -> . STRING
(60) expression -> . variable_w_dot
(61) expression -> . NAME LPAREN args RPAREN
(62) expression -> . NAME LPAREN RPAREN
(26) variable_w_dot -> . variable_w_dot DOT NAME
(27) variable_w_dot -> . NAME
NOT shift and go to state 49
MINUS shift and go to state 50
NEW shift and go to state 51
LPAREN shift and go to state 37
NUMBER shift and go to state 52
TRUE shift and go to state 53
FALSE shift and go to state 54
NIL shift and go to state 55
STRING shift and go to state 56
NAME shift and go to state 36
expression shift and go to state 85
variable_w_dot shift and go to state 63
state 47
(37) statement -> RETURN . expression SEMI
(38) statement -> RETURN . SEMI
(39) expression -> . NOT expression
(40) expression -> . MINUS expression
(41) expression -> . NEW NAME
(42) expression -> . expression EQ expression
(43) expression -> . expression GREATER expression
(44) expression -> . expression LESS expression
(45) expression -> . expression NOT_EQ expression
(46) expression -> . expression GREATER_EQ expression
(47) expression -> . expression LESS_EQ expression
(48) expression -> . expression PLUS expression
(49) expression -> . expression MINUS expression
(50) expression -> . expression MULTIPLY expression
(51) expression -> . expression DIVIDE expression
(52) expression -> . LPAREN expression RPAREN
(53) expression -> . expression OR expression
(54) expression -> . expression AND expression
(55) expression -> . NUMBER
(56) expression -> . TRUE
(57) expression -> . FALSE
(58) expression -> . NIL
(59) expression -> . STRING
(60) expression -> . variable_w_dot
(61) expression -> . NAME LPAREN args RPAREN
(62) expression -> . NAME LPAREN RPAREN
(26) variable_w_dot -> . variable_w_dot DOT NAME
(27) variable_w_dot -> . NAME
SEMI shift and go to state 87
NOT shift and go to state 49
MINUS shift and go to state 50
NEW shift and go to state 51
LPAREN shift and go to state 37
NUMBER shift and go to state 52
TRUE shift and go to state 53
FALSE shift and go to state 54
NIL shift and go to state 55
STRING shift and go to state 56
NAME shift and go to state 36
expression shift and go to state 86
variable_w_dot shift and go to state 63
state 48
(22) assign -> variable_w_dot . ASSIGN expression
(60) expression -> variable_w_dot .
(26) variable_w_dot -> variable_w_dot . DOT NAME
ASSIGN shift and go to state 88
SEMI reduce using rule 60 (expression -> variable_w_dot .)
EQ reduce using rule 60 (expression -> variable_w_dot .)
GREATER reduce using rule 60 (expression -> variable_w_dot .)
LESS reduce using rule 60 (expression -> variable_w_dot .)
NOT_EQ reduce using rule 60 (expression -> variable_w_dot .)
GREATER_EQ reduce using rule 60 (expression -> variable_w_dot .)
LESS_EQ reduce using rule 60 (expression -> variable_w_dot .)
PLUS reduce using rule 60 (expression -> variable_w_dot .)
MINUS reduce using rule 60 (expression -> variable_w_dot .)
MULTIPLY reduce using rule 60 (expression -> variable_w_dot .)
DIVIDE reduce using rule 60 (expression -> variable_w_dot .)
OR reduce using rule 60 (expression -> variable_w_dot .)
AND reduce using rule 60 (expression -> variable_w_dot .)
DOT shift and go to state 89
state 49
(39) expression -> NOT . expression
(39) expression -> . NOT expression
(40) expression -> . MINUS expression
(41) expression -> . NEW NAME
(42) expression -> . expression EQ expression
(43) expression -> . expression GREATER expression
(44) expression -> . expression LESS expression
(45) expression -> . expression NOT_EQ expression
(46) expression -> . expression GREATER_EQ expression
(47) expression -> . expression LESS_EQ expression
(48) expression -> . expression PLUS expression
(49) expression -> . expression MINUS expression
(50) expression -> . expression MULTIPLY expression
(51) expression -> . expression DIVIDE expression
(52) expression -> . LPAREN expression RPAREN
(53) expression -> . expression OR expression
(54) expression -> . expression AND expression
(55) expression -> . NUMBER
(56) expression -> . TRUE
(57) expression -> . FALSE
(58) expression -> . NIL
(59) expression -> . STRING
(60) expression -> . variable_w_dot
(61) expression -> . NAME LPAREN args RPAREN
(62) expression -> . NAME LPAREN RPAREN
(26) variable_w_dot -> . variable_w_dot DOT NAME
(27) variable_w_dot -> . NAME
NOT shift and go to state 49
MINUS shift and go to state 50
NEW shift and go to state 51
LPAREN shift and go to state 37
NUMBER shift and go to state 52
TRUE shift and go to state 53
FALSE shift and go to state 54
NIL shift and go to state 55
STRING shift and go to state 56
NAME shift and go to state 36
expression shift and go to state 90
variable_w_dot shift and go to state 63
state 50
(40) expression -> MINUS . expression
(39) expression -> . NOT expression
(40) expression -> . MINUS expression
(41) expression -> . NEW NAME
(42) expression -> . expression EQ expression
(43) expression -> . expression GREATER expression
(44) expression -> . expression LESS expression
(45) expression -> . expression NOT_EQ expression
(46) expression -> . expression GREATER_EQ expression
(47) expression -> . expression LESS_EQ expression
(48) expression -> . expression PLUS expression
(49) expression -> . expression MINUS expression
(50) expression -> . expression MULTIPLY expression
(51) expression -> . expression DIVIDE expression