-
Notifications
You must be signed in to change notification settings - Fork 0
/
parser.out
1591 lines (1302 loc) · 59.3 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 (http://www.dabeaz.com/ply)
Unused terminals:
BE
BREAK
COMMENT
END
LET
LISTEN
Grammar
Rule 0 S' -> statement
Rule 1 statement -> assignment
Rule 2 statement -> CONTINUE
Rule 3 statement -> function
Rule 4 statement -> LOOP conditional COMMA
Rule 5 statement -> SEND expression
Rule 6 statement -> IF conditional
Rule 7 statement -> IF identifier CALL args
Rule 8 statement -> SAY expression
Rule 9 assignment -> identifier ATTR expression
Rule 10 assignment -> BUILD identifier UP
Rule 11 assignment -> KNOCK identifier DOWN
Rule 12 assignment -> PUT expression IN identifier
Rule 13 function -> identifier FOO args
Rule 14 args -> identifier LOGICAL args
Rule 15 args -> identifier
Rule 16 expression -> expression PLUS expression
Rule 17 expression -> expression MINUS expression
Rule 18 expression -> expression MULT expression
Rule 19 expression -> expression DIV expression
Rule 20 conditional -> expression GT expression
Rule 21 conditional -> expression LT expression
Rule 22 conditional -> expression ATTR expression
Rule 23 conditional -> expression GE expression
Rule 24 conditional -> expression LE expression
Rule 25 expression -> identifier
Rule 26 expression -> literal
Rule 27 identifier -> PPVAR
Rule 28 identifier -> cmvar
Rule 29 identifier -> ID
Rule 30 identifier -> PRONOUN
Rule 31 cmvar -> CMVAR ID
Rule 32 literal -> LITERALNUM
Rule 33 literal -> LITERALSTR
Rule 34 literal -> TRUE
Rule 35 literal -> FALSE
Rule 36 literal -> NULL
Rule 37 literal -> poetic
Rule 38 poetic -> POETIC
Rule 39 empty -> <empty>
Terminals, with rules where they appear
ATTR : 9 22
BE :
BREAK :
BUILD : 10
CALL : 7
CMVAR : 31
COMMA : 4
COMMENT :
CONTINUE : 2
DIV : 19
DOWN : 11
END :
FALSE : 35
FOO : 13
GE : 23
GT : 20
ID : 29 31
IF : 6 7
IN : 12
KNOCK : 11
LE : 24
LET :
LISTEN :
LITERALNUM : 32
LITERALSTR : 33
LOGICAL : 14
LOOP : 4
LT : 21
MINUS : 17
MULT : 18
NULL : 36
PLUS : 16
POETIC : 38
PPVAR : 27
PRONOUN : 30
PUT : 12
SAY : 8
SEND : 5
TRUE : 34
UP : 10
error :
Nonterminals, with rules where they appear
args : 7 13 14
assignment : 1
cmvar : 28
conditional : 4 6
empty :
expression : 5 8 9 12 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24
function : 3
identifier : 7 9 10 11 12 13 14 15 25
literal : 26
poetic : 37
statement : 0
state 0
(0) S' -> . statement
(1) statement -> . assignment
(2) statement -> . CONTINUE
(3) statement -> . function
(4) statement -> . LOOP conditional COMMA
(5) statement -> . SEND expression
(6) statement -> . IF conditional
(7) statement -> . IF identifier CALL args
(8) statement -> . SAY expression
(9) assignment -> . identifier ATTR expression
(10) assignment -> . BUILD identifier UP
(11) assignment -> . KNOCK identifier DOWN
(12) assignment -> . PUT expression IN identifier
(13) function -> . identifier FOO args
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(31) cmvar -> . CMVAR ID
CONTINUE shift and go to state 3
LOOP shift and go to state 5
SEND shift and go to state 6
IF shift and go to state 7
SAY shift and go to state 9
BUILD shift and go to state 10
KNOCK shift and go to state 11
PUT shift and go to state 12
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
CMVAR shift and go to state 17
statement shift and go to state 1
assignment shift and go to state 2
function shift and go to state 4
identifier shift and go to state 8
cmvar shift and go to state 14
state 1
(0) S' -> statement .
state 2
(1) statement -> assignment .
$end reduce using rule 1 (statement -> assignment .)
state 3
(2) statement -> CONTINUE .
$end reduce using rule 2 (statement -> CONTINUE .)
state 4
(3) statement -> function .
$end reduce using rule 3 (statement -> function .)
state 5
(4) statement -> LOOP . conditional COMMA
(20) conditional -> . expression GT expression
(21) conditional -> . expression LT expression
(22) conditional -> . expression ATTR expression
(23) conditional -> . expression GE expression
(24) conditional -> . expression LE expression
(16) expression -> . expression PLUS expression
(17) expression -> . expression MINUS expression
(18) expression -> . expression MULT expression
(19) expression -> . expression DIV expression
(25) expression -> . identifier
(26) expression -> . literal
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(32) literal -> . LITERALNUM
(33) literal -> . LITERALSTR
(34) literal -> . TRUE
(35) literal -> . FALSE
(36) literal -> . NULL
(37) literal -> . poetic
(31) cmvar -> . CMVAR ID
(38) poetic -> . POETIC
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
LITERALNUM shift and go to state 22
LITERALSTR shift and go to state 23
TRUE shift and go to state 24
FALSE shift and go to state 25
NULL shift and go to state 26
CMVAR shift and go to state 17
POETIC shift and go to state 28
conditional shift and go to state 18
expression shift and go to state 19
identifier shift and go to state 20
literal shift and go to state 21
cmvar shift and go to state 14
poetic shift and go to state 27
state 6
(5) statement -> SEND . expression
(16) expression -> . expression PLUS expression
(17) expression -> . expression MINUS expression
(18) expression -> . expression MULT expression
(19) expression -> . expression DIV expression
(25) expression -> . identifier
(26) expression -> . literal
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(32) literal -> . LITERALNUM
(33) literal -> . LITERALSTR
(34) literal -> . TRUE
(35) literal -> . FALSE
(36) literal -> . NULL
(37) literal -> . poetic
(31) cmvar -> . CMVAR ID
(38) poetic -> . POETIC
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
LITERALNUM shift and go to state 22
LITERALSTR shift and go to state 23
TRUE shift and go to state 24
FALSE shift and go to state 25
NULL shift and go to state 26
CMVAR shift and go to state 17
POETIC shift and go to state 28
expression shift and go to state 29
identifier shift and go to state 20
literal shift and go to state 21
cmvar shift and go to state 14
poetic shift and go to state 27
state 7
(6) statement -> IF . conditional
(7) statement -> IF . identifier CALL args
(20) conditional -> . expression GT expression
(21) conditional -> . expression LT expression
(22) conditional -> . expression ATTR expression
(23) conditional -> . expression GE expression
(24) conditional -> . expression LE expression
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(16) expression -> . expression PLUS expression
(17) expression -> . expression MINUS expression
(18) expression -> . expression MULT expression
(19) expression -> . expression DIV expression
(25) expression -> . identifier
(26) expression -> . literal
(31) cmvar -> . CMVAR ID
(32) literal -> . LITERALNUM
(33) literal -> . LITERALSTR
(34) literal -> . TRUE
(35) literal -> . FALSE
(36) literal -> . NULL
(37) literal -> . poetic
(38) poetic -> . POETIC
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
CMVAR shift and go to state 17
LITERALNUM shift and go to state 22
LITERALSTR shift and go to state 23
TRUE shift and go to state 24
FALSE shift and go to state 25
NULL shift and go to state 26
POETIC shift and go to state 28
conditional shift and go to state 30
identifier shift and go to state 31
expression shift and go to state 19
cmvar shift and go to state 14
literal shift and go to state 21
poetic shift and go to state 27
state 8
(9) assignment -> identifier . ATTR expression
(13) function -> identifier . FOO args
ATTR shift and go to state 32
FOO shift and go to state 33
state 9
(8) statement -> SAY . expression
(16) expression -> . expression PLUS expression
(17) expression -> . expression MINUS expression
(18) expression -> . expression MULT expression
(19) expression -> . expression DIV expression
(25) expression -> . identifier
(26) expression -> . literal
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(32) literal -> . LITERALNUM
(33) literal -> . LITERALSTR
(34) literal -> . TRUE
(35) literal -> . FALSE
(36) literal -> . NULL
(37) literal -> . poetic
(31) cmvar -> . CMVAR ID
(38) poetic -> . POETIC
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
LITERALNUM shift and go to state 22
LITERALSTR shift and go to state 23
TRUE shift and go to state 24
FALSE shift and go to state 25
NULL shift and go to state 26
CMVAR shift and go to state 17
POETIC shift and go to state 28
expression shift and go to state 34
identifier shift and go to state 20
literal shift and go to state 21
cmvar shift and go to state 14
poetic shift and go to state 27
state 10
(10) assignment -> BUILD . identifier UP
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(31) cmvar -> . CMVAR ID
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
CMVAR shift and go to state 17
identifier shift and go to state 35
cmvar shift and go to state 14
state 11
(11) assignment -> KNOCK . identifier DOWN
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(31) cmvar -> . CMVAR ID
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
CMVAR shift and go to state 17
identifier shift and go to state 36
cmvar shift and go to state 14
state 12
(12) assignment -> PUT . expression IN identifier
(16) expression -> . expression PLUS expression
(17) expression -> . expression MINUS expression
(18) expression -> . expression MULT expression
(19) expression -> . expression DIV expression
(25) expression -> . identifier
(26) expression -> . literal
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(32) literal -> . LITERALNUM
(33) literal -> . LITERALSTR
(34) literal -> . TRUE
(35) literal -> . FALSE
(36) literal -> . NULL
(37) literal -> . poetic
(31) cmvar -> . CMVAR ID
(38) poetic -> . POETIC
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
LITERALNUM shift and go to state 22
LITERALSTR shift and go to state 23
TRUE shift and go to state 24
FALSE shift and go to state 25
NULL shift and go to state 26
CMVAR shift and go to state 17
POETIC shift and go to state 28
expression shift and go to state 37
identifier shift and go to state 20
literal shift and go to state 21
cmvar shift and go to state 14
poetic shift and go to state 27
state 13
(27) identifier -> PPVAR .
ATTR reduce using rule 27 (identifier -> PPVAR .)
FOO reduce using rule 27 (identifier -> PPVAR .)
GT reduce using rule 27 (identifier -> PPVAR .)
LT reduce using rule 27 (identifier -> PPVAR .)
GE reduce using rule 27 (identifier -> PPVAR .)
LE reduce using rule 27 (identifier -> PPVAR .)
PLUS reduce using rule 27 (identifier -> PPVAR .)
MINUS reduce using rule 27 (identifier -> PPVAR .)
MULT reduce using rule 27 (identifier -> PPVAR .)
DIV reduce using rule 27 (identifier -> PPVAR .)
$end reduce using rule 27 (identifier -> PPVAR .)
CALL reduce using rule 27 (identifier -> PPVAR .)
UP reduce using rule 27 (identifier -> PPVAR .)
DOWN reduce using rule 27 (identifier -> PPVAR .)
IN reduce using rule 27 (identifier -> PPVAR .)
LOGICAL reduce using rule 27 (identifier -> PPVAR .)
COMMA reduce using rule 27 (identifier -> PPVAR .)
state 14
(28) identifier -> cmvar .
ATTR reduce using rule 28 (identifier -> cmvar .)
FOO reduce using rule 28 (identifier -> cmvar .)
GT reduce using rule 28 (identifier -> cmvar .)
LT reduce using rule 28 (identifier -> cmvar .)
GE reduce using rule 28 (identifier -> cmvar .)
LE reduce using rule 28 (identifier -> cmvar .)
PLUS reduce using rule 28 (identifier -> cmvar .)
MINUS reduce using rule 28 (identifier -> cmvar .)
MULT reduce using rule 28 (identifier -> cmvar .)
DIV reduce using rule 28 (identifier -> cmvar .)
$end reduce using rule 28 (identifier -> cmvar .)
CALL reduce using rule 28 (identifier -> cmvar .)
UP reduce using rule 28 (identifier -> cmvar .)
DOWN reduce using rule 28 (identifier -> cmvar .)
IN reduce using rule 28 (identifier -> cmvar .)
LOGICAL reduce using rule 28 (identifier -> cmvar .)
COMMA reduce using rule 28 (identifier -> cmvar .)
state 15
(29) identifier -> ID .
ATTR reduce using rule 29 (identifier -> ID .)
FOO reduce using rule 29 (identifier -> ID .)
GT reduce using rule 29 (identifier -> ID .)
LT reduce using rule 29 (identifier -> ID .)
GE reduce using rule 29 (identifier -> ID .)
LE reduce using rule 29 (identifier -> ID .)
PLUS reduce using rule 29 (identifier -> ID .)
MINUS reduce using rule 29 (identifier -> ID .)
MULT reduce using rule 29 (identifier -> ID .)
DIV reduce using rule 29 (identifier -> ID .)
$end reduce using rule 29 (identifier -> ID .)
CALL reduce using rule 29 (identifier -> ID .)
UP reduce using rule 29 (identifier -> ID .)
DOWN reduce using rule 29 (identifier -> ID .)
IN reduce using rule 29 (identifier -> ID .)
LOGICAL reduce using rule 29 (identifier -> ID .)
COMMA reduce using rule 29 (identifier -> ID .)
state 16
(30) identifier -> PRONOUN .
ATTR reduce using rule 30 (identifier -> PRONOUN .)
FOO reduce using rule 30 (identifier -> PRONOUN .)
GT reduce using rule 30 (identifier -> PRONOUN .)
LT reduce using rule 30 (identifier -> PRONOUN .)
GE reduce using rule 30 (identifier -> PRONOUN .)
LE reduce using rule 30 (identifier -> PRONOUN .)
PLUS reduce using rule 30 (identifier -> PRONOUN .)
MINUS reduce using rule 30 (identifier -> PRONOUN .)
MULT reduce using rule 30 (identifier -> PRONOUN .)
DIV reduce using rule 30 (identifier -> PRONOUN .)
$end reduce using rule 30 (identifier -> PRONOUN .)
CALL reduce using rule 30 (identifier -> PRONOUN .)
UP reduce using rule 30 (identifier -> PRONOUN .)
DOWN reduce using rule 30 (identifier -> PRONOUN .)
IN reduce using rule 30 (identifier -> PRONOUN .)
LOGICAL reduce using rule 30 (identifier -> PRONOUN .)
COMMA reduce using rule 30 (identifier -> PRONOUN .)
state 17
(31) cmvar -> CMVAR . ID
ID shift and go to state 38
state 18
(4) statement -> LOOP conditional . COMMA
COMMA shift and go to state 39
state 19
(20) conditional -> expression . GT expression
(21) conditional -> expression . LT expression
(22) conditional -> expression . ATTR expression
(23) conditional -> expression . GE expression
(24) conditional -> expression . LE expression
(16) expression -> expression . PLUS expression
(17) expression -> expression . MINUS expression
(18) expression -> expression . MULT expression
(19) expression -> expression . DIV expression
GT shift and go to state 40
LT shift and go to state 41
ATTR shift and go to state 42
GE shift and go to state 43
LE shift and go to state 44
PLUS shift and go to state 45
MINUS shift and go to state 46
MULT shift and go to state 47
DIV shift and go to state 48
state 20
(25) expression -> identifier .
GT reduce using rule 25 (expression -> identifier .)
LT reduce using rule 25 (expression -> identifier .)
ATTR reduce using rule 25 (expression -> identifier .)
GE reduce using rule 25 (expression -> identifier .)
LE reduce using rule 25 (expression -> identifier .)
PLUS reduce using rule 25 (expression -> identifier .)
MINUS reduce using rule 25 (expression -> identifier .)
MULT reduce using rule 25 (expression -> identifier .)
DIV reduce using rule 25 (expression -> identifier .)
$end reduce using rule 25 (expression -> identifier .)
IN reduce using rule 25 (expression -> identifier .)
COMMA reduce using rule 25 (expression -> identifier .)
state 21
(26) expression -> literal .
GT reduce using rule 26 (expression -> literal .)
LT reduce using rule 26 (expression -> literal .)
ATTR reduce using rule 26 (expression -> literal .)
GE reduce using rule 26 (expression -> literal .)
LE reduce using rule 26 (expression -> literal .)
PLUS reduce using rule 26 (expression -> literal .)
MINUS reduce using rule 26 (expression -> literal .)
MULT reduce using rule 26 (expression -> literal .)
DIV reduce using rule 26 (expression -> literal .)
$end reduce using rule 26 (expression -> literal .)
IN reduce using rule 26 (expression -> literal .)
COMMA reduce using rule 26 (expression -> literal .)
state 22
(32) literal -> LITERALNUM .
GT reduce using rule 32 (literal -> LITERALNUM .)
LT reduce using rule 32 (literal -> LITERALNUM .)
ATTR reduce using rule 32 (literal -> LITERALNUM .)
GE reduce using rule 32 (literal -> LITERALNUM .)
LE reduce using rule 32 (literal -> LITERALNUM .)
PLUS reduce using rule 32 (literal -> LITERALNUM .)
MINUS reduce using rule 32 (literal -> LITERALNUM .)
MULT reduce using rule 32 (literal -> LITERALNUM .)
DIV reduce using rule 32 (literal -> LITERALNUM .)
$end reduce using rule 32 (literal -> LITERALNUM .)
IN reduce using rule 32 (literal -> LITERALNUM .)
COMMA reduce using rule 32 (literal -> LITERALNUM .)
state 23
(33) literal -> LITERALSTR .
GT reduce using rule 33 (literal -> LITERALSTR .)
LT reduce using rule 33 (literal -> LITERALSTR .)
ATTR reduce using rule 33 (literal -> LITERALSTR .)
GE reduce using rule 33 (literal -> LITERALSTR .)
LE reduce using rule 33 (literal -> LITERALSTR .)
PLUS reduce using rule 33 (literal -> LITERALSTR .)
MINUS reduce using rule 33 (literal -> LITERALSTR .)
MULT reduce using rule 33 (literal -> LITERALSTR .)
DIV reduce using rule 33 (literal -> LITERALSTR .)
$end reduce using rule 33 (literal -> LITERALSTR .)
IN reduce using rule 33 (literal -> LITERALSTR .)
COMMA reduce using rule 33 (literal -> LITERALSTR .)
state 24
(34) literal -> TRUE .
GT reduce using rule 34 (literal -> TRUE .)
LT reduce using rule 34 (literal -> TRUE .)
ATTR reduce using rule 34 (literal -> TRUE .)
GE reduce using rule 34 (literal -> TRUE .)
LE reduce using rule 34 (literal -> TRUE .)
PLUS reduce using rule 34 (literal -> TRUE .)
MINUS reduce using rule 34 (literal -> TRUE .)
MULT reduce using rule 34 (literal -> TRUE .)
DIV reduce using rule 34 (literal -> TRUE .)
$end reduce using rule 34 (literal -> TRUE .)
IN reduce using rule 34 (literal -> TRUE .)
COMMA reduce using rule 34 (literal -> TRUE .)
state 25
(35) literal -> FALSE .
GT reduce using rule 35 (literal -> FALSE .)
LT reduce using rule 35 (literal -> FALSE .)
ATTR reduce using rule 35 (literal -> FALSE .)
GE reduce using rule 35 (literal -> FALSE .)
LE reduce using rule 35 (literal -> FALSE .)
PLUS reduce using rule 35 (literal -> FALSE .)
MINUS reduce using rule 35 (literal -> FALSE .)
MULT reduce using rule 35 (literal -> FALSE .)
DIV reduce using rule 35 (literal -> FALSE .)
$end reduce using rule 35 (literal -> FALSE .)
IN reduce using rule 35 (literal -> FALSE .)
COMMA reduce using rule 35 (literal -> FALSE .)
state 26
(36) literal -> NULL .
GT reduce using rule 36 (literal -> NULL .)
LT reduce using rule 36 (literal -> NULL .)
ATTR reduce using rule 36 (literal -> NULL .)
GE reduce using rule 36 (literal -> NULL .)
LE reduce using rule 36 (literal -> NULL .)
PLUS reduce using rule 36 (literal -> NULL .)
MINUS reduce using rule 36 (literal -> NULL .)
MULT reduce using rule 36 (literal -> NULL .)
DIV reduce using rule 36 (literal -> NULL .)
$end reduce using rule 36 (literal -> NULL .)
IN reduce using rule 36 (literal -> NULL .)
COMMA reduce using rule 36 (literal -> NULL .)
state 27
(37) literal -> poetic .
GT reduce using rule 37 (literal -> poetic .)
LT reduce using rule 37 (literal -> poetic .)
ATTR reduce using rule 37 (literal -> poetic .)
GE reduce using rule 37 (literal -> poetic .)
LE reduce using rule 37 (literal -> poetic .)
PLUS reduce using rule 37 (literal -> poetic .)
MINUS reduce using rule 37 (literal -> poetic .)
MULT reduce using rule 37 (literal -> poetic .)
DIV reduce using rule 37 (literal -> poetic .)
$end reduce using rule 37 (literal -> poetic .)
IN reduce using rule 37 (literal -> poetic .)
COMMA reduce using rule 37 (literal -> poetic .)
state 28
(38) poetic -> POETIC .
GT reduce using rule 38 (poetic -> POETIC .)
LT reduce using rule 38 (poetic -> POETIC .)
ATTR reduce using rule 38 (poetic -> POETIC .)
GE reduce using rule 38 (poetic -> POETIC .)
LE reduce using rule 38 (poetic -> POETIC .)
PLUS reduce using rule 38 (poetic -> POETIC .)
MINUS reduce using rule 38 (poetic -> POETIC .)
MULT reduce using rule 38 (poetic -> POETIC .)
DIV reduce using rule 38 (poetic -> POETIC .)
$end reduce using rule 38 (poetic -> POETIC .)
IN reduce using rule 38 (poetic -> POETIC .)
COMMA reduce using rule 38 (poetic -> POETIC .)
state 29
(5) statement -> SEND expression .
(16) expression -> expression . PLUS expression
(17) expression -> expression . MINUS expression
(18) expression -> expression . MULT expression
(19) expression -> expression . DIV expression
$end reduce using rule 5 (statement -> SEND expression .)
PLUS shift and go to state 45
MINUS shift and go to state 46
MULT shift and go to state 47
DIV shift and go to state 48
state 30
(6) statement -> IF conditional .
$end reduce using rule 6 (statement -> IF conditional .)
state 31
(7) statement -> IF identifier . CALL args
(25) expression -> identifier .
CALL shift and go to state 49
GT reduce using rule 25 (expression -> identifier .)
LT reduce using rule 25 (expression -> identifier .)
ATTR reduce using rule 25 (expression -> identifier .)
GE reduce using rule 25 (expression -> identifier .)
LE reduce using rule 25 (expression -> identifier .)
PLUS reduce using rule 25 (expression -> identifier .)
MINUS reduce using rule 25 (expression -> identifier .)
MULT reduce using rule 25 (expression -> identifier .)
DIV reduce using rule 25 (expression -> identifier .)
state 32
(9) assignment -> identifier ATTR . expression
(16) expression -> . expression PLUS expression
(17) expression -> . expression MINUS expression
(18) expression -> . expression MULT expression
(19) expression -> . expression DIV expression
(25) expression -> . identifier
(26) expression -> . literal
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(32) literal -> . LITERALNUM
(33) literal -> . LITERALSTR
(34) literal -> . TRUE
(35) literal -> . FALSE
(36) literal -> . NULL
(37) literal -> . poetic
(31) cmvar -> . CMVAR ID
(38) poetic -> . POETIC
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
LITERALNUM shift and go to state 22
LITERALSTR shift and go to state 23
TRUE shift and go to state 24
FALSE shift and go to state 25
NULL shift and go to state 26
CMVAR shift and go to state 17
POETIC shift and go to state 28
identifier shift and go to state 20
expression shift and go to state 50
literal shift and go to state 21
cmvar shift and go to state 14
poetic shift and go to state 27
state 33
(13) function -> identifier FOO . args
(14) args -> . identifier LOGICAL args
(15) args -> . identifier
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(31) cmvar -> . CMVAR ID
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
CMVAR shift and go to state 17
identifier shift and go to state 51
args shift and go to state 52
cmvar shift and go to state 14
state 34
(8) statement -> SAY expression .
(16) expression -> expression . PLUS expression
(17) expression -> expression . MINUS expression
(18) expression -> expression . MULT expression
(19) expression -> expression . DIV expression
$end reduce using rule 8 (statement -> SAY expression .)
PLUS shift and go to state 45
MINUS shift and go to state 46
MULT shift and go to state 47
DIV shift and go to state 48
state 35
(10) assignment -> BUILD identifier . UP
UP shift and go to state 53
state 36
(11) assignment -> KNOCK identifier . DOWN
DOWN shift and go to state 54
state 37
(12) assignment -> PUT expression . IN identifier
(16) expression -> expression . PLUS expression
(17) expression -> expression . MINUS expression
(18) expression -> expression . MULT expression
(19) expression -> expression . DIV expression
IN shift and go to state 55
PLUS shift and go to state 45
MINUS shift and go to state 46
MULT shift and go to state 47
DIV shift and go to state 48
state 38
(31) cmvar -> CMVAR ID .
ATTR reduce using rule 31 (cmvar -> CMVAR ID .)
FOO reduce using rule 31 (cmvar -> CMVAR ID .)
GT reduce using rule 31 (cmvar -> CMVAR ID .)
LT reduce using rule 31 (cmvar -> CMVAR ID .)
GE reduce using rule 31 (cmvar -> CMVAR ID .)
LE reduce using rule 31 (cmvar -> CMVAR ID .)
PLUS reduce using rule 31 (cmvar -> CMVAR ID .)
MINUS reduce using rule 31 (cmvar -> CMVAR ID .)
MULT reduce using rule 31 (cmvar -> CMVAR ID .)
DIV reduce using rule 31 (cmvar -> CMVAR ID .)
$end reduce using rule 31 (cmvar -> CMVAR ID .)
CALL reduce using rule 31 (cmvar -> CMVAR ID .)
UP reduce using rule 31 (cmvar -> CMVAR ID .)
DOWN reduce using rule 31 (cmvar -> CMVAR ID .)
IN reduce using rule 31 (cmvar -> CMVAR ID .)
LOGICAL reduce using rule 31 (cmvar -> CMVAR ID .)
COMMA reduce using rule 31 (cmvar -> CMVAR ID .)
state 39
(4) statement -> LOOP conditional COMMA .
$end reduce using rule 4 (statement -> LOOP conditional COMMA .)
state 40
(20) conditional -> expression GT . expression
(16) expression -> . expression PLUS expression
(17) expression -> . expression MINUS expression
(18) expression -> . expression MULT expression
(19) expression -> . expression DIV expression
(25) expression -> . identifier
(26) expression -> . literal
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(32) literal -> . LITERALNUM
(33) literal -> . LITERALSTR
(34) literal -> . TRUE
(35) literal -> . FALSE
(36) literal -> . NULL
(37) literal -> . poetic
(31) cmvar -> . CMVAR ID
(38) poetic -> . POETIC
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
LITERALNUM shift and go to state 22
LITERALSTR shift and go to state 23
TRUE shift and go to state 24
FALSE shift and go to state 25
NULL shift and go to state 26
CMVAR shift and go to state 17
POETIC shift and go to state 28
expression shift and go to state 56
identifier shift and go to state 20
literal shift and go to state 21
cmvar shift and go to state 14
poetic shift and go to state 27
state 41
(21) conditional -> expression LT . expression
(16) expression -> . expression PLUS expression
(17) expression -> . expression MINUS expression
(18) expression -> . expression MULT expression
(19) expression -> . expression DIV expression
(25) expression -> . identifier
(26) expression -> . literal
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(32) literal -> . LITERALNUM
(33) literal -> . LITERALSTR
(34) literal -> . TRUE
(35) literal -> . FALSE
(36) literal -> . NULL
(37) literal -> . poetic
(31) cmvar -> . CMVAR ID
(38) poetic -> . POETIC
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
LITERALNUM shift and go to state 22
LITERALSTR shift and go to state 23
TRUE shift and go to state 24
FALSE shift and go to state 25
NULL shift and go to state 26
CMVAR shift and go to state 17
POETIC shift and go to state 28
expression shift and go to state 57
identifier shift and go to state 20
literal shift and go to state 21
cmvar shift and go to state 14
poetic shift and go to state 27
state 42
(22) conditional -> expression ATTR . expression
(16) expression -> . expression PLUS expression
(17) expression -> . expression MINUS expression
(18) expression -> . expression MULT expression
(19) expression -> . expression DIV expression
(25) expression -> . identifier
(26) expression -> . literal
(27) identifier -> . PPVAR
(28) identifier -> . cmvar
(29) identifier -> . ID
(30) identifier -> . PRONOUN
(32) literal -> . LITERALNUM
(33) literal -> . LITERALSTR
(34) literal -> . TRUE
(35) literal -> . FALSE
(36) literal -> . NULL
(37) literal -> . poetic
(31) cmvar -> . CMVAR ID
(38) poetic -> . POETIC
PPVAR shift and go to state 13
ID shift and go to state 15
PRONOUN shift and go to state 16
LITERALNUM shift and go to state 22
LITERALSTR shift and go to state 23