racc 1.4.15 → 1.4.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/COPYING +22 -515
- data/Manifest.txt +3 -9
- data/README.ja.rdoc +3 -4
- data/README.rdoc +4 -4
- data/Rakefile +13 -55
- data/bin/racc +2 -4
- data/ext/racc/{cparse.c → cparse/cparse.c} +64 -31
- data/ext/racc/cparse/extconf.rb +8 -0
- data/lib/racc/exception.rb +3 -5
- data/lib/racc/grammar.rb +5 -7
- data/lib/racc/grammarfileparser.rb +4 -3
- data/lib/racc/info.rb +4 -6
- data/lib/racc/iset.rb +2 -2
- data/lib/racc/logfilegenerator.rb +2 -2
- data/lib/racc/parser-text.rb +14 -11
- data/lib/racc/parser.rb +14 -11
- data/lib/racc/parserfilegenerator.rb +5 -7
- data/lib/racc/state.rb +11 -13
- data/test/assets/intp.y +4 -4
- data/test/assets/mailp.y +27 -27
- data/test/assets/mof.y +12 -12
- data/test/assets/nullbug2.y +2 -2
- data/test/assets/recv.y +20 -20
- data/test/assets/syntax.y +1 -1
- data/test/assets/twowaysql.y +1 -1
- data/test/helper.rb +46 -35
- data/test/regress/cadenza +60 -60
- data/test/regress/cast +8 -8
- data/test/regress/csspool +167 -167
- data/test/regress/edtf +115 -115
- data/test/regress/huia +75 -75
- data/test/regress/journey +12 -12
- data/test/regress/liquor +54 -54
- data/test/regress/machete +37 -37
- data/test/regress/mediacloth +83 -83
- data/test/regress/mof +60 -60
- data/test/regress/namae +29 -29
- data/test/regress/nasl +174 -174
- data/test/regress/nokogiri-css +59 -59
- data/test/regress/opal +352 -352
- data/test/regress/php_serialization +20 -20
- data/test/regress/riml +261 -261
- data/test/regress/ruby18 +353 -353
- data/test/regress/ruby22 +433 -433
- data/test/regress/tp_plus +125 -125
- data/test/regress/twowaysql +30 -30
- data/test/test_chk_y.rb +1 -0
- data/test/test_racc_command.rb +5 -24
- data/test/test_scan_y.rb +1 -0
- data/test/testscanner.rb +1 -1
- metadata +9 -76
- data/ext/racc/depend +0 -1
- data/ext/racc/extconf.rb +0 -7
- data/test/assets/bibtex.y +0 -141
- data/test/assets/rdblockparser.y +0 -576
- data/test/assets/rdinlineparser.y +0 -561
- data/test/regress/bibtex +0 -474
- data/test/regress/rdblockparser +0 -1061
- data/test/regress/rdinlineparser +0 -1243
data/test/regress/journey
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.4.
|
4
|
-
# from Racc
|
3
|
+
# This file is automatically generated by Racc 1.4.16.pre.1
|
4
|
+
# from Racc grammar file "".
|
5
5
|
#
|
6
6
|
|
7
7
|
require 'racc/parser.rb'
|
@@ -137,14 +137,14 @@ Racc_debug_parser = false
|
|
137
137
|
|
138
138
|
module_eval(<<'.,.,', 'journey.y', 6)
|
139
139
|
def _reduce_1(val, _values, result)
|
140
|
-
result = Cat.new(val.first, val.last)
|
140
|
+
result = Cat.new(val.first, val.last)
|
141
141
|
result
|
142
142
|
end
|
143
143
|
.,.,
|
144
144
|
|
145
145
|
module_eval(<<'.,.,', 'journey.y', 7)
|
146
146
|
def _reduce_2(val, _values, result)
|
147
|
-
result = val.first
|
147
|
+
result = val.first
|
148
148
|
result
|
149
149
|
end
|
150
150
|
.,.,
|
@@ -159,21 +159,21 @@ module_eval(<<'.,.,', 'journey.y', 7)
|
|
159
159
|
|
160
160
|
module_eval(<<'.,.,', 'journey.y', 16)
|
161
161
|
def _reduce_7(val, _values, result)
|
162
|
-
result = Group.new(val[1])
|
162
|
+
result = Group.new(val[1])
|
163
163
|
result
|
164
164
|
end
|
165
165
|
.,.,
|
166
166
|
|
167
167
|
module_eval(<<'.,.,', 'journey.y', 19)
|
168
168
|
def _reduce_8(val, _values, result)
|
169
|
-
result = Or.new([val.first, val.last])
|
169
|
+
result = Or.new([val.first, val.last])
|
170
170
|
result
|
171
171
|
end
|
172
172
|
.,.,
|
173
173
|
|
174
174
|
module_eval(<<'.,.,', 'journey.y', 22)
|
175
175
|
def _reduce_9(val, _values, result)
|
176
|
-
result = Star.new(Symbol.new(val.last))
|
176
|
+
result = Star.new(Symbol.new(val.last))
|
177
177
|
result
|
178
178
|
end
|
179
179
|
.,.,
|
@@ -188,28 +188,28 @@ module_eval(<<'.,.,', 'journey.y', 22)
|
|
188
188
|
|
189
189
|
module_eval(<<'.,.,', 'journey.y', 31)
|
190
190
|
def _reduce_14(val, _values, result)
|
191
|
-
result = Slash.new('/')
|
191
|
+
result = Slash.new('/')
|
192
192
|
result
|
193
193
|
end
|
194
194
|
.,.,
|
195
195
|
|
196
196
|
module_eval(<<'.,.,', 'journey.y', 34)
|
197
197
|
def _reduce_15(val, _values, result)
|
198
|
-
result = Symbol.new(val.first)
|
198
|
+
result = Symbol.new(val.first)
|
199
199
|
result
|
200
200
|
end
|
201
201
|
.,.,
|
202
202
|
|
203
203
|
module_eval(<<'.,.,', 'journey.y', 37)
|
204
204
|
def _reduce_16(val, _values, result)
|
205
|
-
result = Literal.new(val.first)
|
205
|
+
result = Literal.new(val.first)
|
206
206
|
result
|
207
207
|
end
|
208
208
|
.,.,
|
209
209
|
|
210
210
|
module_eval(<<'.,.,', 'journey.y', 39)
|
211
211
|
def _reduce_17(val, _values, result)
|
212
|
-
result = Dot.new(val.first)
|
212
|
+
result = Dot.new(val.first)
|
213
213
|
result
|
214
214
|
end
|
215
215
|
.,.,
|
@@ -219,4 +219,4 @@ def _reduce_none(val, _values, result)
|
|
219
219
|
end
|
220
220
|
|
221
221
|
end # class Parser
|
222
|
-
|
222
|
+
end # module Journey
|
data/test/regress/liquor
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.4.
|
4
|
-
# from Racc
|
3
|
+
# This file is automatically generated by Racc 1.4.16.pre.1
|
4
|
+
# from Racc grammar file "".
|
5
5
|
#
|
6
6
|
|
7
7
|
require 'racc/parser.rb'
|
@@ -490,42 +490,42 @@ Racc_debug_parser = false
|
|
490
490
|
|
491
491
|
module_eval(<<'.,.,', 'liquor.y', 47)
|
492
492
|
def _reduce_1(val, _values, result)
|
493
|
-
result = []
|
493
|
+
result = []
|
494
494
|
result
|
495
495
|
end
|
496
496
|
.,.,
|
497
497
|
|
498
498
|
module_eval(<<'.,.,', 'liquor.y', 49)
|
499
499
|
def _reduce_2(val, _values, result)
|
500
|
-
result = [ val[0], *val[1] ]
|
500
|
+
result = [ val[0], *val[1] ]
|
501
501
|
result
|
502
502
|
end
|
503
503
|
.,.,
|
504
504
|
|
505
505
|
module_eval(<<'.,.,', 'liquor.y', 51)
|
506
506
|
def _reduce_3(val, _values, result)
|
507
|
-
result = [ val[0], *val[1] ]
|
507
|
+
result = [ val[0], *val[1] ]
|
508
508
|
result
|
509
509
|
end
|
510
510
|
.,.,
|
511
511
|
|
512
512
|
module_eval(<<'.,.,', 'liquor.y', 53)
|
513
513
|
def _reduce_4(val, _values, result)
|
514
|
-
result = [ val[0], *val[1] ]
|
514
|
+
result = [ val[0], *val[1] ]
|
515
515
|
result
|
516
516
|
end
|
517
517
|
.,.,
|
518
518
|
|
519
519
|
module_eval(<<'.,.,', 'liquor.y', 57)
|
520
520
|
def _reduce_5(val, _values, result)
|
521
|
-
result = [ :interp, retag(val), val[1] ]
|
521
|
+
result = [ :interp, retag(val), val[1] ]
|
522
522
|
result
|
523
523
|
end
|
524
524
|
.,.,
|
525
525
|
|
526
526
|
module_eval(<<'.,.,', 'liquor.y', 59)
|
527
527
|
def _reduce_6(val, _values, result)
|
528
|
-
result = [ :interp, retag(val), val[1] ]
|
528
|
+
result = [ :interp, retag(val), val[1] ]
|
529
529
|
result
|
530
530
|
end
|
531
531
|
.,.,
|
@@ -534,7 +534,7 @@ module_eval(<<'.,.,', 'liquor.y', 59)
|
|
534
534
|
|
535
535
|
module_eval(<<'.,.,', 'liquor.y', 64)
|
536
536
|
def _reduce_8(val, _values, result)
|
537
|
-
result = [ val[1][0], retag(val), *val[1][2..-1] ]
|
537
|
+
result = [ val[1][0], retag(val), *val[1][2..-1] ]
|
538
538
|
result
|
539
539
|
end
|
540
540
|
.,.,
|
@@ -547,133 +547,133 @@ module_eval(<<'.,.,', 'liquor.y', 64)
|
|
547
547
|
|
548
548
|
module_eval(<<'.,.,', 'liquor.y', 71)
|
549
549
|
def _reduce_12(val, _values, result)
|
550
|
-
result = [ :call, retag(val), val[0], val[1] ]
|
550
|
+
result = [ :call, retag(val), val[0], val[1] ]
|
551
551
|
result
|
552
552
|
end
|
553
553
|
.,.,
|
554
554
|
|
555
555
|
module_eval(<<'.,.,', 'liquor.y', 73)
|
556
556
|
def _reduce_13(val, _values, result)
|
557
|
-
result = [ :index, retag(val), val[0], val[2] ]
|
557
|
+
result = [ :index, retag(val), val[0], val[2] ]
|
558
558
|
result
|
559
559
|
end
|
560
560
|
.,.,
|
561
561
|
|
562
562
|
module_eval(<<'.,.,', 'liquor.y', 75)
|
563
563
|
def _reduce_14(val, _values, result)
|
564
|
-
result = [ :external, retag(val), val[0], val[2], val[3] ]
|
564
|
+
result = [ :external, retag(val), val[0], val[2], val[3] ]
|
565
565
|
result
|
566
566
|
end
|
567
567
|
.,.,
|
568
568
|
|
569
569
|
module_eval(<<'.,.,', 'liquor.y', 77)
|
570
570
|
def _reduce_15(val, _values, result)
|
571
|
-
result = [ :external, retag(val), val[0], val[2], nil ]
|
571
|
+
result = [ :external, retag(val), val[0], val[2], nil ]
|
572
572
|
result
|
573
573
|
end
|
574
574
|
.,.,
|
575
575
|
|
576
576
|
module_eval(<<'.,.,', 'liquor.y', 79)
|
577
577
|
def _reduce_16(val, _values, result)
|
578
|
-
result = [ :uminus, retag(val), val[1] ]
|
578
|
+
result = [ :uminus, retag(val), val[1] ]
|
579
579
|
result
|
580
580
|
end
|
581
581
|
.,.,
|
582
582
|
|
583
583
|
module_eval(<<'.,.,', 'liquor.y', 81)
|
584
584
|
def _reduce_17(val, _values, result)
|
585
|
-
result = [ :not, retag(val), val[1] ]
|
585
|
+
result = [ :not, retag(val), val[1] ]
|
586
586
|
result
|
587
587
|
end
|
588
588
|
.,.,
|
589
589
|
|
590
590
|
module_eval(<<'.,.,', 'liquor.y', 83)
|
591
591
|
def _reduce_18(val, _values, result)
|
592
|
-
result = [ :mul, retag(val), val[0], val[2] ]
|
592
|
+
result = [ :mul, retag(val), val[0], val[2] ]
|
593
593
|
result
|
594
594
|
end
|
595
595
|
.,.,
|
596
596
|
|
597
597
|
module_eval(<<'.,.,', 'liquor.y', 85)
|
598
598
|
def _reduce_19(val, _values, result)
|
599
|
-
result = [ :div, retag(val), val[0], val[2] ]
|
599
|
+
result = [ :div, retag(val), val[0], val[2] ]
|
600
600
|
result
|
601
601
|
end
|
602
602
|
.,.,
|
603
603
|
|
604
604
|
module_eval(<<'.,.,', 'liquor.y', 87)
|
605
605
|
def _reduce_20(val, _values, result)
|
606
|
-
result = [ :mod, retag(val), val[0], val[2] ]
|
606
|
+
result = [ :mod, retag(val), val[0], val[2] ]
|
607
607
|
result
|
608
608
|
end
|
609
609
|
.,.,
|
610
610
|
|
611
611
|
module_eval(<<'.,.,', 'liquor.y', 89)
|
612
612
|
def _reduce_21(val, _values, result)
|
613
|
-
result = [ :plus, retag(val), val[0], val[2] ]
|
613
|
+
result = [ :plus, retag(val), val[0], val[2] ]
|
614
614
|
result
|
615
615
|
end
|
616
616
|
.,.,
|
617
617
|
|
618
618
|
module_eval(<<'.,.,', 'liquor.y', 91)
|
619
619
|
def _reduce_22(val, _values, result)
|
620
|
-
result = [ :minus, retag(val), val[0], val[2] ]
|
620
|
+
result = [ :minus, retag(val), val[0], val[2] ]
|
621
621
|
result
|
622
622
|
end
|
623
623
|
.,.,
|
624
624
|
|
625
625
|
module_eval(<<'.,.,', 'liquor.y', 93)
|
626
626
|
def _reduce_23(val, _values, result)
|
627
|
-
result = [ :eq, retag(val), val[0], val[2] ]
|
627
|
+
result = [ :eq, retag(val), val[0], val[2] ]
|
628
628
|
result
|
629
629
|
end
|
630
630
|
.,.,
|
631
631
|
|
632
632
|
module_eval(<<'.,.,', 'liquor.y', 95)
|
633
633
|
def _reduce_24(val, _values, result)
|
634
|
-
result = [ :neq, retag(val), val[0], val[2] ]
|
634
|
+
result = [ :neq, retag(val), val[0], val[2] ]
|
635
635
|
result
|
636
636
|
end
|
637
637
|
.,.,
|
638
638
|
|
639
639
|
module_eval(<<'.,.,', 'liquor.y', 97)
|
640
640
|
def _reduce_25(val, _values, result)
|
641
|
-
result = [ :lt, retag(val), val[0], val[2] ]
|
641
|
+
result = [ :lt, retag(val), val[0], val[2] ]
|
642
642
|
result
|
643
643
|
end
|
644
644
|
.,.,
|
645
645
|
|
646
646
|
module_eval(<<'.,.,', 'liquor.y', 99)
|
647
647
|
def _reduce_26(val, _values, result)
|
648
|
-
result = [ :leq, retag(val), val[0], val[2] ]
|
648
|
+
result = [ :leq, retag(val), val[0], val[2] ]
|
649
649
|
result
|
650
650
|
end
|
651
651
|
.,.,
|
652
652
|
|
653
653
|
module_eval(<<'.,.,', 'liquor.y', 101)
|
654
654
|
def _reduce_27(val, _values, result)
|
655
|
-
result = [ :gt, retag(val), val[0], val[2] ]
|
655
|
+
result = [ :gt, retag(val), val[0], val[2] ]
|
656
656
|
result
|
657
657
|
end
|
658
658
|
.,.,
|
659
659
|
|
660
660
|
module_eval(<<'.,.,', 'liquor.y', 103)
|
661
661
|
def _reduce_28(val, _values, result)
|
662
|
-
result = [ :geq, retag(val), val[0], val[2] ]
|
662
|
+
result = [ :geq, retag(val), val[0], val[2] ]
|
663
663
|
result
|
664
664
|
end
|
665
665
|
.,.,
|
666
666
|
|
667
667
|
module_eval(<<'.,.,', 'liquor.y', 105)
|
668
668
|
def _reduce_29(val, _values, result)
|
669
|
-
result = [ :and, retag(val), val[0], val[2] ]
|
669
|
+
result = [ :and, retag(val), val[0], val[2] ]
|
670
670
|
result
|
671
671
|
end
|
672
672
|
.,.,
|
673
673
|
|
674
674
|
module_eval(<<'.,.,', 'liquor.y', 107)
|
675
675
|
def _reduce_30(val, _values, result)
|
676
|
-
result = [ :or, retag(val), val[0], val[2] ]
|
676
|
+
result = [ :or, retag(val), val[0], val[2] ]
|
677
677
|
result
|
678
678
|
end
|
679
679
|
.,.,
|
@@ -682,49 +682,49 @@ module_eval(<<'.,.,', 'liquor.y', 107)
|
|
682
682
|
|
683
683
|
module_eval(<<'.,.,', 'liquor.y', 112)
|
684
684
|
def _reduce_32(val, _values, result)
|
685
|
-
result = [ :tuple, retag(val), val[1].compact ]
|
685
|
+
result = [ :tuple, retag(val), val[1].compact ]
|
686
686
|
result
|
687
687
|
end
|
688
688
|
.,.,
|
689
689
|
|
690
690
|
module_eval(<<'.,.,', 'liquor.y', 116)
|
691
691
|
def _reduce_33(val, _values, result)
|
692
|
-
result = [ val[0], *val[2] ]
|
692
|
+
result = [ val[0], *val[2] ]
|
693
693
|
result
|
694
694
|
end
|
695
695
|
.,.,
|
696
696
|
|
697
697
|
module_eval(<<'.,.,', 'liquor.y', 118)
|
698
698
|
def _reduce_34(val, _values, result)
|
699
|
-
result = [ val[0] ]
|
699
|
+
result = [ val[0] ]
|
700
700
|
result
|
701
701
|
end
|
702
702
|
.,.,
|
703
703
|
|
704
704
|
module_eval(<<'.,.,', 'liquor.y', 120)
|
705
705
|
def _reduce_35(val, _values, result)
|
706
|
-
result = [ ]
|
706
|
+
result = [ ]
|
707
707
|
result
|
708
708
|
end
|
709
709
|
.,.,
|
710
710
|
|
711
711
|
module_eval(<<'.,.,', 'liquor.y', 124)
|
712
712
|
def _reduce_36(val, _values, result)
|
713
|
-
result = [ :args, retag(val), *val[1] ]
|
713
|
+
result = [ :args, retag(val), *val[1] ]
|
714
714
|
result
|
715
715
|
end
|
716
716
|
.,.,
|
717
717
|
|
718
718
|
module_eval(<<'.,.,', 'liquor.y', 128)
|
719
719
|
def _reduce_37(val, _values, result)
|
720
|
-
result = [ val[0], val[1][2] ]
|
720
|
+
result = [ val[0], val[1][2] ]
|
721
721
|
result
|
722
722
|
end
|
723
723
|
.,.,
|
724
724
|
|
725
725
|
module_eval(<<'.,.,', 'liquor.y', 130)
|
726
726
|
def _reduce_38(val, _values, result)
|
727
|
-
result = [ nil, val[0][2] ]
|
727
|
+
result = [ nil, val[0][2] ]
|
728
728
|
result
|
729
729
|
end
|
730
730
|
.,.,
|
@@ -745,14 +745,14 @@ module_eval(<<'.,.,', 'liquor.y', 134)
|
|
745
745
|
}.merge(tail)
|
746
746
|
|
747
747
|
result = [ :keywords, retag([ loc, val[2] ]), hash ]
|
748
|
-
|
748
|
+
|
749
749
|
result
|
750
750
|
end
|
751
751
|
.,.,
|
752
752
|
|
753
753
|
module_eval(<<'.,.,', 'liquor.y', 150)
|
754
754
|
def _reduce_40(val, _values, result)
|
755
|
-
result = [ :keywords, nil, {} ]
|
755
|
+
result = [ :keywords, nil, {} ]
|
756
756
|
result
|
757
757
|
end
|
758
758
|
.,.,
|
@@ -761,21 +761,21 @@ module_eval(<<'.,.,', 'liquor.y', 154)
|
|
761
761
|
def _reduce_41(val, _values, result)
|
762
762
|
result = [ val[0], *val[2] ].
|
763
763
|
reduce { |tree, node| node[3][2] = tree; node }
|
764
|
-
|
764
|
+
|
765
765
|
result
|
766
766
|
end
|
767
767
|
.,.,
|
768
768
|
|
769
769
|
module_eval(<<'.,.,', 'liquor.y', 160)
|
770
770
|
def _reduce_42(val, _values, result)
|
771
|
-
result = [ val[0], *val[2] ]
|
771
|
+
result = [ val[0], *val[2] ]
|
772
772
|
result
|
773
773
|
end
|
774
774
|
.,.,
|
775
775
|
|
776
776
|
module_eval(<<'.,.,', 'liquor.y', 162)
|
777
777
|
def _reduce_43(val, _values, result)
|
778
|
-
result = [ val[0] ]
|
778
|
+
result = [ val[0] ]
|
779
779
|
result
|
780
780
|
end
|
781
781
|
.,.,
|
@@ -788,91 +788,91 @@ module_eval(<<'.,.,', 'liquor.y', 166)
|
|
788
788
|
end: ident_loc[:end] + 1, }
|
789
789
|
result = [ :call, val[0][1], val[0],
|
790
790
|
[ :args, val[1][1] || empty_args_loc, nil, val[1][2] ] ]
|
791
|
-
|
791
|
+
|
792
792
|
result
|
793
793
|
end
|
794
794
|
.,.,
|
795
795
|
|
796
796
|
module_eval(<<'.,.,', 'liquor.y', 176)
|
797
797
|
def _reduce_45(val, _values, result)
|
798
|
-
result = [ :tag, retag(val), val[1], val[2], *reduce_tag_args(val[3][2]) ]
|
798
|
+
result = [ :tag, retag(val), val[1], val[2], *reduce_tag_args(val[3][2]) ]
|
799
799
|
result
|
800
800
|
end
|
801
801
|
.,.,
|
802
802
|
|
803
803
|
module_eval(<<'.,.,', 'liquor.y', 178)
|
804
804
|
def _reduce_46(val, _values, result)
|
805
|
-
result = [ :tag, retag(val), val[1], nil, *reduce_tag_args(val[2][2]) ]
|
805
|
+
result = [ :tag, retag(val), val[1], nil, *reduce_tag_args(val[2][2]) ]
|
806
806
|
result
|
807
807
|
end
|
808
808
|
.,.,
|
809
809
|
|
810
810
|
module_eval(<<'.,.,', 'liquor.y', 186)
|
811
811
|
def _reduce_47(val, _values, result)
|
812
|
-
result = [ :cont, retag(val), [] ]
|
812
|
+
result = [ :cont, retag(val), [] ]
|
813
813
|
result
|
814
814
|
end
|
815
815
|
.,.,
|
816
816
|
|
817
817
|
module_eval(<<'.,.,', 'liquor.y', 188)
|
818
818
|
def _reduce_48(val, _values, result)
|
819
|
-
result = [ :cont, retag(val), [ val[0], *val[1][2] ] ]
|
819
|
+
result = [ :cont, retag(val), [ val[0], *val[1][2] ] ]
|
820
820
|
result
|
821
821
|
end
|
822
822
|
.,.,
|
823
823
|
|
824
824
|
module_eval(<<'.,.,', 'liquor.y', 192)
|
825
825
|
def _reduce_49(val, _values, result)
|
826
|
-
result = [ :cont2, val[0][1], [ [:block, val[0][1], val[1] ], *val[3] ] ]
|
826
|
+
result = [ :cont2, val[0][1], [ [:block, val[0][1], val[1] ], *val[3] ] ]
|
827
827
|
result
|
828
828
|
end
|
829
829
|
.,.,
|
830
830
|
|
831
831
|
module_eval(<<'.,.,', 'liquor.y', 194)
|
832
832
|
def _reduce_50(val, _values, result)
|
833
|
-
result = [ :cont2, retag(val), [ val[0], *val[1][2] ] ]
|
833
|
+
result = [ :cont2, retag(val), [ val[0], *val[1][2] ] ]
|
834
834
|
result
|
835
835
|
end
|
836
836
|
.,.,
|
837
837
|
|
838
838
|
module_eval(<<'.,.,', 'liquor.y', 198)
|
839
839
|
def _reduce_51(val, _values, result)
|
840
|
-
result = []
|
840
|
+
result = []
|
841
841
|
result
|
842
842
|
end
|
843
843
|
.,.,
|
844
844
|
|
845
845
|
module_eval(<<'.,.,', 'liquor.y', 200)
|
846
846
|
def _reduce_52(val, _values, result)
|
847
|
-
result = [ val[0], *val[1] ]
|
847
|
+
result = [ val[0], *val[1] ]
|
848
848
|
result
|
849
849
|
end
|
850
850
|
.,.,
|
851
851
|
|
852
852
|
module_eval(<<'.,.,', 'liquor.y', 204)
|
853
853
|
def _reduce_53(val, _values, result)
|
854
|
-
result = [ [:block, val[0][1], val[1] ], *val[3] ]
|
854
|
+
result = [ [:block, val[0][1], val[1] ], *val[3] ]
|
855
855
|
result
|
856
856
|
end
|
857
857
|
.,.,
|
858
858
|
|
859
859
|
module_eval(<<'.,.,', 'liquor.y', 206)
|
860
860
|
def _reduce_54(val, _values, result)
|
861
|
-
result = [ val[0], val[1], *val[2] ]
|
861
|
+
result = [ val[0], val[1], *val[2] ]
|
862
862
|
result
|
863
863
|
end
|
864
864
|
.,.,
|
865
865
|
|
866
866
|
module_eval(<<'.,.,', 'liquor.y', 210)
|
867
867
|
def _reduce_55(val, _values, result)
|
868
|
-
result = [ [:block, val[0][1], val[1] ], *val[3] ]
|
868
|
+
result = [ [:block, val[0][1], val[1] ], *val[3] ]
|
869
869
|
result
|
870
870
|
end
|
871
871
|
.,.,
|
872
872
|
|
873
873
|
module_eval(<<'.,.,', 'liquor.y', 212)
|
874
874
|
def _reduce_56(val, _values, result)
|
875
|
-
result = [ val[0], *val[1] ]
|
875
|
+
result = [ val[0], *val[1] ]
|
876
876
|
result
|
877
877
|
end
|
878
878
|
.,.,
|
@@ -882,4 +882,4 @@ def _reduce_none(val, _values, result)
|
|
882
882
|
end
|
883
883
|
|
884
884
|
end # class Parser
|
885
|
-
|
885
|
+
end # module Liquor
|