-
Notifications
You must be signed in to change notification settings - Fork 384
/
Copy pathy.output
1840 lines (1281 loc) · 32.5 KB
/
y.output
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
state 0
$accept: .start $end
stmt_list: . (2)
. reduce 2 (src line 99)
stmt_list goto 2
start goto 1
state 1
$accept: start.$end
$end accept
. error
state 2
start: stmt_list. (1)
stmt_list: stmt_list.stmt
mark_pos: . (124)
metric_hide_spec: . (93)
$end reduce 1 (src line 91)
INVALID shift 13
COUNTER reduce 93 (src line 520)
GAUGE reduce 93 (src line 520)
TIMER reduce 93 (src line 520)
TEXT reduce 93 (src line 520)
HISTOGRAM reduce 93 (src line 520)
CONST shift 11
HIDDEN shift 23
NEXT shift 10
STOP shift 12
STRING shift 36
CAPREF shift 34
CAPREF_NAMED shift 35
ID shift 43
INTLITERAL shift 38
FLOATLITERAL shift 39
NOT shift 31
LPAREN shift 37
NL shift 16
. reduce 124 (src line 707)
stmt goto 3
conditional_stmt goto 4
conditional_expr goto 14
expr_stmt goto 5
expr goto 17
primary_expr goto 28
multiplicative_expr goto 44
additive_expr goto 42
postfix_expr goto 22
unary_expr goto 27
assign_expr goto 21
rel_expr goto 30
shift_expr goto 40
bitwise_expr goto 25
logical_expr goto 20
indexed_expr goto 32
id_expr goto 41
concat_expr goto 24
pattern_expr goto 19
metric_declaration goto 6
decorator_declaration goto 7
decoration_stmt goto 8
regex_pattern goto 29
match_expr goto 26
delete_stmt goto 9
builtin_expr goto 33
metric_hide_spec goto 18
mark_pos goto 15
state 3
stmt_list: stmt_list stmt. (3)
. reduce 3 (src line 104)
state 4
stmt: conditional_stmt. (4)
. reduce 4 (src line 114)
state 5
stmt: expr_stmt. (5)
. reduce 5 (src line 117)
state 6
stmt: metric_declaration. (6)
. reduce 6 (src line 119)
state 7
stmt: decorator_declaration. (7)
. reduce 7 (src line 121)
state 8
stmt: decoration_stmt. (8)
. reduce 8 (src line 123)
state 9
stmt: delete_stmt. (9)
. reduce 9 (src line 125)
state 10
stmt: NEXT. (10)
. reduce 10 (src line 127)
state 11
stmt: CONST.id_expr opt_nl concat_expr
ID shift 43
. error
id_expr goto 45
state 12
stmt: STOP. (12)
. reduce 12 (src line 135)
state 13
stmt: INVALID. (13)
. reduce 13 (src line 139)
state 14
conditional_stmt: conditional_expr.compound_stmt ELSE compound_stmt
conditional_stmt: conditional_expr.compound_stmt
LCURLY shift 47
. error
compound_stmt goto 46
state 15
conditional_stmt: mark_pos.OTHERWISE compound_stmt
builtin_expr: mark_pos.BUILTIN LPAREN RPAREN
builtin_expr: mark_pos.BUILTIN LPAREN arg_expr_list RPAREN
regex_pattern: mark_pos.DIV in_regex REGEX DIV
decorator_declaration: mark_pos.DEF ID compound_stmt
decoration_stmt: mark_pos.DECO compound_stmt
delete_stmt: mark_pos.DEL postfix_expr AFTER DURATIONLITERAL
delete_stmt: mark_pos.DEL postfix_expr
DEF shift 51
DEL shift 53
OTHERWISE shift 48
BUILTIN shift 49
DECO shift 52
DIV shift 50
. error
state 16
expr_stmt: NL. (20)
. reduce 20 (src line 184)
state 17
expr_stmt: expr.NL
NL shift 54
. error
state 18
metric_declaration: metric_hide_spec.metric_type_spec metric_decl_attr_spec
COUNTER shift 56
GAUGE shift 57
TIMER shift 58
TEXT shift 59
HISTOGRAM shift 60
. error
metric_type_spec goto 55
state 19
conditional_expr: pattern_expr. (17)
conditional_expr: pattern_expr.logical_op opt_nl logical_expr
AND shift 62
OR shift 63
. reduce 17 (src line 166)
logical_op goto 61
state 20
conditional_expr: logical_expr. (19)
logical_expr: logical_expr.logical_op opt_nl bitwise_expr
logical_expr: logical_expr.logical_op opt_nl match_expr
AND shift 62
OR shift 63
. reduce 19 (src line 179)
logical_op goto 64
state 21
expr: assign_expr. (23)
. reduce 23 (src line 200)
state 22
expr: postfix_expr. (24)
unary_expr: postfix_expr. (68)
postfix_expr: postfix_expr.postfix_op
INC shift 66
DEC shift 67
NL reduce 24 (src line 203)
. reduce 68 (src line 384)
postfix_op goto 65
state 23
metric_hide_spec: HIDDEN. (94)
. reduce 94 (src line 525)
state 24
pattern_expr: concat_expr. (58)
concat_expr: concat_expr.PLUS opt_nl regex_pattern
concat_expr: concat_expr.PLUS opt_nl id_expr
PLUS shift 68
. reduce 58 (src line 341)
state 25
logical_expr: bitwise_expr. (27)
bitwise_expr: bitwise_expr.bitwise_op opt_nl rel_expr
BITAND shift 70
XOR shift 72
BITOR shift 71
. reduce 27 (src line 220)
bitwise_op goto 69
state 26
logical_expr: match_expr. (28)
. reduce 28 (src line 223)
state 27
assign_expr: unary_expr.ASSIGN opt_nl logical_expr
assign_expr: unary_expr.ADD_ASSIGN opt_nl logical_expr
multiplicative_expr: unary_expr. (62)
ADD_ASSIGN shift 74
ASSIGN shift 73
. reduce 62 (src line 363)
state 28
match_expr: primary_expr.match_op opt_nl pattern_expr
match_expr: primary_expr.match_op opt_nl primary_expr
postfix_expr: primary_expr. (70)
MATCH shift 76
NOT_MATCH shift 77
. reduce 70 (src line 394)
match_op goto 75
state 29
concat_expr: regex_pattern. (59)
. reduce 59 (src line 349)
state 30
bitwise_expr: rel_expr. (33)
rel_expr: rel_expr.rel_op opt_nl shift_expr
LT shift 79
GT shift 80
LE shift 81
GE shift 82
EQ shift 83
NE shift 84
. reduce 33 (src line 243)
rel_op goto 78
state 31
unary_expr: NOT.unary_expr
mark_pos: . (124)
STRING shift 36
CAPREF shift 34
CAPREF_NAMED shift 35
ID shift 43
INTLITERAL shift 38
FLOATLITERAL shift 39
NOT shift 31
LPAREN shift 37
. reduce 124 (src line 707)
primary_expr goto 87
postfix_expr goto 86
unary_expr goto 85
indexed_expr goto 32
id_expr goto 41
builtin_expr goto 33
mark_pos goto 88
state 32
primary_expr: indexed_expr. (74)
indexed_expr: indexed_expr.LSQUARE arg_expr_list RSQUARE
LSQUARE shift 89
. reduce 74 (src line 411)
state 33
primary_expr: builtin_expr. (75)
. reduce 75 (src line 414)
state 34
primary_expr: CAPREF. (76)
. reduce 76 (src line 416)
state 35
primary_expr: CAPREF_NAMED. (77)
. reduce 77 (src line 420)
state 36
primary_expr: STRING. (78)
. reduce 78 (src line 424)
state 37
primary_expr: LPAREN.logical_expr RPAREN
mark_pos: . (124)
STRING shift 36
CAPREF shift 34
CAPREF_NAMED shift 35
ID shift 43
INTLITERAL shift 38
FLOATLITERAL shift 39
NOT shift 31
LPAREN shift 37
. reduce 124 (src line 707)
primary_expr goto 28
multiplicative_expr goto 44
additive_expr goto 42
postfix_expr goto 86
unary_expr goto 91
rel_expr goto 30
shift_expr goto 40
bitwise_expr goto 25
logical_expr goto 90
indexed_expr goto 32
id_expr goto 41
match_expr goto 26
builtin_expr goto 33
mark_pos goto 88
state 38
primary_expr: INTLITERAL. (80)
. reduce 80 (src line 432)
state 39
primary_expr: FLOATLITERAL. (81)
. reduce 81 (src line 436)
state 40
rel_expr: shift_expr. (38)
shift_expr: shift_expr.shift_op opt_nl additive_expr
SHL shift 93
SHR shift 94
. reduce 38 (src line 262)
shift_op goto 92
state 41
indexed_expr: id_expr. (82)
. reduce 82 (src line 443)
state 42
shift_expr: additive_expr. (46)
additive_expr: additive_expr.add_op opt_nl multiplicative_expr
MINUS shift 97
PLUS shift 96
. reduce 46 (src line 287)
add_op goto 95
state 43
id_expr: ID. (84)
. reduce 84 (src line 459)
state 44
additive_expr: multiplicative_expr. (50)
multiplicative_expr: multiplicative_expr.mul_op opt_nl unary_expr
DIV shift 100
MOD shift 101
MUL shift 99
POW shift 102
. reduce 50 (src line 304)
mul_op goto 98
state 45
stmt: CONST id_expr.opt_nl concat_expr
opt_nl: . (126)
NL shift 104
. reduce 126 (src line 727)
opt_nl goto 103
state 46
conditional_stmt: conditional_expr compound_stmt.ELSE compound_stmt
conditional_stmt: conditional_expr compound_stmt. (15)
ELSE shift 105
. reduce 15 (src line 151)
state 47
compound_stmt: LCURLY.stmt_list RCURLY
stmt_list: . (2)
. reduce 2 (src line 99)
stmt_list goto 106
state 48
conditional_stmt: mark_pos OTHERWISE.compound_stmt
LCURLY shift 47
. error
compound_stmt goto 107
state 49
builtin_expr: mark_pos BUILTIN.LPAREN RPAREN
builtin_expr: mark_pos BUILTIN.LPAREN arg_expr_list RPAREN
LPAREN shift 108
. error
state 50
regex_pattern: mark_pos DIV.in_regex REGEX DIV
in_regex: . (125)
. reduce 125 (src line 717)
in_regex goto 109
state 51
decorator_declaration: mark_pos DEF.ID compound_stmt
ID shift 110
. error
state 52
decoration_stmt: mark_pos DECO.compound_stmt
LCURLY shift 47
. error
compound_stmt goto 111
state 53
delete_stmt: mark_pos DEL.postfix_expr AFTER DURATIONLITERAL
delete_stmt: mark_pos DEL.postfix_expr
mark_pos: . (124)
STRING shift 36
CAPREF shift 34
CAPREF_NAMED shift 35
ID shift 43
INTLITERAL shift 38
FLOATLITERAL shift 39
LPAREN shift 37
. reduce 124 (src line 707)
primary_expr goto 87
postfix_expr goto 112
indexed_expr goto 32
id_expr goto 41
builtin_expr goto 33
mark_pos goto 88
state 54
expr_stmt: expr NL. (21)
. reduce 21 (src line 187)
state 55
metric_declaration: metric_hide_spec metric_type_spec.metric_decl_attr_spec
STRING shift 116
ID shift 115
. error
metric_decl_attr_spec goto 113
metric_name_spec goto 114
state 56
metric_type_spec: COUNTER. (102)
. reduce 102 (src line 572)
state 57
metric_type_spec: GAUGE. (103)
. reduce 103 (src line 577)
state 58
metric_type_spec: TIMER. (104)
. reduce 104 (src line 581)
state 59
metric_type_spec: TEXT. (105)
. reduce 105 (src line 585)
state 60
metric_type_spec: HISTOGRAM. (106)
. reduce 106 (src line 589)
state 61
conditional_expr: pattern_expr logical_op.opt_nl logical_expr
opt_nl: . (126)
NL shift 104
. reduce 126 (src line 727)
opt_nl goto 117
state 62
logical_op: AND. (31)
. reduce 31 (src line 235)
state 63
logical_op: OR. (32)
. reduce 32 (src line 238)
state 64
logical_expr: logical_expr logical_op.opt_nl bitwise_expr
logical_expr: logical_expr logical_op.opt_nl match_expr
opt_nl: . (126)
NL shift 104
. reduce 126 (src line 727)
opt_nl goto 118
state 65
postfix_expr: postfix_expr postfix_op. (71)
. reduce 71 (src line 397)
state 66
postfix_op: INC. (72)
. reduce 72 (src line 403)
state 67
postfix_op: DEC. (73)
. reduce 73 (src line 406)
state 68
concat_expr: concat_expr PLUS.opt_nl regex_pattern
concat_expr: concat_expr PLUS.opt_nl id_expr
opt_nl: . (126)
NL shift 104
. reduce 126 (src line 727)
opt_nl goto 119
state 69
bitwise_expr: bitwise_expr bitwise_op.opt_nl rel_expr
opt_nl: . (126)
NL shift 104
. reduce 126 (src line 727)
opt_nl goto 120
state 70
bitwise_op: BITAND. (35)
. reduce 35 (src line 252)
state 71
bitwise_op: BITOR. (36)
. reduce 36 (src line 255)
state 72
bitwise_op: XOR. (37)
. reduce 37 (src line 257)
state 73
assign_expr: unary_expr ASSIGN.opt_nl logical_expr
opt_nl: . (126)
NL shift 104
. reduce 126 (src line 727)
opt_nl goto 121
state 74
assign_expr: unary_expr ADD_ASSIGN.opt_nl logical_expr
opt_nl: . (126)
NL shift 104
. reduce 126 (src line 727)
opt_nl goto 122
state 75
match_expr: primary_expr match_op.opt_nl pattern_expr
match_expr: primary_expr match_op.opt_nl primary_expr
opt_nl: . (126)
NL shift 104
. reduce 126 (src line 727)
opt_nl goto 123
state 76
match_op: MATCH. (56)
. reduce 56 (src line 332)
state 77
match_op: NOT_MATCH. (57)
. reduce 57 (src line 335)
state 78
rel_expr: rel_expr rel_op.opt_nl shift_expr
opt_nl: . (126)
NL shift 104
. reduce 126 (src line 727)
opt_nl goto 124
state 79
rel_op: LT. (40)
. reduce 40 (src line 271)
state 80
rel_op: GT. (41)
. reduce 41 (src line 274)
state 81
rel_op: LE. (42)
. reduce 42 (src line 276)
state 82
rel_op: GE. (43)
. reduce 43 (src line 278)
state 83
rel_op: EQ. (44)
. reduce 44 (src line 280)
state 84
rel_op: NE. (45)
. reduce 45 (src line 282)
state 85
unary_expr: NOT unary_expr. (69)
. reduce 69 (src line 387)
state 86
unary_expr: postfix_expr. (68)
postfix_expr: postfix_expr.postfix_op
INC shift 66
DEC shift 67
. reduce 68 (src line 384)
postfix_op goto 65
state 87
postfix_expr: primary_expr. (70)
. reduce 70 (src line 394)
state 88
builtin_expr: mark_pos.BUILTIN LPAREN RPAREN
builtin_expr: mark_pos.BUILTIN LPAREN arg_expr_list RPAREN
BUILTIN shift 49
. error
state 89
indexed_expr: indexed_expr LSQUARE.arg_expr_list RSQUARE
mark_pos: . (124)
STRING shift 36
CAPREF shift 34
CAPREF_NAMED shift 35
ID shift 43
INTLITERAL shift 38
FLOATLITERAL shift 39
NOT shift 31
LPAREN shift 37
. reduce 124 (src line 707)
arg_expr_list goto 125
primary_expr goto 28
multiplicative_expr goto 44
additive_expr goto 42
postfix_expr goto 86
unary_expr goto 91
rel_expr goto 30
shift_expr goto 40
bitwise_expr goto 25
logical_expr goto 127
indexed_expr goto 32
id_expr goto 41
concat_expr goto 24
pattern_expr goto 128
regex_pattern goto 29
match_expr goto 26
builtin_expr goto 33
arg_expr goto 126
mark_pos goto 129
state 90
logical_expr: logical_expr.logical_op opt_nl bitwise_expr
logical_expr: logical_expr.logical_op opt_nl match_expr
primary_expr: LPAREN logical_expr.RPAREN
AND shift 62
OR shift 63
RPAREN shift 130
. error
logical_op goto 64
state 91
multiplicative_expr: unary_expr. (62)
. reduce 62 (src line 363)
state 92
shift_expr: shift_expr shift_op.opt_nl additive_expr
opt_nl: . (126)
NL shift 104
. reduce 126 (src line 727)
opt_nl goto 131
state 93
shift_op: SHL. (48)
. reduce 48 (src line 296)
state 94
shift_op: SHR. (49)
. reduce 49 (src line 299)
state 95
additive_expr: additive_expr add_op.opt_nl multiplicative_expr
opt_nl: . (126)
NL shift 104
. reduce 126 (src line 727)
opt_nl goto 132
state 96
add_op: PLUS. (52)
. reduce 52 (src line 313)
state 97
add_op: MINUS. (53)
. reduce 53 (src line 316)
state 98
multiplicative_expr: multiplicative_expr mul_op.opt_nl unary_expr
opt_nl: . (126)
NL shift 104
. reduce 126 (src line 727)
opt_nl goto 133
state 99
mul_op: MUL. (64)
. reduce 64 (src line 372)
state 100
mul_op: DIV. (65)
. reduce 65 (src line 375)
state 101
mul_op: MOD. (66)
. reduce 66 (src line 377)
state 102
mul_op: POW. (67)
. reduce 67 (src line 379)
state 103
stmt: CONST id_expr opt_nl.concat_expr
mark_pos: . (124)
. reduce 124 (src line 707)
concat_expr goto 134
regex_pattern goto 29
mark_pos goto 135
state 104
opt_nl: NL. (127)
. reduce 127 (src line 729)
state 105
conditional_stmt: conditional_expr compound_stmt ELSE.compound_stmt
LCURLY shift 47
. error
compound_stmt goto 136
state 106
stmt_list: stmt_list.stmt
compound_stmt: LCURLY stmt_list.RCURLY
mark_pos: . (124)
metric_hide_spec: . (93)
INVALID shift 13
COUNTER reduce 93 (src line 520)
GAUGE reduce 93 (src line 520)
TIMER reduce 93 (src line 520)
TEXT reduce 93 (src line 520)
HISTOGRAM reduce 93 (src line 520)
CONST shift 11
HIDDEN shift 23
NEXT shift 10
STOP shift 12
STRING shift 36
CAPREF shift 34
CAPREF_NAMED shift 35
ID shift 43
INTLITERAL shift 38
FLOATLITERAL shift 39
NOT shift 31
RCURLY shift 137
LPAREN shift 37
NL shift 16
. reduce 124 (src line 707)
stmt goto 3
conditional_stmt goto 4
conditional_expr goto 14
expr_stmt goto 5
expr goto 17
primary_expr goto 28
multiplicative_expr goto 44
additive_expr goto 42
postfix_expr goto 22
unary_expr goto 27
assign_expr goto 21
rel_expr goto 30
shift_expr goto 40
bitwise_expr goto 25
logical_expr goto 20
indexed_expr goto 32
id_expr goto 41
concat_expr goto 24
pattern_expr goto 19
metric_declaration goto 6
decorator_declaration goto 7
decoration_stmt goto 8
regex_pattern goto 29
match_expr goto 26
delete_stmt goto 9
builtin_expr goto 33
metric_hide_spec goto 18
mark_pos goto 15
state 107
conditional_stmt: mark_pos OTHERWISE compound_stmt. (16)
. reduce 16 (src line 159)
state 108
builtin_expr: mark_pos BUILTIN LPAREN.RPAREN
builtin_expr: mark_pos BUILTIN LPAREN.arg_expr_list RPAREN
mark_pos: . (124)
STRING shift 36
CAPREF shift 34
CAPREF_NAMED shift 35