ruby_parser 3.14.1 → 3.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +6 -0
- data/lib/ruby20_parser.rb +435 -438
- data/lib/ruby20_parser.y +2 -5
- data/lib/ruby21_parser.rb +436 -439
- data/lib/ruby21_parser.y +2 -5
- data/lib/ruby22_parser.rb +437 -440
- data/lib/ruby22_parser.y +2 -5
- data/lib/ruby23_parser.rb +437 -440
- data/lib/ruby23_parser.y +2 -5
- data/lib/ruby24_parser.rb +438 -441
- data/lib/ruby24_parser.y +2 -5
- data/lib/ruby25_parser.rb +438 -441
- data/lib/ruby25_parser.y +2 -5
- data/lib/ruby26_parser.rb +440 -443
- data/lib/ruby26_parser.y +2 -5
- data/lib/ruby_parser.yy +2 -5
- data/lib/ruby_parser_extras.rb +1 -7
- metadata +16 -14
- metadata.gz.sig +0 -0
data/lib/ruby25_parser.y
CHANGED
@@ -1000,17 +1000,14 @@ rule
|
|
1000
1000
|
| args opt_block_arg
|
1001
1001
|
{
|
1002
1002
|
result = call_args val
|
1003
|
-
result = self.arg_blk_pass val[0], val[1]
|
1004
1003
|
}
|
1005
1004
|
| assocs opt_block_arg
|
1006
1005
|
{
|
1007
|
-
result = call_args [array_to_hash(val[0])]
|
1008
|
-
result = self.arg_blk_pass result, val[1]
|
1006
|
+
result = call_args [array_to_hash(val[0]), val[1]]
|
1009
1007
|
}
|
1010
1008
|
| args tCOMMA assocs opt_block_arg
|
1011
1009
|
{
|
1012
|
-
result = call_args [val[0], array_to_hash(val[2])]
|
1013
|
-
result = self.arg_blk_pass result, val[3]
|
1010
|
+
result = call_args [val[0], array_to_hash(val[2]), val[3]]
|
1014
1011
|
}
|
1015
1012
|
| block_arg
|
1016
1013
|
{
|
data/lib/ruby26_parser.rb
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
|
4
|
+
# from Racc grammar file "".
|
5
5
|
#
|
6
6
|
|
7
7
|
require 'racc/parser.rb'
|
@@ -3565,20 +3565,20 @@ Racc_debug_parser = false
|
|
3565
3565
|
|
3566
3566
|
def _reduce_1(val, _values, result)
|
3567
3567
|
self.lexer.lex_state = EXPR_BEG
|
3568
|
-
|
3568
|
+
|
3569
3569
|
result
|
3570
3570
|
end
|
3571
3571
|
|
3572
3572
|
def _reduce_2(val, _values, result)
|
3573
3573
|
result = new_compstmt val
|
3574
|
-
|
3574
|
+
|
3575
3575
|
result
|
3576
3576
|
end
|
3577
3577
|
|
3578
3578
|
def _reduce_3(val, _values, result)
|
3579
3579
|
stmt, _ = val
|
3580
3580
|
result = stmt
|
3581
|
-
|
3581
|
+
|
3582
3582
|
result
|
3583
3583
|
end
|
3584
3584
|
|
@@ -3588,7 +3588,7 @@ end
|
|
3588
3588
|
|
3589
3589
|
def _reduce_6(val, _values, result)
|
3590
3590
|
result = self.block_append val[0], val[2]
|
3591
|
-
|
3591
|
+
|
3592
3592
|
result
|
3593
3593
|
end
|
3594
3594
|
|
@@ -3602,7 +3602,7 @@ def _reduce_9(val, _values, result)
|
|
3602
3602
|
yyerror "BEGIN in method"
|
3603
3603
|
end
|
3604
3604
|
self.env.extend
|
3605
|
-
|
3605
|
+
|
3606
3606
|
result
|
3607
3607
|
end
|
3608
3608
|
|
@@ -3614,26 +3614,26 @@ def _reduce_10(val, _values, result)
|
|
3614
3614
|
preexe.line lineno
|
3615
3615
|
|
3616
3616
|
result = iter
|
3617
|
-
|
3617
|
+
|
3618
3618
|
result
|
3619
3619
|
end
|
3620
3620
|
|
3621
3621
|
def _reduce_11(val, _values, result)
|
3622
|
-
result = lexer.lineno
|
3622
|
+
result = lexer.lineno
|
3623
3623
|
result
|
3624
3624
|
end
|
3625
3625
|
|
3626
3626
|
def _reduce_12(val, _values, result)
|
3627
3627
|
_, line, stmt, _ = val
|
3628
3628
|
result = new_iter s(:preexe).line(line), 0, stmt
|
3629
|
-
|
3629
|
+
|
3630
3630
|
result
|
3631
3631
|
end
|
3632
3632
|
|
3633
3633
|
def _reduce_13(val, _values, result)
|
3634
3634
|
res = _values[-2]
|
3635
3635
|
yyerror "else without rescue is useless" unless res
|
3636
|
-
|
3636
|
+
|
3637
3637
|
result
|
3638
3638
|
end
|
3639
3639
|
|
@@ -3641,7 +3641,7 @@ def _reduce_14(val, _values, result)
|
|
3641
3641
|
body, resc, _, _, els, ens = val
|
3642
3642
|
|
3643
3643
|
result = new_body [body, resc, els, ens]
|
3644
|
-
|
3644
|
+
|
3645
3645
|
result
|
3646
3646
|
end
|
3647
3647
|
|
@@ -3649,13 +3649,13 @@ def _reduce_15(val, _values, result)
|
|
3649
3649
|
body, resc, ens = val
|
3650
3650
|
|
3651
3651
|
result = new_body [body, resc, nil, ens]
|
3652
|
-
|
3652
|
+
|
3653
3653
|
result
|
3654
3654
|
end
|
3655
3655
|
|
3656
3656
|
def _reduce_16(val, _values, result)
|
3657
3657
|
result = new_compstmt val
|
3658
|
-
|
3658
|
+
|
3659
3659
|
result
|
3660
3660
|
end
|
3661
3661
|
|
@@ -3665,14 +3665,14 @@ end
|
|
3665
3665
|
|
3666
3666
|
def _reduce_19(val, _values, result)
|
3667
3667
|
result = self.block_append val[0], val[2]
|
3668
|
-
|
3668
|
+
|
3669
3669
|
result
|
3670
3670
|
end
|
3671
3671
|
|
3672
3672
|
def _reduce_20(val, _values, result)
|
3673
3673
|
result = val[1]
|
3674
3674
|
debug20 2, val, result
|
3675
|
-
|
3675
|
+
|
3676
3676
|
result
|
3677
3677
|
end
|
3678
3678
|
|
@@ -3680,74 +3680,74 @@ end
|
|
3680
3680
|
|
3681
3681
|
def _reduce_22(val, _values, result)
|
3682
3682
|
yyerror "BEGIN is permitted only at toplevel"
|
3683
|
-
|
3683
|
+
|
3684
3684
|
result
|
3685
3685
|
end
|
3686
3686
|
|
3687
3687
|
def _reduce_23(val, _values, result)
|
3688
3688
|
lexer.lex_state = EXPR_FNAME
|
3689
|
-
|
3689
|
+
|
3690
3690
|
result
|
3691
3691
|
end
|
3692
3692
|
|
3693
3693
|
def _reduce_24(val, _values, result)
|
3694
3694
|
(_, line), lhs, _, rhs = val
|
3695
3695
|
result = s(:alias, lhs, rhs).line(line).line line
|
3696
|
-
|
3696
|
+
|
3697
3697
|
result
|
3698
3698
|
end
|
3699
3699
|
|
3700
3700
|
def _reduce_25(val, _values, result)
|
3701
3701
|
(_, line), lhs, rhs = val
|
3702
3702
|
result = s(:valias, lhs.to_sym, rhs.to_sym).line line
|
3703
|
-
|
3703
|
+
|
3704
3704
|
result
|
3705
3705
|
end
|
3706
3706
|
|
3707
3707
|
def _reduce_26(val, _values, result)
|
3708
3708
|
(_, line), lhs, rhs = val
|
3709
3709
|
result = s(:valias, lhs.to_sym, :"$#{rhs}").line line
|
3710
|
-
|
3710
|
+
|
3711
3711
|
result
|
3712
3712
|
end
|
3713
3713
|
|
3714
3714
|
def _reduce_27(val, _values, result)
|
3715
3715
|
yyerror "can't make alias for the number variables"
|
3716
|
-
|
3716
|
+
|
3717
3717
|
result
|
3718
3718
|
end
|
3719
3719
|
|
3720
3720
|
def _reduce_28(val, _values, result)
|
3721
3721
|
result = val[1]
|
3722
|
-
|
3722
|
+
|
3723
3723
|
result
|
3724
3724
|
end
|
3725
3725
|
|
3726
3726
|
def _reduce_29(val, _values, result)
|
3727
3727
|
t, _, c = val
|
3728
3728
|
result = new_if c, t, nil
|
3729
|
-
|
3729
|
+
|
3730
3730
|
result
|
3731
3731
|
end
|
3732
3732
|
|
3733
3733
|
def _reduce_30(val, _values, result)
|
3734
3734
|
f, _, c = val
|
3735
3735
|
result = new_if c, nil, f
|
3736
|
-
|
3736
|
+
|
3737
3737
|
result
|
3738
3738
|
end
|
3739
3739
|
|
3740
3740
|
def _reduce_31(val, _values, result)
|
3741
3741
|
e, _, c = val
|
3742
3742
|
result = new_while e, c, true
|
3743
|
-
|
3743
|
+
|
3744
3744
|
result
|
3745
3745
|
end
|
3746
3746
|
|
3747
3747
|
def _reduce_32(val, _values, result)
|
3748
3748
|
e, _, c = val
|
3749
3749
|
result = new_until e, c, true
|
3750
|
-
|
3750
|
+
|
3751
3751
|
result
|
3752
3752
|
end
|
3753
3753
|
|
@@ -3756,7 +3756,7 @@ def _reduce_33(val, _values, result)
|
|
3756
3756
|
|
3757
3757
|
resbody = new_resbody s(:array).line(resbody.line), resbody
|
3758
3758
|
result = new_rescue body, resbody
|
3759
|
-
|
3759
|
+
|
3760
3760
|
result
|
3761
3761
|
end
|
3762
3762
|
|
@@ -3769,7 +3769,7 @@ def _reduce_34(val, _values, result)
|
|
3769
3769
|
end
|
3770
3770
|
|
3771
3771
|
result = new_iter s(:postexe).line(line), 0, stmt
|
3772
|
-
|
3772
|
+
|
3773
3773
|
result
|
3774
3774
|
end
|
3775
3775
|
|
@@ -3777,20 +3777,20 @@ end
|
|
3777
3777
|
|
3778
3778
|
def _reduce_36(val, _values, result)
|
3779
3779
|
result = new_masgn val[0], val[2], :wrap
|
3780
|
-
|
3780
|
+
|
3781
3781
|
result
|
3782
3782
|
end
|
3783
3783
|
|
3784
3784
|
def _reduce_37(val, _values, result)
|
3785
3785
|
lhs, _, rhs = val
|
3786
3786
|
result = new_assign lhs, s(:svalue, rhs).line(rhs.line)
|
3787
|
-
|
3787
|
+
|
3788
3788
|
result
|
3789
3789
|
end
|
3790
3790
|
|
3791
3791
|
def _reduce_38(val, _values, result)
|
3792
3792
|
result = new_masgn val[0], val[2]
|
3793
|
-
|
3793
|
+
|
3794
3794
|
result
|
3795
3795
|
end
|
3796
3796
|
|
@@ -3798,19 +3798,19 @@ end
|
|
3798
3798
|
|
3799
3799
|
def _reduce_40(val, _values, result)
|
3800
3800
|
result = new_assign val[0], val[2]
|
3801
|
-
|
3801
|
+
|
3802
3802
|
result
|
3803
3803
|
end
|
3804
3804
|
|
3805
3805
|
def _reduce_41(val, _values, result)
|
3806
3806
|
result = new_op_asgn val
|
3807
|
-
|
3807
|
+
|
3808
3808
|
result
|
3809
3809
|
end
|
3810
3810
|
|
3811
3811
|
def _reduce_42(val, _values, result)
|
3812
3812
|
result = new_op_asgn1 val
|
3813
|
-
|
3813
|
+
|
3814
3814
|
result
|
3815
3815
|
end
|
3816
3816
|
|
@@ -3821,7 +3821,7 @@ def _reduce_43(val, _values, result)
|
|
3821
3821
|
result.sexp_type = :safe_op_asgn
|
3822
3822
|
end
|
3823
3823
|
result.line = val[0].line
|
3824
|
-
|
3824
|
+
|
3825
3825
|
result
|
3826
3826
|
end
|
3827
3827
|
|
@@ -3831,34 +3831,34 @@ def _reduce_44(val, _values, result)
|
|
3831
3831
|
result.sexp_type = :safe_op_asgn
|
3832
3832
|
end
|
3833
3833
|
result.line = val[0].line
|
3834
|
-
|
3834
|
+
|
3835
3835
|
result
|
3836
3836
|
end
|
3837
3837
|
|
3838
3838
|
def _reduce_45(val, _values, result)
|
3839
3839
|
result = s(:op_asgn, val[0], val[4], val[2], val[3])
|
3840
3840
|
debug20 4, val, result
|
3841
|
-
|
3841
|
+
|
3842
3842
|
result
|
3843
3843
|
end
|
3844
3844
|
|
3845
3845
|
def _reduce_46(val, _values, result)
|
3846
3846
|
result = s(:op_asgn, val[0], val[4], val[2], val[3])
|
3847
3847
|
debug20 5, val, result
|
3848
|
-
|
3848
|
+
|
3849
3849
|
result
|
3850
3850
|
end
|
3851
3851
|
|
3852
3852
|
def _reduce_47(val, _values, result)
|
3853
3853
|
self.backref_assign_error val[0]
|
3854
|
-
|
3854
|
+
|
3855
3855
|
result
|
3856
3856
|
end
|
3857
3857
|
|
3858
3858
|
def _reduce_48(val, _values, result)
|
3859
3859
|
expr, = val
|
3860
3860
|
result = value_expr expr
|
3861
|
-
|
3861
|
+
|
3862
3862
|
result
|
3863
3863
|
end
|
3864
3864
|
|
@@ -3868,7 +3868,7 @@ def _reduce_49(val, _values, result)
|
|
3868
3868
|
expr = value_expr expr
|
3869
3869
|
ary = s(:array).line line
|
3870
3870
|
result = new_rescue(expr, new_resbody(ary, resbody))
|
3871
|
-
|
3871
|
+
|
3872
3872
|
result
|
3873
3873
|
end
|
3874
3874
|
|
@@ -3879,14 +3879,14 @@ end
|
|
3879
3879
|
def _reduce_52(val, _values, result)
|
3880
3880
|
lhs, _, rhs = val
|
3881
3881
|
result = logical_op :and, lhs, rhs
|
3882
|
-
|
3882
|
+
|
3883
3883
|
result
|
3884
3884
|
end
|
3885
3885
|
|
3886
3886
|
def _reduce_53(val, _values, result)
|
3887
3887
|
lhs, _, rhs = val
|
3888
3888
|
result = logical_op :or, lhs, rhs
|
3889
|
-
|
3889
|
+
|
3890
3890
|
result
|
3891
3891
|
end
|
3892
3892
|
|
@@ -3894,7 +3894,7 @@ def _reduce_54(val, _values, result)
|
|
3894
3894
|
(_, line), _, expr = val
|
3895
3895
|
result = new_call(expr, :"!").line line
|
3896
3896
|
# REFACTOR: call_uni_op
|
3897
|
-
|
3897
|
+
|
3898
3898
|
result
|
3899
3899
|
end
|
3900
3900
|
|
@@ -3903,7 +3903,7 @@ def _reduce_55(val, _values, result)
|
|
3903
3903
|
result = new_call(cmd, :"!").line cmd.line
|
3904
3904
|
# TODO: fix line number to tBANG... but causes BAD shift/reduce conflict
|
3905
3905
|
# REFACTOR: call_uni_op -- see parse26.y
|
3906
|
-
|
3906
|
+
|
3907
3907
|
result
|
3908
3908
|
end
|
3909
3909
|
|
@@ -3911,26 +3911,26 @@ end
|
|
3911
3911
|
|
3912
3912
|
def _reduce_57(val, _values, result)
|
3913
3913
|
result = value_expr(val[0])
|
3914
|
-
|
3914
|
+
|
3915
3915
|
result
|
3916
3916
|
end
|
3917
3917
|
|
3918
3918
|
def _reduce_58(val, _values, result)
|
3919
3919
|
lexer.cond.push true
|
3920
|
-
|
3920
|
+
|
3921
3921
|
result
|
3922
3922
|
end
|
3923
3923
|
|
3924
3924
|
def _reduce_59(val, _values, result)
|
3925
3925
|
lexer.cond.pop
|
3926
|
-
|
3926
|
+
|
3927
3927
|
result
|
3928
3928
|
end
|
3929
3929
|
|
3930
3930
|
def _reduce_60(val, _values, result)
|
3931
3931
|
_, expr, _, _ = val
|
3932
3932
|
result = expr
|
3933
|
-
|
3933
|
+
|
3934
3934
|
result
|
3935
3935
|
end
|
3936
3936
|
|
@@ -3943,14 +3943,14 @@ end
|
|
3943
3943
|
def _reduce_64(val, _values, result)
|
3944
3944
|
blk, _, msg, args = val
|
3945
3945
|
result = new_call(blk, msg.to_sym, args).line blk.line
|
3946
|
-
|
3946
|
+
|
3947
3947
|
result
|
3948
3948
|
end
|
3949
3949
|
|
3950
3950
|
def _reduce_65(val, _values, result)
|
3951
3951
|
# self.env.extend(:dynamic)
|
3952
3952
|
result = self.lexer.lineno
|
3953
|
-
|
3953
|
+
|
3954
3954
|
result
|
3955
3955
|
end
|
3956
3956
|
|
@@ -3961,21 +3961,21 @@ def _reduce_66(val, _values, result)
|
|
3961
3961
|
result.line = line
|
3962
3962
|
|
3963
3963
|
# self.env.unextend
|
3964
|
-
|
3964
|
+
|
3965
3965
|
result
|
3966
3966
|
end
|
3967
3967
|
|
3968
3968
|
def _reduce_67(val, _values, result)
|
3969
3969
|
msg, = val
|
3970
3970
|
result = new_call(nil, msg.to_sym).line lexer.lineno
|
3971
|
-
|
3971
|
+
|
3972
3972
|
result
|
3973
3973
|
end
|
3974
3974
|
|
3975
3975
|
def _reduce_68(val, _values, result)
|
3976
3976
|
call, args = val
|
3977
3977
|
result = call.concat args.sexp_body
|
3978
|
-
|
3978
|
+
|
3979
3979
|
result
|
3980
3980
|
end
|
3981
3981
|
|
@@ -3990,14 +3990,14 @@ def _reduce_69(val, _values, result)
|
|
3990
3990
|
result, operation = block, result
|
3991
3991
|
result.insert 1, operation
|
3992
3992
|
end
|
3993
|
-
|
3993
|
+
|
3994
3994
|
result
|
3995
3995
|
end
|
3996
3996
|
|
3997
3997
|
def _reduce_70(val, _values, result)
|
3998
3998
|
lhs, callop, op, args = val
|
3999
3999
|
result = new_call lhs, op.to_sym, args, callop
|
4000
|
-
|
4000
|
+
|
4001
4001
|
result
|
4002
4002
|
end
|
4003
4003
|
|
@@ -4009,13 +4009,13 @@ def _reduce_71(val, _values, result)
|
|
4009
4009
|
|
4010
4010
|
block.insert 1, call
|
4011
4011
|
result = block
|
4012
|
-
|
4012
|
+
|
4013
4013
|
result
|
4014
4014
|
end
|
4015
4015
|
|
4016
4016
|
def _reduce_72(val, _values, result)
|
4017
4017
|
result = new_call val[0], val[2].to_sym, val[3]
|
4018
|
-
|
4018
|
+
|
4019
4019
|
result
|
4020
4020
|
end
|
4021
4021
|
|
@@ -4027,13 +4027,13 @@ def _reduce_73(val, _values, result)
|
|
4027
4027
|
|
4028
4028
|
block.insert 1, call
|
4029
4029
|
result = block
|
4030
|
-
|
4030
|
+
|
4031
4031
|
result
|
4032
4032
|
end
|
4033
4033
|
|
4034
4034
|
def _reduce_74(val, _values, result)
|
4035
4035
|
result = new_super val[1]
|
4036
|
-
|
4036
|
+
|
4037
4037
|
result
|
4038
4038
|
end
|
4039
4039
|
|
@@ -4041,28 +4041,28 @@ def _reduce_75(val, _values, result)
|
|
4041
4041
|
(_, line), args = val
|
4042
4042
|
result = new_yield args
|
4043
4043
|
result.line line # TODO: push to new_yield
|
4044
|
-
|
4044
|
+
|
4045
4045
|
result
|
4046
4046
|
end
|
4047
4047
|
|
4048
4048
|
def _reduce_76(val, _values, result)
|
4049
4049
|
line = val[0].last
|
4050
4050
|
result = s(:return, ret_args(val[1])).line(line)
|
4051
|
-
|
4051
|
+
|
4052
4052
|
result
|
4053
4053
|
end
|
4054
4054
|
|
4055
4055
|
def _reduce_77(val, _values, result)
|
4056
4056
|
(_, line), args = val
|
4057
4057
|
result = s(:break, ret_args(args)).line line
|
4058
|
-
|
4058
|
+
|
4059
4059
|
result
|
4060
4060
|
end
|
4061
4061
|
|
4062
4062
|
def _reduce_78(val, _values, result)
|
4063
4063
|
line = val[0].last
|
4064
4064
|
result = s(:next, ret_args(val[1])).line(line)
|
4065
|
-
|
4065
|
+
|
4066
4066
|
result
|
4067
4067
|
end
|
4068
4068
|
|
@@ -4070,7 +4070,7 @@ end
|
|
4070
4070
|
|
4071
4071
|
def _reduce_80(val, _values, result)
|
4072
4072
|
result = val[1]
|
4073
|
-
|
4073
|
+
|
4074
4074
|
result
|
4075
4075
|
end
|
4076
4076
|
|
@@ -4081,21 +4081,21 @@ def _reduce_82(val, _values, result)
|
|
4081
4081
|
l = arg.line
|
4082
4082
|
|
4083
4083
|
result = s(:masgn, s(:array, arg).line(l)).line l
|
4084
|
-
|
4084
|
+
|
4085
4085
|
result
|
4086
4086
|
end
|
4087
4087
|
|
4088
4088
|
def _reduce_83(val, _values, result)
|
4089
4089
|
head, = val
|
4090
4090
|
result = s(:masgn, head).line head.line
|
4091
|
-
|
4091
|
+
|
4092
4092
|
result
|
4093
4093
|
end
|
4094
4094
|
|
4095
4095
|
def _reduce_84(val, _values, result)
|
4096
4096
|
lhs, rhs = val
|
4097
4097
|
result = s(:masgn, lhs << rhs.compact).line lhs.line
|
4098
|
-
|
4098
|
+
|
4099
4099
|
result
|
4100
4100
|
end
|
4101
4101
|
|
@@ -4103,7 +4103,7 @@ def _reduce_85(val, _values, result)
|
|
4103
4103
|
head, _, tail = val
|
4104
4104
|
head << s(:splat, tail).line(tail.line)
|
4105
4105
|
result = s(:masgn, head).line head.line
|
4106
|
-
|
4106
|
+
|
4107
4107
|
result
|
4108
4108
|
end
|
4109
4109
|
|
@@ -4113,7 +4113,7 @@ def _reduce_86(val, _values, result)
|
|
4113
4113
|
result = list_append ary1, s(:splat, splat).line(splat.line)
|
4114
4114
|
result.concat ary2.sexp_body
|
4115
4115
|
result = s(:masgn, result).line result.line
|
4116
|
-
|
4116
|
+
|
4117
4117
|
result
|
4118
4118
|
end
|
4119
4119
|
|
@@ -4121,7 +4121,7 @@ def _reduce_87(val, _values, result)
|
|
4121
4121
|
head, _ = val
|
4122
4122
|
l = head.line
|
4123
4123
|
result = s(:masgn, head << s(:splat).line(l)).line l
|
4124
|
-
|
4124
|
+
|
4125
4125
|
result
|
4126
4126
|
end
|
4127
4127
|
|
@@ -4130,7 +4130,7 @@ def _reduce_88(val, _values, result)
|
|
4130
4130
|
ary = list_append head, s(:splat).line(head.line)
|
4131
4131
|
ary.concat post.sexp_body
|
4132
4132
|
result = s(:masgn, ary).line ary.line
|
4133
|
-
|
4133
|
+
|
4134
4134
|
result
|
4135
4135
|
end
|
4136
4136
|
|
@@ -4140,7 +4140,7 @@ def _reduce_89(val, _values, result)
|
|
4140
4140
|
splat = s(:splat, node).line l
|
4141
4141
|
ary = s(:array, splat).line l
|
4142
4142
|
result = s(:masgn, ary).line l
|
4143
|
-
|
4143
|
+
|
4144
4144
|
result
|
4145
4145
|
end
|
4146
4146
|
|
@@ -4151,14 +4151,14 @@ def _reduce_90(val, _values, result)
|
|
4151
4151
|
ary = s(:array, splat).line splat.line
|
4152
4152
|
ary.concat post.sexp_body
|
4153
4153
|
result = s(:masgn, ary).line ary.line
|
4154
|
-
|
4154
|
+
|
4155
4155
|
result
|
4156
4156
|
end
|
4157
4157
|
|
4158
4158
|
def _reduce_91(val, _values, result)
|
4159
4159
|
l = lexer.lineno
|
4160
4160
|
result = s(:masgn, s(:array, s(:splat).line(l)).line(l)).line l
|
4161
|
-
|
4161
|
+
|
4162
4162
|
result
|
4163
4163
|
end
|
4164
4164
|
|
@@ -4169,7 +4169,7 @@ def _reduce_92(val, _values, result)
|
|
4169
4169
|
splat = s(:splat).line l
|
4170
4170
|
ary = s(:array, splat, *post.sexp_body).line l
|
4171
4171
|
result = s(:masgn, ary).line l
|
4172
|
-
|
4172
|
+
|
4173
4173
|
result
|
4174
4174
|
end
|
4175
4175
|
|
@@ -4177,70 +4177,70 @@ end
|
|
4177
4177
|
|
4178
4178
|
def _reduce_94(val, _values, result)
|
4179
4179
|
result = val[1]
|
4180
|
-
|
4180
|
+
|
4181
4181
|
result
|
4182
4182
|
end
|
4183
4183
|
|
4184
4184
|
def _reduce_95(val, _values, result)
|
4185
4185
|
lhs, _ = val
|
4186
4186
|
result = s(:array, lhs).line lhs.line
|
4187
|
-
|
4187
|
+
|
4188
4188
|
result
|
4189
4189
|
end
|
4190
4190
|
|
4191
4191
|
def _reduce_96(val, _values, result)
|
4192
4192
|
result = val[0] << val[1].compact
|
4193
|
-
|
4193
|
+
|
4194
4194
|
result
|
4195
4195
|
end
|
4196
4196
|
|
4197
4197
|
def _reduce_97(val, _values, result)
|
4198
4198
|
item, = val
|
4199
4199
|
result = s(:array, item).line item.line
|
4200
|
-
|
4200
|
+
|
4201
4201
|
result
|
4202
4202
|
end
|
4203
4203
|
|
4204
4204
|
def _reduce_98(val, _values, result)
|
4205
4205
|
result = list_append val[0], val[2]
|
4206
|
-
|
4206
|
+
|
4207
4207
|
result
|
4208
4208
|
end
|
4209
4209
|
|
4210
4210
|
def _reduce_99(val, _values, result)
|
4211
4211
|
result = self.assignable val[0]
|
4212
|
-
|
4212
|
+
|
4213
4213
|
result
|
4214
4214
|
end
|
4215
4215
|
|
4216
4216
|
def _reduce_100(val, _values, result)
|
4217
4217
|
result = self.assignable val[0]
|
4218
|
-
|
4218
|
+
|
4219
4219
|
result
|
4220
4220
|
end
|
4221
4221
|
|
4222
4222
|
def _reduce_101(val, _values, result)
|
4223
4223
|
result = self.aryset val[0], val[2]
|
4224
|
-
|
4224
|
+
|
4225
4225
|
result
|
4226
4226
|
end
|
4227
4227
|
|
4228
4228
|
def _reduce_102(val, _values, result)
|
4229
4229
|
result = new_attrasgn val[0], val[2], val[1]
|
4230
|
-
|
4230
|
+
|
4231
4231
|
result
|
4232
4232
|
end
|
4233
4233
|
|
4234
4234
|
def _reduce_103(val, _values, result)
|
4235
4235
|
recv, _, id = val
|
4236
4236
|
result = new_attrasgn recv, id
|
4237
|
-
|
4237
|
+
|
4238
4238
|
result
|
4239
4239
|
end
|
4240
4240
|
|
4241
4241
|
def _reduce_104(val, _values, result)
|
4242
4242
|
result = new_attrasgn val[0], val[2], val[1]
|
4243
|
-
|
4243
|
+
|
4244
4244
|
result
|
4245
4245
|
end
|
4246
4246
|
|
@@ -4254,7 +4254,7 @@ def _reduce_105(val, _values, result)
|
|
4254
4254
|
l = expr.line
|
4255
4255
|
|
4256
4256
|
result = s(:const, s(:colon2, expr, id.to_sym).line(l), nil).line l
|
4257
|
-
|
4257
|
+
|
4258
4258
|
result
|
4259
4259
|
end
|
4260
4260
|
|
@@ -4268,13 +4268,13 @@ def _reduce_106(val, _values, result)
|
|
4268
4268
|
l = lexer.lineno
|
4269
4269
|
|
4270
4270
|
result = s(:const, nil, s(:colon3, id.to_sym).line(l)).line l
|
4271
|
-
|
4271
|
+
|
4272
4272
|
result
|
4273
4273
|
end
|
4274
4274
|
|
4275
4275
|
def _reduce_107(val, _values, result)
|
4276
4276
|
self.backref_assign_error val[0]
|
4277
|
-
|
4277
|
+
|
4278
4278
|
result
|
4279
4279
|
end
|
4280
4280
|
|
@@ -4282,7 +4282,7 @@ def _reduce_108(val, _values, result)
|
|
4282
4282
|
line = lexer.lineno
|
4283
4283
|
result = self.assignable val[0]
|
4284
4284
|
result.line = line
|
4285
|
-
|
4285
|
+
|
4286
4286
|
result
|
4287
4287
|
end
|
4288
4288
|
|
@@ -4291,34 +4291,34 @@ def _reduce_109(val, _values, result)
|
|
4291
4291
|
result = self.assignable val[0]
|
4292
4292
|
result.line = line
|
4293
4293
|
debug20 9, val, result
|
4294
|
-
|
4294
|
+
|
4295
4295
|
result
|
4296
4296
|
end
|
4297
4297
|
|
4298
4298
|
def _reduce_110(val, _values, result)
|
4299
4299
|
lhs, _, args, _ = val
|
4300
4300
|
result = self.aryset lhs, args
|
4301
|
-
|
4301
|
+
|
4302
4302
|
result
|
4303
4303
|
end
|
4304
4304
|
|
4305
4305
|
def _reduce_111(val, _values, result)
|
4306
4306
|
lhs, op, id = val
|
4307
4307
|
result = new_attrasgn lhs, id, op
|
4308
|
-
|
4308
|
+
|
4309
4309
|
result
|
4310
4310
|
end
|
4311
4311
|
|
4312
4312
|
def _reduce_112(val, _values, result)
|
4313
4313
|
lhs, _, id = val
|
4314
4314
|
result = new_attrasgn lhs, id
|
4315
|
-
|
4315
|
+
|
4316
4316
|
result
|
4317
4317
|
end
|
4318
4318
|
|
4319
4319
|
def _reduce_113(val, _values, result)
|
4320
4320
|
result = new_attrasgn val[0], val[2], val[1]
|
4321
|
-
|
4321
|
+
|
4322
4322
|
result
|
4323
4323
|
end
|
4324
4324
|
|
@@ -4332,7 +4332,7 @@ def _reduce_114(val, _values, result)
|
|
4332
4332
|
|
4333
4333
|
l = expr.line
|
4334
4334
|
result = s(:const, s(:colon2, expr, id.to_sym).line(l)).line l
|
4335
|
-
|
4335
|
+
|
4336
4336
|
result
|
4337
4337
|
end
|
4338
4338
|
|
@@ -4346,19 +4346,19 @@ def _reduce_115(val, _values, result)
|
|
4346
4346
|
|
4347
4347
|
l = lexer.lineno
|
4348
4348
|
result = s(:const, s(:colon3, id.to_sym).line(l)).line l
|
4349
|
-
|
4349
|
+
|
4350
4350
|
result
|
4351
4351
|
end
|
4352
4352
|
|
4353
4353
|
def _reduce_116(val, _values, result)
|
4354
4354
|
self.backref_assign_error val[0]
|
4355
|
-
|
4355
|
+
|
4356
4356
|
result
|
4357
4357
|
end
|
4358
4358
|
|
4359
4359
|
def _reduce_117(val, _values, result)
|
4360
4360
|
yyerror "class/module name must be CONSTANT"
|
4361
|
-
|
4361
|
+
|
4362
4362
|
result
|
4363
4363
|
end
|
4364
4364
|
|
@@ -4367,13 +4367,13 @@ end
|
|
4367
4367
|
def _reduce_119(val, _values, result)
|
4368
4368
|
_, name = val
|
4369
4369
|
result = s(:colon3, name.to_sym).line lexer.lineno
|
4370
|
-
|
4370
|
+
|
4371
4371
|
result
|
4372
4372
|
end
|
4373
4373
|
|
4374
4374
|
def _reduce_120(val, _values, result)
|
4375
4375
|
result = val[0].to_sym
|
4376
|
-
|
4376
|
+
|
4377
4377
|
result
|
4378
4378
|
end
|
4379
4379
|
|
@@ -4382,7 +4382,7 @@ def _reduce_121(val, _values, result)
|
|
4382
4382
|
|
4383
4383
|
result = s(:colon2, pval, name.to_sym)
|
4384
4384
|
result.line pval.line
|
4385
|
-
|
4385
|
+
|
4386
4386
|
result
|
4387
4387
|
end
|
4388
4388
|
|
@@ -4395,7 +4395,7 @@ end
|
|
4395
4395
|
def _reduce_125(val, _values, result)
|
4396
4396
|
lexer.lex_state = EXPR_END
|
4397
4397
|
result = val[0]
|
4398
|
-
|
4398
|
+
|
4399
4399
|
result
|
4400
4400
|
end
|
4401
4401
|
|
@@ -4403,7 +4403,7 @@ def _reduce_126(val, _values, result)
|
|
4403
4403
|
(sym, _line), = val
|
4404
4404
|
lexer.lex_state = EXPR_END
|
4405
4405
|
result = sym
|
4406
|
-
|
4406
|
+
|
4407
4407
|
result
|
4408
4408
|
end
|
4409
4409
|
|
@@ -4414,7 +4414,7 @@ end
|
|
4414
4414
|
def _reduce_129(val, _values, result)
|
4415
4415
|
id, = val
|
4416
4416
|
result = s(:lit, id.to_sym).line lexer.lineno
|
4417
|
-
|
4417
|
+
|
4418
4418
|
result
|
4419
4419
|
end
|
4420
4420
|
|
@@ -4422,19 +4422,19 @@ end
|
|
4422
4422
|
|
4423
4423
|
def _reduce_131(val, _values, result)
|
4424
4424
|
result = new_undef val[0]
|
4425
|
-
|
4425
|
+
|
4426
4426
|
result
|
4427
4427
|
end
|
4428
4428
|
|
4429
4429
|
def _reduce_132(val, _values, result)
|
4430
4430
|
lexer.lex_state = EXPR_FNAME
|
4431
|
-
|
4431
|
+
|
4432
4432
|
result
|
4433
4433
|
end
|
4434
4434
|
|
4435
4435
|
def _reduce_133(val, _values, result)
|
4436
4436
|
result = new_undef val[0], val[3]
|
4437
|
-
|
4437
|
+
|
4438
4438
|
result
|
4439
4439
|
end
|
4440
4440
|
|
@@ -4584,31 +4584,31 @@ end
|
|
4584
4584
|
|
4585
4585
|
def _reduce_206(val, _values, result)
|
4586
4586
|
result = new_assign val[0], val[2]
|
4587
|
-
|
4587
|
+
|
4588
4588
|
result
|
4589
4589
|
end
|
4590
4590
|
|
4591
4591
|
def _reduce_207(val, _values, result)
|
4592
4592
|
result = new_op_asgn val
|
4593
|
-
|
4593
|
+
|
4594
4594
|
result
|
4595
4595
|
end
|
4596
4596
|
|
4597
4597
|
def _reduce_208(val, _values, result)
|
4598
4598
|
result = new_op_asgn1 val
|
4599
|
-
|
4599
|
+
|
4600
4600
|
result
|
4601
4601
|
end
|
4602
4602
|
|
4603
4603
|
def _reduce_209(val, _values, result)
|
4604
4604
|
result = new_op_asgn2 val
|
4605
|
-
|
4605
|
+
|
4606
4606
|
result
|
4607
4607
|
end
|
4608
4608
|
|
4609
4609
|
def _reduce_210(val, _values, result)
|
4610
4610
|
result = new_op_asgn2 val
|
4611
|
-
|
4611
|
+
|
4612
4612
|
result
|
4613
4613
|
end
|
4614
4614
|
|
@@ -4616,7 +4616,7 @@ def _reduce_211(val, _values, result)
|
|
4616
4616
|
lhs, _, id, op, rhs = val
|
4617
4617
|
|
4618
4618
|
result = s(:op_asgn, lhs, rhs, id.to_sym, op.to_sym).line lhs.line
|
4619
|
-
|
4619
|
+
|
4620
4620
|
result
|
4621
4621
|
end
|
4622
4622
|
|
@@ -4625,13 +4625,13 @@ def _reduce_212(val, _values, result)
|
|
4625
4625
|
|
4626
4626
|
lhs = s(:colon2, lhs1, lhs2.to_sym).line lhs1.line
|
4627
4627
|
result = new_const_op_asgn [lhs, op, rhs]
|
4628
|
-
|
4628
|
+
|
4629
4629
|
result
|
4630
4630
|
end
|
4631
4631
|
|
4632
4632
|
def _reduce_213(val, _values, result)
|
4633
4633
|
result = self.lexer.lineno
|
4634
|
-
|
4634
|
+
|
4635
4635
|
result
|
4636
4636
|
end
|
4637
4637
|
|
@@ -4640,7 +4640,7 @@ def _reduce_214(val, _values, result)
|
|
4640
4640
|
|
4641
4641
|
lhs = s(:colon3, lhs.to_sym).line line
|
4642
4642
|
result = new_const_op_asgn [lhs, op, rhs]
|
4643
|
-
|
4643
|
+
|
4644
4644
|
result
|
4645
4645
|
end
|
4646
4646
|
|
@@ -4648,7 +4648,7 @@ def _reduce_215(val, _values, result)
|
|
4648
4648
|
# TODO: lhs = var_field val[0]
|
4649
4649
|
asgn = new_op_asgn val
|
4650
4650
|
result = self.backref_assign_error asgn
|
4651
|
-
|
4651
|
+
|
4652
4652
|
result
|
4653
4653
|
end
|
4654
4654
|
|
@@ -4659,7 +4659,7 @@ def _reduce_216(val, _values, result)
|
|
4659
4659
|
else
|
4660
4660
|
result = s(:dot2, v1, v2).line v1.line
|
4661
4661
|
end
|
4662
|
-
|
4662
|
+
|
4663
4663
|
result
|
4664
4664
|
end
|
4665
4665
|
|
@@ -4670,7 +4670,7 @@ def _reduce_217(val, _values, result)
|
|
4670
4670
|
else
|
4671
4671
|
result = s(:dot3, v1, v2).line v1.line
|
4672
4672
|
end
|
4673
|
-
|
4673
|
+
|
4674
4674
|
result
|
4675
4675
|
end
|
4676
4676
|
|
@@ -4679,7 +4679,7 @@ def _reduce_218(val, _values, result)
|
|
4679
4679
|
v2 = nil
|
4680
4680
|
|
4681
4681
|
result = s(:dot2, v1, v2).line v1.line
|
4682
|
-
|
4682
|
+
|
4683
4683
|
result
|
4684
4684
|
end
|
4685
4685
|
|
@@ -4688,43 +4688,43 @@ def _reduce_219(val, _values, result)
|
|
4688
4688
|
v2 = nil
|
4689
4689
|
|
4690
4690
|
result = s(:dot3, v1, v2).line v1.line
|
4691
|
-
|
4691
|
+
|
4692
4692
|
result
|
4693
4693
|
end
|
4694
4694
|
|
4695
4695
|
def _reduce_220(val, _values, result)
|
4696
4696
|
result = new_call val[0], :+, argl(val[2])
|
4697
|
-
|
4697
|
+
|
4698
4698
|
result
|
4699
4699
|
end
|
4700
4700
|
|
4701
4701
|
def _reduce_221(val, _values, result)
|
4702
4702
|
result = new_call val[0], :-, argl(val[2])
|
4703
|
-
|
4703
|
+
|
4704
4704
|
result
|
4705
4705
|
end
|
4706
4706
|
|
4707
4707
|
def _reduce_222(val, _values, result)
|
4708
4708
|
result = new_call val[0], :*, argl(val[2])
|
4709
|
-
|
4709
|
+
|
4710
4710
|
result
|
4711
4711
|
end
|
4712
4712
|
|
4713
4713
|
def _reduce_223(val, _values, result)
|
4714
4714
|
result = new_call val[0], :"/", argl(val[2])
|
4715
|
-
|
4715
|
+
|
4716
4716
|
result
|
4717
4717
|
end
|
4718
4718
|
|
4719
4719
|
def _reduce_224(val, _values, result)
|
4720
4720
|
result = new_call val[0], :"%", argl(val[2])
|
4721
|
-
|
4721
|
+
|
4722
4722
|
result
|
4723
4723
|
end
|
4724
4724
|
|
4725
4725
|
def _reduce_225(val, _values, result)
|
4726
4726
|
result = new_call val[0], :**, argl(val[2])
|
4727
|
-
|
4727
|
+
|
4728
4728
|
result
|
4729
4729
|
end
|
4730
4730
|
|
@@ -4732,43 +4732,43 @@ def _reduce_226(val, _values, result)
|
|
4732
4732
|
lit = s(:lit, val[1]).line lexer.lineno
|
4733
4733
|
result = new_call(new_call(lit, :"**", argl(val[3])), :"-@")
|
4734
4734
|
|
4735
|
-
|
4735
|
+
|
4736
4736
|
result
|
4737
4737
|
end
|
4738
4738
|
|
4739
4739
|
def _reduce_227(val, _values, result)
|
4740
4740
|
result = new_call val[1], :"+@"
|
4741
|
-
|
4741
|
+
|
4742
4742
|
result
|
4743
4743
|
end
|
4744
4744
|
|
4745
4745
|
def _reduce_228(val, _values, result)
|
4746
4746
|
result = new_call val[1], :"-@"
|
4747
|
-
|
4747
|
+
|
4748
4748
|
result
|
4749
4749
|
end
|
4750
4750
|
|
4751
4751
|
def _reduce_229(val, _values, result)
|
4752
4752
|
result = new_call val[0], :"|", argl(val[2])
|
4753
|
-
|
4753
|
+
|
4754
4754
|
result
|
4755
4755
|
end
|
4756
4756
|
|
4757
4757
|
def _reduce_230(val, _values, result)
|
4758
4758
|
result = new_call val[0], :"^", argl(val[2])
|
4759
|
-
|
4759
|
+
|
4760
4760
|
result
|
4761
4761
|
end
|
4762
4762
|
|
4763
4763
|
def _reduce_231(val, _values, result)
|
4764
4764
|
result = new_call val[0], :"&", argl(val[2])
|
4765
|
-
|
4765
|
+
|
4766
4766
|
result
|
4767
4767
|
end
|
4768
4768
|
|
4769
4769
|
def _reduce_232(val, _values, result)
|
4770
4770
|
result = new_call val[0], :"<=>", argl(val[2])
|
4771
|
-
|
4771
|
+
|
4772
4772
|
result
|
4773
4773
|
end
|
4774
4774
|
|
@@ -4776,33 +4776,33 @@ end
|
|
4776
4776
|
|
4777
4777
|
def _reduce_234(val, _values, result)
|
4778
4778
|
result = new_call val[0], :"==", argl(val[2])
|
4779
|
-
|
4779
|
+
|
4780
4780
|
result
|
4781
4781
|
end
|
4782
4782
|
|
4783
4783
|
def _reduce_235(val, _values, result)
|
4784
4784
|
result = new_call val[0], :"===", argl(val[2])
|
4785
|
-
|
4785
|
+
|
4786
4786
|
result
|
4787
4787
|
end
|
4788
4788
|
|
4789
4789
|
def _reduce_236(val, _values, result)
|
4790
4790
|
result = new_call val[0], :"!=", argl(val[2])
|
4791
|
-
|
4791
|
+
|
4792
4792
|
result
|
4793
4793
|
end
|
4794
4794
|
|
4795
4795
|
def _reduce_237(val, _values, result)
|
4796
4796
|
lhs, _, rhs = val
|
4797
4797
|
result = new_match lhs, rhs
|
4798
|
-
|
4798
|
+
|
4799
4799
|
result
|
4800
4800
|
end
|
4801
4801
|
|
4802
4802
|
def _reduce_238(val, _values, result)
|
4803
4803
|
lhs, _, rhs = val
|
4804
4804
|
result = s(:not, new_match(lhs, rhs)).line lhs.line
|
4805
|
-
|
4805
|
+
|
4806
4806
|
result
|
4807
4807
|
end
|
4808
4808
|
|
@@ -4810,13 +4810,13 @@ def _reduce_239(val, _values, result)
|
|
4810
4810
|
_, arg = val
|
4811
4811
|
result = new_call arg, :"!"
|
4812
4812
|
result.line arg.line
|
4813
|
-
|
4813
|
+
|
4814
4814
|
result
|
4815
4815
|
end
|
4816
4816
|
|
4817
4817
|
def _reduce_240(val, _values, result)
|
4818
4818
|
result = new_call value_expr(val[1]), :"~"
|
4819
|
-
|
4819
|
+
|
4820
4820
|
result
|
4821
4821
|
end
|
4822
4822
|
|
@@ -4824,7 +4824,7 @@ def _reduce_241(val, _values, result)
|
|
4824
4824
|
val[0] = value_expr val[0]
|
4825
4825
|
val[2] = value_expr val[2]
|
4826
4826
|
result = new_call val[0], :"\<\<", argl(val[2])
|
4827
|
-
|
4827
|
+
|
4828
4828
|
result
|
4829
4829
|
end
|
4830
4830
|
|
@@ -4832,33 +4832,33 @@ def _reduce_242(val, _values, result)
|
|
4832
4832
|
val[0] = value_expr val[0]
|
4833
4833
|
val[2] = value_expr val[2]
|
4834
4834
|
result = new_call val[0], :">>", argl(val[2])
|
4835
|
-
|
4835
|
+
|
4836
4836
|
result
|
4837
4837
|
end
|
4838
4838
|
|
4839
4839
|
def _reduce_243(val, _values, result)
|
4840
4840
|
result = logical_op :and, val[0], val[2]
|
4841
|
-
|
4841
|
+
|
4842
4842
|
result
|
4843
4843
|
end
|
4844
4844
|
|
4845
4845
|
def _reduce_244(val, _values, result)
|
4846
4846
|
result = logical_op :or, val[0], val[2]
|
4847
|
-
|
4847
|
+
|
4848
4848
|
result
|
4849
4849
|
end
|
4850
4850
|
|
4851
4851
|
def _reduce_245(val, _values, result)
|
4852
4852
|
(_, line), _, arg = val
|
4853
4853
|
result = s(:defined, arg).line line
|
4854
|
-
|
4854
|
+
|
4855
4855
|
result
|
4856
4856
|
end
|
4857
4857
|
|
4858
4858
|
def _reduce_246(val, _values, result)
|
4859
4859
|
c, _, t, _, _, f = val
|
4860
4860
|
result = s(:if, c, t, f).line c.line
|
4861
|
-
|
4861
|
+
|
4862
4862
|
result
|
4863
4863
|
end
|
4864
4864
|
|
@@ -4875,7 +4875,7 @@ end
|
|
4875
4875
|
def _reduce_252(val, _values, result)
|
4876
4876
|
lhs, op, rhs = val
|
4877
4877
|
result = new_call lhs, op.to_sym, argl(rhs)
|
4878
|
-
|
4878
|
+
|
4879
4879
|
result
|
4880
4880
|
end
|
4881
4881
|
|
@@ -4883,13 +4883,13 @@ def _reduce_253(val, _values, result)
|
|
4883
4883
|
lhs, op, rhs = val
|
4884
4884
|
warn "comparison '%s' after comparison", op
|
4885
4885
|
result = new_call lhs, op.to_sym, argl(rhs)
|
4886
|
-
|
4886
|
+
|
4887
4887
|
result
|
4888
4888
|
end
|
4889
4889
|
|
4890
4890
|
def _reduce_254(val, _values, result)
|
4891
4891
|
result = value_expr(val[0])
|
4892
|
-
|
4892
|
+
|
4893
4893
|
result
|
4894
4894
|
end
|
4895
4895
|
|
@@ -4897,19 +4897,19 @@ end
|
|
4897
4897
|
|
4898
4898
|
def _reduce_256(val, _values, result)
|
4899
4899
|
result = args [val[0]]
|
4900
|
-
|
4900
|
+
|
4901
4901
|
result
|
4902
4902
|
end
|
4903
4903
|
|
4904
4904
|
def _reduce_257(val, _values, result)
|
4905
4905
|
result = args [val[0], array_to_hash(val[2])]
|
4906
|
-
|
4906
|
+
|
4907
4907
|
result
|
4908
4908
|
end
|
4909
4909
|
|
4910
4910
|
def _reduce_258(val, _values, result)
|
4911
4911
|
result = args [array_to_hash(val[0])]
|
4912
|
-
|
4912
|
+
|
4913
4913
|
result
|
4914
4914
|
end
|
4915
4915
|
|
@@ -4922,14 +4922,14 @@ def _reduce_260(val, _values, result)
|
|
4922
4922
|
|
4923
4923
|
ary = s(:array).line line
|
4924
4924
|
result = new_rescue(body, new_resbody(ary, resbody))
|
4925
|
-
|
4925
|
+
|
4926
4926
|
result
|
4927
4927
|
end
|
4928
4928
|
|
4929
4929
|
def _reduce_261(val, _values, result)
|
4930
4930
|
_, args, _ = val
|
4931
4931
|
result = args
|
4932
|
-
|
4932
|
+
|
4933
4933
|
result
|
4934
4934
|
end
|
4935
4935
|
|
@@ -4943,79 +4943,76 @@ end
|
|
4943
4943
|
|
4944
4944
|
def _reduce_266(val, _values, result)
|
4945
4945
|
result = args val
|
4946
|
-
|
4946
|
+
|
4947
4947
|
result
|
4948
4948
|
end
|
4949
4949
|
|
4950
4950
|
def _reduce_267(val, _values, result)
|
4951
4951
|
result = args [val[0], array_to_hash(val[2])]
|
4952
|
-
|
4952
|
+
|
4953
4953
|
result
|
4954
4954
|
end
|
4955
4955
|
|
4956
4956
|
def _reduce_268(val, _values, result)
|
4957
4957
|
result = args [array_to_hash(val[0])]
|
4958
|
-
|
4958
|
+
|
4959
4959
|
result
|
4960
4960
|
end
|
4961
4961
|
|
4962
4962
|
def _reduce_269(val, _values, result)
|
4963
4963
|
warning "parenthesize argument(s) for future version"
|
4964
4964
|
result = call_args val
|
4965
|
-
|
4965
|
+
|
4966
4966
|
result
|
4967
4967
|
end
|
4968
4968
|
|
4969
4969
|
def _reduce_270(val, _values, result)
|
4970
4970
|
result = call_args val
|
4971
|
-
|
4972
|
-
|
4971
|
+
|
4973
4972
|
result
|
4974
4973
|
end
|
4975
4974
|
|
4976
4975
|
def _reduce_271(val, _values, result)
|
4977
|
-
result = call_args [array_to_hash(val[0])]
|
4978
|
-
|
4979
|
-
|
4976
|
+
result = call_args [array_to_hash(val[0]), val[1]]
|
4977
|
+
|
4980
4978
|
result
|
4981
4979
|
end
|
4982
4980
|
|
4983
4981
|
def _reduce_272(val, _values, result)
|
4984
|
-
result = call_args [val[0], array_to_hash(val[2])]
|
4985
|
-
|
4986
|
-
|
4982
|
+
result = call_args [val[0], array_to_hash(val[2]), val[3]]
|
4983
|
+
|
4987
4984
|
result
|
4988
4985
|
end
|
4989
4986
|
|
4990
4987
|
def _reduce_273(val, _values, result)
|
4991
4988
|
result = call_args val
|
4992
|
-
|
4989
|
+
|
4993
4990
|
result
|
4994
4991
|
end
|
4995
4992
|
|
4996
4993
|
def _reduce_274(val, _values, result)
|
4997
4994
|
result = lexer.cmdarg.store true
|
4998
|
-
|
4995
|
+
|
4999
4996
|
result
|
5000
4997
|
end
|
5001
4998
|
|
5002
4999
|
def _reduce_275(val, _values, result)
|
5003
5000
|
lexer.cmdarg.restore val[0]
|
5004
5001
|
result = val[1]
|
5005
|
-
|
5002
|
+
|
5006
5003
|
result
|
5007
5004
|
end
|
5008
5005
|
|
5009
5006
|
def _reduce_276(val, _values, result)
|
5010
5007
|
_, arg = val
|
5011
5008
|
result = s(:block_pass, arg).line arg.line
|
5012
|
-
|
5009
|
+
|
5013
5010
|
result
|
5014
5011
|
end
|
5015
5012
|
|
5016
5013
|
def _reduce_277(val, _values, result)
|
5017
5014
|
result = val[1]
|
5018
|
-
|
5015
|
+
|
5019
5016
|
result
|
5020
5017
|
end
|
5021
5018
|
|
@@ -5025,51 +5022,51 @@ def _reduce_279(val, _values, result)
|
|
5025
5022
|
arg, = val
|
5026
5023
|
|
5027
5024
|
result = s(:array, arg).line arg.line
|
5028
|
-
|
5025
|
+
|
5029
5026
|
result
|
5030
5027
|
end
|
5031
5028
|
|
5032
5029
|
def _reduce_280(val, _values, result)
|
5033
5030
|
_, arg = val
|
5034
5031
|
result = s(:array, s(:splat, arg).line(arg.line)).line arg.line
|
5035
|
-
|
5032
|
+
|
5036
5033
|
result
|
5037
5034
|
end
|
5038
5035
|
|
5039
5036
|
def _reduce_281(val, _values, result)
|
5040
5037
|
args, _, id = val
|
5041
5038
|
result = self.list_append args, id
|
5042
|
-
|
5039
|
+
|
5043
5040
|
result
|
5044
5041
|
end
|
5045
5042
|
|
5046
5043
|
def _reduce_282(val, _values, result)
|
5047
|
-
result = lexer.lineno
|
5044
|
+
result = lexer.lineno
|
5048
5045
|
result
|
5049
5046
|
end
|
5050
5047
|
|
5051
5048
|
def _reduce_283(val, _values, result)
|
5052
5049
|
args, _, _, line, id = val
|
5053
5050
|
result = self.list_append args, s(:splat, id).line(line)
|
5054
|
-
|
5051
|
+
|
5055
5052
|
result
|
5056
5053
|
end
|
5057
5054
|
|
5058
5055
|
def _reduce_284(val, _values, result)
|
5059
5056
|
result = new_masgn_arg val[0]
|
5060
|
-
|
5057
|
+
|
5061
5058
|
result
|
5062
5059
|
end
|
5063
5060
|
|
5064
5061
|
def _reduce_285(val, _values, result)
|
5065
5062
|
result = new_masgn_arg val[0], :wrap
|
5066
|
-
|
5063
|
+
|
5067
5064
|
result
|
5068
5065
|
end
|
5069
5066
|
|
5070
5067
|
def _reduce_286(val, _values, result)
|
5071
5068
|
result = val[0] << val[2]
|
5072
|
-
|
5069
|
+
|
5073
5070
|
result
|
5074
5071
|
end
|
5075
5072
|
|
@@ -5078,14 +5075,14 @@ def _reduce_287(val, _values, result)
|
|
5078
5075
|
# TODO: make all tXXXX terminals include lexer.lineno
|
5079
5076
|
arg, _, _, splat = val
|
5080
5077
|
result = self.arg_concat arg, splat
|
5081
|
-
|
5078
|
+
|
5082
5079
|
result
|
5083
5080
|
end
|
5084
5081
|
|
5085
5082
|
def _reduce_288(val, _values, result)
|
5086
5083
|
_, arg = val
|
5087
5084
|
result = s(:splat, arg).line arg.line
|
5088
|
-
|
5085
|
+
|
5089
5086
|
result
|
5090
5087
|
end
|
5091
5088
|
|
@@ -5112,7 +5109,7 @@ end
|
|
5112
5109
|
def _reduce_299(val, _values, result)
|
5113
5110
|
msg, = val
|
5114
5111
|
result = new_call nil, msg.to_sym
|
5115
|
-
|
5112
|
+
|
5116
5113
|
result
|
5117
5114
|
end
|
5118
5115
|
|
@@ -5121,7 +5118,7 @@ def _reduce_300(val, _values, result)
|
|
5121
5118
|
# TODO:
|
5122
5119
|
# $<val>1 = cmdarg_stack;
|
5123
5120
|
# CMDARG_SET(0);
|
5124
|
-
|
5121
|
+
|
5125
5122
|
result
|
5126
5123
|
end
|
5127
5124
|
|
@@ -5134,33 +5131,33 @@ def _reduce_301(val, _values, result)
|
|
5134
5131
|
end
|
5135
5132
|
|
5136
5133
|
result.line = val[1]
|
5137
|
-
|
5134
|
+
|
5138
5135
|
result
|
5139
5136
|
end
|
5140
5137
|
|
5141
5138
|
def _reduce_302(val, _values, result)
|
5142
5139
|
lexer.lex_state = EXPR_ENDARG
|
5143
5140
|
result = lexer.lineno
|
5144
|
-
|
5141
|
+
|
5145
5142
|
result
|
5146
5143
|
end
|
5147
5144
|
|
5148
5145
|
def _reduce_303(val, _values, result)
|
5149
5146
|
_, line, _ = val
|
5150
5147
|
result = s(:begin).line line
|
5151
|
-
|
5148
|
+
|
5152
5149
|
result
|
5153
5150
|
end
|
5154
5151
|
|
5155
5152
|
def _reduce_304(val, _values, result)
|
5156
5153
|
result = lexer.cmdarg.store false
|
5157
|
-
|
5154
|
+
|
5158
5155
|
result
|
5159
5156
|
end
|
5160
5157
|
|
5161
5158
|
def _reduce_305(val, _values, result)
|
5162
5159
|
lexer.lex_state = EXPR_ENDARG
|
5163
|
-
|
5160
|
+
|
5164
5161
|
result
|
5165
5162
|
end
|
5166
5163
|
|
@@ -5169,7 +5166,7 @@ def _reduce_306(val, _values, result)
|
|
5169
5166
|
warning "(...) interpreted as grouped expression"
|
5170
5167
|
lexer.cmdarg.restore cmdarg
|
5171
5168
|
result = stmt
|
5172
|
-
|
5169
|
+
|
5173
5170
|
result
|
5174
5171
|
end
|
5175
5172
|
|
@@ -5178,7 +5175,7 @@ def _reduce_307(val, _values, result)
|
|
5178
5175
|
result = stmt
|
5179
5176
|
result ||= s(:nil).line lexer.lineno
|
5180
5177
|
result.paren = true
|
5181
|
-
|
5178
|
+
|
5182
5179
|
result
|
5183
5180
|
end
|
5184
5181
|
|
@@ -5186,7 +5183,7 @@ def _reduce_308(val, _values, result)
|
|
5186
5183
|
expr, _, id = val
|
5187
5184
|
|
5188
5185
|
result = s(:colon2, expr, id.to_sym).line expr.line
|
5189
|
-
|
5186
|
+
|
5190
5187
|
result
|
5191
5188
|
end
|
5192
5189
|
|
@@ -5194,12 +5191,12 @@ def _reduce_309(val, _values, result)
|
|
5194
5191
|
_, id = val
|
5195
5192
|
|
5196
5193
|
result = s(:colon3, id.to_sym).line lexer.lineno
|
5197
|
-
|
5194
|
+
|
5198
5195
|
result
|
5199
5196
|
end
|
5200
5197
|
|
5201
5198
|
def _reduce_310(val, _values, result)
|
5202
|
-
result = lexer.lineno
|
5199
|
+
result = lexer.lineno
|
5203
5200
|
result
|
5204
5201
|
end
|
5205
5202
|
|
@@ -5208,44 +5205,44 @@ def _reduce_311(val, _values, result)
|
|
5208
5205
|
result = args || s(:array)
|
5209
5206
|
result.sexp_type = :array # aref_args is :args
|
5210
5207
|
result.line line
|
5211
|
-
|
5208
|
+
|
5212
5209
|
result
|
5213
5210
|
end
|
5214
5211
|
|
5215
5212
|
def _reduce_312(val, _values, result)
|
5216
5213
|
result = self.lexer.lineno
|
5217
|
-
|
5214
|
+
|
5218
5215
|
result
|
5219
5216
|
end
|
5220
5217
|
|
5221
5218
|
def _reduce_313(val, _values, result)
|
5222
5219
|
result = new_hash val
|
5223
|
-
|
5220
|
+
|
5224
5221
|
result
|
5225
5222
|
end
|
5226
5223
|
|
5227
5224
|
def _reduce_314(val, _values, result)
|
5228
5225
|
(_, line), = val
|
5229
5226
|
result = s(:return).line line
|
5230
|
-
|
5227
|
+
|
5231
5228
|
result
|
5232
5229
|
end
|
5233
5230
|
|
5234
5231
|
def _reduce_315(val, _values, result)
|
5235
5232
|
result = new_yield val[2]
|
5236
|
-
|
5233
|
+
|
5237
5234
|
result
|
5238
5235
|
end
|
5239
5236
|
|
5240
5237
|
def _reduce_316(val, _values, result)
|
5241
5238
|
result = new_yield
|
5242
|
-
|
5239
|
+
|
5243
5240
|
result
|
5244
5241
|
end
|
5245
5242
|
|
5246
5243
|
def _reduce_317(val, _values, result)
|
5247
5244
|
result = new_yield
|
5248
|
-
|
5245
|
+
|
5249
5246
|
result
|
5250
5247
|
end
|
5251
5248
|
|
@@ -5253,20 +5250,20 @@ def _reduce_318(val, _values, result)
|
|
5253
5250
|
(_, line), _, _, arg, _ = val
|
5254
5251
|
|
5255
5252
|
result = s(:defined, arg).line line
|
5256
|
-
|
5253
|
+
|
5257
5254
|
result
|
5258
5255
|
end
|
5259
5256
|
|
5260
5257
|
def _reduce_319(val, _values, result)
|
5261
5258
|
_, _, lhs, _ = val
|
5262
5259
|
result = new_call lhs, :"!"
|
5263
|
-
|
5260
|
+
|
5264
5261
|
result
|
5265
5262
|
end
|
5266
5263
|
|
5267
5264
|
def _reduce_320(val, _values, result)
|
5268
5265
|
debug20 14, val, result
|
5269
|
-
|
5266
|
+
|
5270
5267
|
result
|
5271
5268
|
end
|
5272
5269
|
|
@@ -5276,7 +5273,7 @@ def _reduce_321(val, _values, result)
|
|
5276
5273
|
iter.insert 1, call
|
5277
5274
|
result = iter
|
5278
5275
|
# FIX: probably not: call.line = iter.line
|
5279
|
-
|
5276
|
+
|
5280
5277
|
result
|
5281
5278
|
end
|
5282
5279
|
|
@@ -5287,68 +5284,68 @@ def _reduce_323(val, _values, result)
|
|
5287
5284
|
block_dup_check call, iter
|
5288
5285
|
iter.insert 1, call # FIX
|
5289
5286
|
result = iter
|
5290
|
-
|
5287
|
+
|
5291
5288
|
result
|
5292
5289
|
end
|
5293
5290
|
|
5294
5291
|
def _reduce_324(val, _values, result)
|
5295
5292
|
result = val[1] # TODO: fix lineno
|
5296
|
-
|
5293
|
+
|
5297
5294
|
result
|
5298
5295
|
end
|
5299
5296
|
|
5300
5297
|
def _reduce_325(val, _values, result)
|
5301
5298
|
_, c, _, t, f, _ = val
|
5302
5299
|
result = new_if c, t, f
|
5303
|
-
|
5300
|
+
|
5304
5301
|
result
|
5305
5302
|
end
|
5306
5303
|
|
5307
5304
|
def _reduce_326(val, _values, result)
|
5308
5305
|
_, c, _, t, f, _ = val
|
5309
5306
|
result = new_if c, f, t
|
5310
|
-
|
5307
|
+
|
5311
5308
|
result
|
5312
5309
|
end
|
5313
5310
|
|
5314
5311
|
def _reduce_327(val, _values, result)
|
5315
5312
|
_, cond, body, _ = val
|
5316
5313
|
result = new_while body, cond, true
|
5317
|
-
|
5314
|
+
|
5318
5315
|
result
|
5319
5316
|
end
|
5320
5317
|
|
5321
5318
|
def _reduce_328(val, _values, result)
|
5322
5319
|
_, cond, body, _ = val
|
5323
5320
|
result = new_until body, cond, true
|
5324
|
-
|
5321
|
+
|
5325
5322
|
result
|
5326
5323
|
end
|
5327
5324
|
|
5328
5325
|
def _reduce_329(val, _values, result)
|
5329
5326
|
(_, line), expr, _, body, _ = val
|
5330
5327
|
result = new_case expr, body, line
|
5331
|
-
|
5328
|
+
|
5332
5329
|
result
|
5333
5330
|
end
|
5334
5331
|
|
5335
5332
|
def _reduce_330(val, _values, result)
|
5336
5333
|
(_, line), _, body, _ = val
|
5337
5334
|
result = new_case nil, body, line
|
5338
|
-
|
5335
|
+
|
5339
5336
|
result
|
5340
5337
|
end
|
5341
5338
|
|
5342
5339
|
def _reduce_331(val, _values, result)
|
5343
5340
|
_, var, _, iter, body, _ = val
|
5344
5341
|
result = new_for iter, var, body
|
5345
|
-
|
5342
|
+
|
5346
5343
|
result
|
5347
5344
|
end
|
5348
5345
|
|
5349
5346
|
def _reduce_332(val, _values, result)
|
5350
5347
|
result = self.lexer.lineno
|
5351
|
-
|
5348
|
+
|
5352
5349
|
result
|
5353
5350
|
end
|
5354
5351
|
|
@@ -5358,7 +5355,7 @@ def _reduce_333(val, _values, result)
|
|
5358
5355
|
yyerror "class definition in method body"
|
5359
5356
|
end
|
5360
5357
|
self.env.extend
|
5361
|
-
|
5358
|
+
|
5362
5359
|
result
|
5363
5360
|
end
|
5364
5361
|
|
@@ -5366,20 +5363,20 @@ def _reduce_334(val, _values, result)
|
|
5366
5363
|
result = new_class val
|
5367
5364
|
self.env.unextend
|
5368
5365
|
self.lexer.comments # we don't care about comments in the body
|
5369
|
-
|
5366
|
+
|
5370
5367
|
result
|
5371
5368
|
end
|
5372
5369
|
|
5373
5370
|
def _reduce_335(val, _values, result)
|
5374
5371
|
result = self.lexer.lineno
|
5375
|
-
|
5372
|
+
|
5376
5373
|
result
|
5377
5374
|
end
|
5378
5375
|
|
5379
5376
|
def _reduce_336(val, _values, result)
|
5380
5377
|
result = self.in_def
|
5381
5378
|
self.in_def = false
|
5382
|
-
|
5379
|
+
|
5383
5380
|
result
|
5384
5381
|
end
|
5385
5382
|
|
@@ -5387,7 +5384,7 @@ def _reduce_337(val, _values, result)
|
|
5387
5384
|
result = self.in_single
|
5388
5385
|
self.in_single = 0
|
5389
5386
|
self.env.extend
|
5390
|
-
|
5387
|
+
|
5391
5388
|
result
|
5392
5389
|
end
|
5393
5390
|
|
@@ -5395,13 +5392,13 @@ def _reduce_338(val, _values, result)
|
|
5395
5392
|
result = new_sclass val
|
5396
5393
|
self.env.unextend
|
5397
5394
|
self.lexer.comments # we don't care about comments in the body
|
5398
|
-
|
5395
|
+
|
5399
5396
|
result
|
5400
5397
|
end
|
5401
5398
|
|
5402
5399
|
def _reduce_339(val, _values, result)
|
5403
5400
|
result = self.lexer.lineno
|
5404
|
-
|
5401
|
+
|
5405
5402
|
result
|
5406
5403
|
end
|
5407
5404
|
|
@@ -5411,7 +5408,7 @@ def _reduce_340(val, _values, result)
|
|
5411
5408
|
self.in_def or self.in_single > 0
|
5412
5409
|
|
5413
5410
|
self.env.extend
|
5414
|
-
|
5411
|
+
|
5415
5412
|
result
|
5416
5413
|
end
|
5417
5414
|
|
@@ -5419,7 +5416,7 @@ def _reduce_341(val, _values, result)
|
|
5419
5416
|
result = new_module val
|
5420
5417
|
self.env.unextend
|
5421
5418
|
self.lexer.comments # we don't care about comments in the body
|
5422
|
-
|
5419
|
+
|
5423
5420
|
result
|
5424
5421
|
end
|
5425
5422
|
|
@@ -5432,12 +5429,12 @@ def _reduce_342(val, _values, result)
|
|
5432
5429
|
# TODO: local->cmdargs = cmdarg_stack;
|
5433
5430
|
# TODO: port local_push_gen and local_pop_gen
|
5434
5431
|
lexer.cmdarg.stack.replace [false]
|
5435
|
-
|
5432
|
+
|
5436
5433
|
result
|
5437
5434
|
end
|
5438
5435
|
|
5439
5436
|
def _reduce_343(val, _values, result)
|
5440
|
-
result = lexer.lineno
|
5437
|
+
result = lexer.lineno
|
5441
5438
|
result
|
5442
5439
|
end
|
5443
5440
|
|
@@ -5450,14 +5447,14 @@ def _reduce_344(val, _values, result)
|
|
5450
5447
|
self.env.unextend
|
5451
5448
|
self.in_def = in_def
|
5452
5449
|
self.lexer.comments # we don't care about comments in the body
|
5453
|
-
|
5450
|
+
|
5454
5451
|
result
|
5455
5452
|
end
|
5456
5453
|
|
5457
5454
|
def _reduce_345(val, _values, result)
|
5458
5455
|
self.comments.push self.lexer.comments
|
5459
5456
|
lexer.lex_state = EXPR_FNAME
|
5460
|
-
|
5457
|
+
|
5461
5458
|
result
|
5462
5459
|
end
|
5463
5460
|
|
@@ -5467,7 +5464,7 @@ def _reduce_346(val, _values, result)
|
|
5467
5464
|
lexer.lex_state = EXPR_ENDFN # force for args
|
5468
5465
|
result = [lexer.lineno, self.lexer.cmdarg.stack.dup]
|
5469
5466
|
lexer.cmdarg.stack.replace [false]
|
5470
|
-
|
5467
|
+
|
5471
5468
|
result
|
5472
5469
|
end
|
5473
5470
|
|
@@ -5480,41 +5477,41 @@ def _reduce_347(val, _values, result)
|
|
5480
5477
|
self.env.unextend
|
5481
5478
|
self.in_single -= 1
|
5482
5479
|
self.lexer.comments # we don't care about comments in the body
|
5483
|
-
|
5480
|
+
|
5484
5481
|
result
|
5485
5482
|
end
|
5486
5483
|
|
5487
5484
|
def _reduce_348(val, _values, result)
|
5488
5485
|
(_, line), = val
|
5489
5486
|
result = s(:break).line line
|
5490
|
-
|
5487
|
+
|
5491
5488
|
result
|
5492
5489
|
end
|
5493
5490
|
|
5494
5491
|
def _reduce_349(val, _values, result)
|
5495
5492
|
(_, line), = val
|
5496
5493
|
result = s(:next).line line
|
5497
|
-
|
5494
|
+
|
5498
5495
|
result
|
5499
5496
|
end
|
5500
5497
|
|
5501
5498
|
def _reduce_350(val, _values, result)
|
5502
5499
|
(_, line), = val
|
5503
5500
|
result = s(:redo).line line
|
5504
|
-
|
5501
|
+
|
5505
5502
|
result
|
5506
5503
|
end
|
5507
5504
|
|
5508
5505
|
def _reduce_351(val, _values, result)
|
5509
5506
|
(_, line), = val
|
5510
5507
|
result = s(:retry).line line
|
5511
|
-
|
5508
|
+
|
5512
5509
|
result
|
5513
5510
|
end
|
5514
5511
|
|
5515
5512
|
def _reduce_352(val, _values, result)
|
5516
5513
|
result = value_expr(val[0])
|
5517
|
-
|
5514
|
+
|
5518
5515
|
result
|
5519
5516
|
end
|
5520
5517
|
|
@@ -5572,7 +5569,7 @@ def _reduce_378(val, _values, result)
|
|
5572
5569
|
(_, line), c, _, t, rest = val
|
5573
5570
|
|
5574
5571
|
result = s(:if, c, t, rest).line line
|
5575
|
-
|
5572
|
+
|
5576
5573
|
result
|
5577
5574
|
end
|
5578
5575
|
|
@@ -5580,7 +5577,7 @@ end
|
|
5580
5577
|
|
5581
5578
|
def _reduce_380(val, _values, result)
|
5582
5579
|
result = val[1]
|
5583
|
-
|
5580
|
+
|
5584
5581
|
result
|
5585
5582
|
end
|
5586
5583
|
|
@@ -5588,7 +5585,7 @@ end
|
|
5588
5585
|
|
5589
5586
|
def _reduce_382(val, _values, result)
|
5590
5587
|
val[0].delete_at 1 if val[0][1].nil? # HACK
|
5591
|
-
|
5588
|
+
|
5592
5589
|
result
|
5593
5590
|
end
|
5594
5591
|
|
@@ -5596,7 +5593,7 @@ end
|
|
5596
5593
|
|
5597
5594
|
def _reduce_384(val, _values, result)
|
5598
5595
|
result = val[1]
|
5599
|
-
|
5596
|
+
|
5600
5597
|
result
|
5601
5598
|
end
|
5602
5599
|
|
@@ -5604,13 +5601,13 @@ def _reduce_385(val, _values, result)
|
|
5604
5601
|
sym, = val
|
5605
5602
|
|
5606
5603
|
result = s(:array, sym).line lexer.lineno
|
5607
|
-
|
5604
|
+
|
5608
5605
|
result
|
5609
5606
|
end
|
5610
5607
|
|
5611
5608
|
def _reduce_386(val, _values, result)
|
5612
5609
|
result = list_append val[0], val[2]
|
5613
|
-
|
5610
|
+
|
5614
5611
|
result
|
5615
5612
|
end
|
5616
5613
|
|
@@ -5618,7 +5615,7 @@ def _reduce_387(val, _values, result)
|
|
5618
5615
|
args, = val
|
5619
5616
|
|
5620
5617
|
result = block_var args
|
5621
|
-
|
5618
|
+
|
5622
5619
|
result
|
5623
5620
|
end
|
5624
5621
|
|
@@ -5626,7 +5623,7 @@ def _reduce_388(val, _values, result)
|
|
5626
5623
|
args, _, _, splat = val
|
5627
5624
|
|
5628
5625
|
result = block_var args, "*#{splat}".to_sym
|
5629
|
-
|
5626
|
+
|
5630
5627
|
result
|
5631
5628
|
end
|
5632
5629
|
|
@@ -5634,7 +5631,7 @@ def _reduce_389(val, _values, result)
|
|
5634
5631
|
args, _, _, splat, _, args2 = val
|
5635
5632
|
|
5636
5633
|
result = block_var args, "*#{splat}".to_sym, args2
|
5637
|
-
|
5634
|
+
|
5638
5635
|
result
|
5639
5636
|
end
|
5640
5637
|
|
@@ -5642,7 +5639,7 @@ def _reduce_390(val, _values, result)
|
|
5642
5639
|
args, _, _ = val
|
5643
5640
|
|
5644
5641
|
result = block_var args, :*
|
5645
|
-
|
5642
|
+
|
5646
5643
|
result
|
5647
5644
|
end
|
5648
5645
|
|
@@ -5650,7 +5647,7 @@ def _reduce_391(val, _values, result)
|
|
5650
5647
|
args, _, _, _, args2 = val
|
5651
5648
|
|
5652
5649
|
result = block_var args, :*, args2
|
5653
|
-
|
5650
|
+
|
5654
5651
|
result
|
5655
5652
|
end
|
5656
5653
|
|
@@ -5658,7 +5655,7 @@ def _reduce_392(val, _values, result)
|
|
5658
5655
|
_, splat = val
|
5659
5656
|
|
5660
5657
|
result = block_var :"*#{splat}"
|
5661
|
-
|
5658
|
+
|
5662
5659
|
result
|
5663
5660
|
end
|
5664
5661
|
|
@@ -5666,13 +5663,13 @@ def _reduce_393(val, _values, result)
|
|
5666
5663
|
_, splat, _, args = val
|
5667
5664
|
|
5668
5665
|
result = block_var :"*#{splat}", args
|
5669
|
-
|
5666
|
+
|
5670
5667
|
result
|
5671
5668
|
end
|
5672
5669
|
|
5673
5670
|
def _reduce_394(val, _values, result)
|
5674
5671
|
result = block_var :*
|
5675
|
-
|
5672
|
+
|
5676
5673
|
result
|
5677
5674
|
end
|
5678
5675
|
|
@@ -5680,25 +5677,25 @@ def _reduce_395(val, _values, result)
|
|
5680
5677
|
_, _, args = val
|
5681
5678
|
|
5682
5679
|
result = block_var :*, args
|
5683
|
-
|
5680
|
+
|
5684
5681
|
result
|
5685
5682
|
end
|
5686
5683
|
|
5687
5684
|
def _reduce_396(val, _values, result)
|
5688
5685
|
result = call_args val
|
5689
|
-
|
5686
|
+
|
5690
5687
|
result
|
5691
5688
|
end
|
5692
5689
|
|
5693
5690
|
def _reduce_397(val, _values, result)
|
5694
5691
|
result = call_args val
|
5695
|
-
|
5692
|
+
|
5696
5693
|
result
|
5697
5694
|
end
|
5698
5695
|
|
5699
5696
|
def _reduce_398(val, _values, result)
|
5700
5697
|
result = call_args val
|
5701
|
-
|
5698
|
+
|
5702
5699
|
result
|
5703
5700
|
end
|
5704
5701
|
|
@@ -5706,13 +5703,13 @@ def _reduce_399(val, _values, result)
|
|
5706
5703
|
line = lexer.lineno
|
5707
5704
|
result = call_args val # TODO: push line down
|
5708
5705
|
result.line line
|
5709
|
-
|
5706
|
+
|
5710
5707
|
result
|
5711
5708
|
end
|
5712
5709
|
|
5713
5710
|
def _reduce_400(val, _values, result)
|
5714
5711
|
result = args val
|
5715
|
-
|
5712
|
+
|
5716
5713
|
result
|
5717
5714
|
end
|
5718
5715
|
|
@@ -5720,122 +5717,122 @@ end
|
|
5720
5717
|
|
5721
5718
|
def _reduce_402(val, _values, result)
|
5722
5719
|
result = args val
|
5723
|
-
|
5720
|
+
|
5724
5721
|
result
|
5725
5722
|
end
|
5726
5723
|
|
5727
5724
|
def _reduce_403(val, _values, result)
|
5728
5725
|
result = args val
|
5729
|
-
|
5726
|
+
|
5730
5727
|
result
|
5731
5728
|
end
|
5732
5729
|
|
5733
5730
|
def _reduce_404(val, _values, result)
|
5734
5731
|
result = args val
|
5735
|
-
|
5732
|
+
|
5736
5733
|
result
|
5737
5734
|
end
|
5738
5735
|
|
5739
5736
|
def _reduce_405(val, _values, result)
|
5740
5737
|
result = args val
|
5741
|
-
|
5738
|
+
|
5742
5739
|
result
|
5743
5740
|
end
|
5744
5741
|
|
5745
5742
|
def _reduce_406(val, _values, result)
|
5746
5743
|
result = args val
|
5747
|
-
|
5744
|
+
|
5748
5745
|
result
|
5749
5746
|
end
|
5750
5747
|
|
5751
5748
|
def _reduce_407(val, _values, result)
|
5752
5749
|
result = args(val) << nil
|
5753
|
-
|
5750
|
+
|
5754
5751
|
result
|
5755
5752
|
end
|
5756
5753
|
|
5757
5754
|
def _reduce_408(val, _values, result)
|
5758
5755
|
result = args val
|
5759
|
-
|
5756
|
+
|
5760
5757
|
result
|
5761
5758
|
end
|
5762
5759
|
|
5763
5760
|
def _reduce_409(val, _values, result)
|
5764
5761
|
result = args val
|
5765
|
-
|
5762
|
+
|
5766
5763
|
result
|
5767
5764
|
end
|
5768
5765
|
|
5769
5766
|
def _reduce_410(val, _values, result)
|
5770
5767
|
result = args val
|
5771
|
-
|
5768
|
+
|
5772
5769
|
result
|
5773
5770
|
end
|
5774
5771
|
|
5775
5772
|
def _reduce_411(val, _values, result)
|
5776
5773
|
result = args val
|
5777
|
-
|
5774
|
+
|
5778
5775
|
result
|
5779
5776
|
end
|
5780
5777
|
|
5781
5778
|
def _reduce_412(val, _values, result)
|
5782
5779
|
result = args val
|
5783
|
-
|
5780
|
+
|
5784
5781
|
result
|
5785
5782
|
end
|
5786
5783
|
|
5787
5784
|
def _reduce_413(val, _values, result)
|
5788
5785
|
result = args val
|
5789
|
-
|
5786
|
+
|
5790
5787
|
result
|
5791
5788
|
end
|
5792
5789
|
|
5793
5790
|
def _reduce_414(val, _values, result)
|
5794
5791
|
result = args val
|
5795
|
-
|
5792
|
+
|
5796
5793
|
result
|
5797
5794
|
end
|
5798
5795
|
|
5799
5796
|
def _reduce_415(val, _values, result)
|
5800
5797
|
result = args val
|
5801
|
-
|
5798
|
+
|
5802
5799
|
result
|
5803
5800
|
end
|
5804
5801
|
|
5805
5802
|
def _reduce_416(val, _values, result)
|
5806
5803
|
result = args val
|
5807
|
-
|
5804
|
+
|
5808
5805
|
result
|
5809
5806
|
end
|
5810
5807
|
|
5811
5808
|
def _reduce_417(val, _values, result)
|
5812
|
-
result = 0
|
5809
|
+
result = 0
|
5813
5810
|
result
|
5814
5811
|
end
|
5815
5812
|
|
5816
5813
|
def _reduce_418(val, _values, result)
|
5817
5814
|
self.lexer.command_start = true
|
5818
|
-
|
5815
|
+
|
5819
5816
|
result
|
5820
5817
|
end
|
5821
5818
|
|
5822
5819
|
def _reduce_419(val, _values, result)
|
5823
5820
|
# TODO: current_arg = 0
|
5824
5821
|
result = args val
|
5825
|
-
|
5822
|
+
|
5826
5823
|
result
|
5827
5824
|
end
|
5828
5825
|
|
5829
5826
|
def _reduce_420(val, _values, result)
|
5830
5827
|
result = s(:args).line lexer.lineno
|
5831
|
-
|
5828
|
+
|
5832
5829
|
result
|
5833
5830
|
end
|
5834
5831
|
|
5835
5832
|
def _reduce_421(val, _values, result)
|
5836
5833
|
# TODO: current_arg = 0
|
5837
5834
|
result = args val
|
5838
|
-
|
5835
|
+
|
5839
5836
|
result
|
5840
5837
|
end
|
5841
5838
|
|
@@ -5843,19 +5840,19 @@ end
|
|
5843
5840
|
|
5844
5841
|
def _reduce_423(val, _values, result)
|
5845
5842
|
result = args val
|
5846
|
-
|
5843
|
+
|
5847
5844
|
result
|
5848
5845
|
end
|
5849
5846
|
|
5850
5847
|
def _reduce_424(val, _values, result)
|
5851
5848
|
result = args val
|
5852
|
-
|
5849
|
+
|
5853
5850
|
result
|
5854
5851
|
end
|
5855
5852
|
|
5856
5853
|
def _reduce_425(val, _values, result)
|
5857
5854
|
result = args val
|
5858
|
-
|
5855
|
+
|
5859
5856
|
result
|
5860
5857
|
end
|
5861
5858
|
|
@@ -5863,7 +5860,7 @@ def _reduce_426(val, _values, result)
|
|
5863
5860
|
id, = val
|
5864
5861
|
line = lexer.lineno
|
5865
5862
|
result = s(:shadow, id.to_sym).line line
|
5866
|
-
|
5863
|
+
|
5867
5864
|
result
|
5868
5865
|
end
|
5869
5866
|
|
@@ -5874,13 +5871,13 @@ def _reduce_428(val, _values, result)
|
|
5874
5871
|
result = [lexer.lineno, lexer.lpar_beg]
|
5875
5872
|
lexer.paren_nest += 1
|
5876
5873
|
lexer.lpar_beg = lexer.paren_nest
|
5877
|
-
|
5874
|
+
|
5878
5875
|
result
|
5879
5876
|
end
|
5880
5877
|
|
5881
5878
|
def _reduce_429(val, _values, result)
|
5882
5879
|
result = lexer.cmdarg.store(false)
|
5883
|
-
|
5880
|
+
|
5884
5881
|
result
|
5885
5882
|
end
|
5886
5883
|
|
@@ -5895,39 +5892,39 @@ def _reduce_430(val, _values, result)
|
|
5895
5892
|
result = new_iter call, args, body
|
5896
5893
|
result.line = line
|
5897
5894
|
self.env.unextend
|
5898
|
-
|
5895
|
+
|
5899
5896
|
result
|
5900
5897
|
end
|
5901
5898
|
|
5902
5899
|
def _reduce_431(val, _values, result)
|
5903
5900
|
result = args val
|
5904
|
-
|
5901
|
+
|
5905
5902
|
result
|
5906
5903
|
end
|
5907
5904
|
|
5908
5905
|
def _reduce_432(val, _values, result)
|
5909
5906
|
result = val[0]
|
5910
5907
|
result = 0 if result == s(:args)
|
5911
|
-
|
5908
|
+
|
5912
5909
|
result
|
5913
5910
|
end
|
5914
5911
|
|
5915
5912
|
def _reduce_433(val, _values, result)
|
5916
5913
|
result = val[1]
|
5917
|
-
|
5914
|
+
|
5918
5915
|
result
|
5919
5916
|
end
|
5920
5917
|
|
5921
5918
|
def _reduce_434(val, _values, result)
|
5922
5919
|
result = val[1]
|
5923
|
-
|
5920
|
+
|
5924
5921
|
result
|
5925
5922
|
end
|
5926
5923
|
|
5927
5924
|
def _reduce_435(val, _values, result)
|
5928
5925
|
(_, line), iter, _ = val
|
5929
5926
|
result = iter.line line
|
5930
|
-
|
5927
|
+
|
5931
5928
|
result
|
5932
5929
|
end
|
5933
5930
|
|
@@ -5945,13 +5942,13 @@ def _reduce_436(val, _values, result)
|
|
5945
5942
|
|
5946
5943
|
result = blk
|
5947
5944
|
result.insert 1, cmd
|
5948
|
-
|
5945
|
+
|
5949
5946
|
result
|
5950
5947
|
end
|
5951
5948
|
|
5952
5949
|
def _reduce_437(val, _values, result)
|
5953
5950
|
result = new_call val[0], val[2].to_sym, val[3]
|
5954
|
-
|
5951
|
+
|
5955
5952
|
result
|
5956
5953
|
end
|
5957
5954
|
|
@@ -5962,7 +5959,7 @@ def _reduce_438(val, _values, result)
|
|
5962
5959
|
iter2.insert 1, call
|
5963
5960
|
|
5964
5961
|
result = iter2
|
5965
|
-
|
5962
|
+
|
5966
5963
|
result
|
5967
5964
|
end
|
5968
5965
|
|
@@ -5973,13 +5970,13 @@ def _reduce_439(val, _values, result)
|
|
5973
5970
|
iter2.insert 1, call
|
5974
5971
|
|
5975
5972
|
result = iter2
|
5976
|
-
|
5973
|
+
|
5977
5974
|
result
|
5978
5975
|
end
|
5979
5976
|
|
5980
5977
|
def _reduce_440(val, _values, result)
|
5981
5978
|
result = self.lexer.lineno
|
5982
|
-
|
5979
|
+
|
5983
5980
|
result
|
5984
5981
|
end
|
5985
5982
|
|
@@ -5988,62 +5985,62 @@ def _reduce_441(val, _values, result)
|
|
5988
5985
|
|
5989
5986
|
result = call.concat args.sexp_body if args
|
5990
5987
|
result.line lineno
|
5991
|
-
|
5988
|
+
|
5992
5989
|
result
|
5993
5990
|
end
|
5994
5991
|
|
5995
5992
|
def _reduce_442(val, _values, result)
|
5996
5993
|
result = new_call val[0], val[2].to_sym, val[3], val[1]
|
5997
|
-
|
5994
|
+
|
5998
5995
|
result
|
5999
5996
|
end
|
6000
5997
|
|
6001
5998
|
def _reduce_443(val, _values, result)
|
6002
5999
|
result = new_call val[0], val[2].to_sym, val[3]
|
6003
|
-
|
6000
|
+
|
6004
6001
|
result
|
6005
6002
|
end
|
6006
6003
|
|
6007
6004
|
def _reduce_444(val, _values, result)
|
6008
6005
|
result = new_call val[0], val[2].to_sym
|
6009
|
-
|
6006
|
+
|
6010
6007
|
result
|
6011
6008
|
end
|
6012
6009
|
|
6013
6010
|
def _reduce_445(val, _values, result)
|
6014
6011
|
result = new_call val[0], :call, val[2], val[1]
|
6015
|
-
|
6012
|
+
|
6016
6013
|
result
|
6017
6014
|
end
|
6018
6015
|
|
6019
6016
|
def _reduce_446(val, _values, result)
|
6020
6017
|
result = new_call val[0], :call, val[2]
|
6021
|
-
|
6018
|
+
|
6022
6019
|
result
|
6023
6020
|
end
|
6024
6021
|
|
6025
6022
|
def _reduce_447(val, _values, result)
|
6026
6023
|
result = new_super val[1]
|
6027
|
-
|
6024
|
+
|
6028
6025
|
result
|
6029
6026
|
end
|
6030
6027
|
|
6031
6028
|
def _reduce_448(val, _values, result)
|
6032
6029
|
result = s(:zsuper).line lexer.lineno
|
6033
|
-
|
6030
|
+
|
6034
6031
|
result
|
6035
6032
|
end
|
6036
6033
|
|
6037
6034
|
def _reduce_449(val, _values, result)
|
6038
6035
|
result = new_aref val
|
6039
|
-
|
6036
|
+
|
6040
6037
|
result
|
6041
6038
|
end
|
6042
6039
|
|
6043
6040
|
def _reduce_450(val, _values, result)
|
6044
6041
|
self.env.extend :dynamic
|
6045
6042
|
result = self.lexer.lineno
|
6046
|
-
|
6043
|
+
|
6047
6044
|
result
|
6048
6045
|
end
|
6049
6046
|
|
@@ -6054,14 +6051,14 @@ def _reduce_451(val, _values, result)
|
|
6054
6051
|
result.line = line
|
6055
6052
|
|
6056
6053
|
self.env.unextend
|
6057
|
-
|
6054
|
+
|
6058
6055
|
result
|
6059
6056
|
end
|
6060
6057
|
|
6061
6058
|
def _reduce_452(val, _values, result)
|
6062
6059
|
self.env.extend :dynamic
|
6063
6060
|
result = self.lexer.lineno
|
6064
|
-
|
6061
|
+
|
6065
6062
|
result
|
6066
6063
|
end
|
6067
6064
|
|
@@ -6072,17 +6069,17 @@ def _reduce_453(val, _values, result)
|
|
6072
6069
|
result.line = line
|
6073
6070
|
|
6074
6071
|
self.env.unextend
|
6075
|
-
|
6072
|
+
|
6076
6073
|
result
|
6077
6074
|
end
|
6078
6075
|
|
6079
6076
|
def _reduce_454(val, _values, result)
|
6080
|
-
self.env.extend :dynamic; result = self.lexer.lineno
|
6077
|
+
self.env.extend :dynamic; result = self.lexer.lineno
|
6081
6078
|
result
|
6082
6079
|
end
|
6083
6080
|
|
6084
6081
|
def _reduce_455(val, _values, result)
|
6085
|
-
result = lexer.cmdarg.store(false)
|
6082
|
+
result = lexer.cmdarg.store(false)
|
6086
6083
|
result
|
6087
6084
|
end
|
6088
6085
|
|
@@ -6093,17 +6090,17 @@ def _reduce_456(val, _values, result)
|
|
6093
6090
|
self.env.unextend
|
6094
6091
|
lexer.cmdarg.restore cmdarg
|
6095
6092
|
lexer.cmdarg.pop # because of: cmdarg_stack >> 1 ?
|
6096
|
-
|
6093
|
+
|
6097
6094
|
result
|
6098
6095
|
end
|
6099
6096
|
|
6100
6097
|
def _reduce_457(val, _values, result)
|
6101
|
-
self.env.extend :dynamic; result = self.lexer.lineno
|
6098
|
+
self.env.extend :dynamic; result = self.lexer.lineno
|
6102
6099
|
result
|
6103
6100
|
end
|
6104
6101
|
|
6105
6102
|
def _reduce_458(val, _values, result)
|
6106
|
-
result = lexer.cmdarg.store(false)
|
6103
|
+
result = lexer.cmdarg.store(false)
|
6107
6104
|
result
|
6108
6105
|
end
|
6109
6106
|
|
@@ -6113,13 +6110,13 @@ def _reduce_459(val, _values, result)
|
|
6113
6110
|
result = new_do_body param, cmpstmt, line
|
6114
6111
|
self.env.unextend
|
6115
6112
|
lexer.cmdarg.restore cmdarg
|
6116
|
-
|
6113
|
+
|
6117
6114
|
result
|
6118
6115
|
end
|
6119
6116
|
|
6120
6117
|
def _reduce_460(val, _values, result)
|
6121
6118
|
result = self.lexer.lineno
|
6122
|
-
|
6119
|
+
|
6123
6120
|
result
|
6124
6121
|
end
|
6125
6122
|
|
@@ -6127,7 +6124,7 @@ def _reduce_461(val, _values, result)
|
|
6127
6124
|
result = new_when(val[2], val[4])
|
6128
6125
|
result.line = val[1]
|
6129
6126
|
result << val[5] if val[5]
|
6130
|
-
|
6127
|
+
|
6131
6128
|
result
|
6132
6129
|
end
|
6133
6130
|
|
@@ -6144,20 +6141,20 @@ def _reduce_464(val, _values, result)
|
|
6144
6141
|
|
6145
6142
|
result = new_resbody(klasses, body)
|
6146
6143
|
result << rest if rest # UGH, rewritten above
|
6147
|
-
|
6144
|
+
|
6148
6145
|
result
|
6149
6146
|
end
|
6150
6147
|
|
6151
6148
|
def _reduce_465(val, _values, result)
|
6152
6149
|
result = nil
|
6153
|
-
|
6150
|
+
|
6154
6151
|
result
|
6155
6152
|
end
|
6156
6153
|
|
6157
6154
|
def _reduce_466(val, _values, result)
|
6158
6155
|
arg, = val
|
6159
6156
|
result = s(:array, arg).line arg.line
|
6160
|
-
|
6157
|
+
|
6161
6158
|
result
|
6162
6159
|
end
|
6163
6160
|
|
@@ -6167,7 +6164,7 @@ end
|
|
6167
6164
|
|
6168
6165
|
def _reduce_469(val, _values, result)
|
6169
6166
|
result = val[1]
|
6170
|
-
|
6167
|
+
|
6171
6168
|
result
|
6172
6169
|
end
|
6173
6170
|
|
@@ -6177,7 +6174,7 @@ def _reduce_471(val, _values, result)
|
|
6177
6174
|
(_, line), body = val
|
6178
6175
|
|
6179
6176
|
result = body || s(:nil).line(line)
|
6180
|
-
|
6177
|
+
|
6181
6178
|
result
|
6182
6179
|
end
|
6183
6180
|
|
@@ -6187,7 +6184,7 @@ def _reduce_473(val, _values, result)
|
|
6187
6184
|
line = lexer.lineno
|
6188
6185
|
result = s(:lit, val[0])
|
6189
6186
|
result.line = line
|
6190
|
-
|
6187
|
+
|
6191
6188
|
result
|
6192
6189
|
end
|
6193
6190
|
|
@@ -6195,7 +6192,7 @@ def _reduce_474(val, _values, result)
|
|
6195
6192
|
line = lexer.lineno
|
6196
6193
|
result = s(:lit, val[0])
|
6197
6194
|
result.line = line
|
6198
|
-
|
6195
|
+
|
6199
6196
|
result
|
6200
6197
|
end
|
6201
6198
|
|
@@ -6205,13 +6202,13 @@ def _reduce_476(val, _values, result)
|
|
6205
6202
|
str, = val
|
6206
6203
|
str = s(:dstr, str.value) if str.sexp_type == :evstr
|
6207
6204
|
result = str
|
6208
|
-
|
6205
|
+
|
6209
6206
|
result
|
6210
6207
|
end
|
6211
6208
|
|
6212
6209
|
def _reduce_477(val, _values, result)
|
6213
6210
|
debug20 23, val, result
|
6214
|
-
|
6211
|
+
|
6215
6212
|
result
|
6216
6213
|
end
|
6217
6214
|
|
@@ -6219,7 +6216,7 @@ end
|
|
6219
6216
|
|
6220
6217
|
def _reduce_479(val, _values, result)
|
6221
6218
|
result = self.literal_concat val[0], val[1]
|
6222
|
-
|
6219
|
+
|
6223
6220
|
result
|
6224
6221
|
end
|
6225
6222
|
|
@@ -6229,50 +6226,50 @@ def _reduce_480(val, _values, result)
|
|
6229
6226
|
str = dedent str if func =~ RubyLexer::STR_FUNC_ICNTNT
|
6230
6227
|
|
6231
6228
|
result = str
|
6232
|
-
|
6229
|
+
|
6233
6230
|
result
|
6234
6231
|
end
|
6235
6232
|
|
6236
6233
|
def _reduce_481(val, _values, result)
|
6237
6234
|
result = new_string val
|
6238
|
-
|
6235
|
+
|
6239
6236
|
result
|
6240
6237
|
end
|
6241
6238
|
|
6242
6239
|
def _reduce_482(val, _values, result)
|
6243
6240
|
result = new_xstring val[1]
|
6244
6241
|
# TODO: dedent?!?! SERIOUSLY?!?
|
6245
|
-
|
6242
|
+
|
6246
6243
|
result
|
6247
6244
|
end
|
6248
6245
|
|
6249
6246
|
def _reduce_483(val, _values, result)
|
6250
6247
|
result = new_regexp val
|
6251
|
-
|
6248
|
+
|
6252
6249
|
result
|
6253
6250
|
end
|
6254
6251
|
|
6255
6252
|
def _reduce_484(val, _values, result)
|
6256
6253
|
result = s(:array).line lexer.lineno
|
6257
|
-
|
6254
|
+
|
6258
6255
|
result
|
6259
6256
|
end
|
6260
6257
|
|
6261
6258
|
def _reduce_485(val, _values, result)
|
6262
6259
|
result = val[1]
|
6263
|
-
|
6260
|
+
|
6264
6261
|
result
|
6265
6262
|
end
|
6266
6263
|
|
6267
6264
|
def _reduce_486(val, _values, result)
|
6268
6265
|
result = new_word_list
|
6269
|
-
|
6266
|
+
|
6270
6267
|
result
|
6271
6268
|
end
|
6272
6269
|
|
6273
6270
|
def _reduce_487(val, _values, result)
|
6274
6271
|
result = val[0].dup << new_word_list_entry(val)
|
6275
|
-
|
6272
|
+
|
6276
6273
|
result
|
6277
6274
|
end
|
6278
6275
|
|
@@ -6280,18 +6277,18 @@ end
|
|
6280
6277
|
|
6281
6278
|
def _reduce_489(val, _values, result)
|
6282
6279
|
result = self.literal_concat val[0], val[1]
|
6283
|
-
|
6280
|
+
|
6284
6281
|
result
|
6285
6282
|
end
|
6286
6283
|
|
6287
6284
|
def _reduce_490(val, _values, result)
|
6288
6285
|
result = s(:array).line lexer.lineno
|
6289
|
-
|
6286
|
+
|
6290
6287
|
result
|
6291
6288
|
end
|
6292
6289
|
|
6293
6290
|
def _reduce_491(val, _values, result)
|
6294
|
-
result = lexer.lineno
|
6291
|
+
result = lexer.lineno
|
6295
6292
|
result
|
6296
6293
|
end
|
6297
6294
|
|
@@ -6299,113 +6296,113 @@ def _reduce_492(val, _values, result)
|
|
6299
6296
|
_, line, list, _, = val
|
6300
6297
|
list.line = line
|
6301
6298
|
result = list
|
6302
|
-
|
6299
|
+
|
6303
6300
|
result
|
6304
6301
|
end
|
6305
6302
|
|
6306
6303
|
def _reduce_493(val, _values, result)
|
6307
6304
|
result = new_symbol_list.line lexer.lineno
|
6308
|
-
|
6305
|
+
|
6309
6306
|
result
|
6310
6307
|
end
|
6311
6308
|
|
6312
6309
|
def _reduce_494(val, _values, result)
|
6313
6310
|
list, * = val
|
6314
6311
|
result = list.dup << new_symbol_list_entry(val)
|
6315
|
-
|
6312
|
+
|
6316
6313
|
result
|
6317
6314
|
end
|
6318
6315
|
|
6319
6316
|
def _reduce_495(val, _values, result)
|
6320
6317
|
result = s(:array).line lexer.lineno
|
6321
|
-
|
6318
|
+
|
6322
6319
|
result
|
6323
6320
|
end
|
6324
6321
|
|
6325
6322
|
def _reduce_496(val, _values, result)
|
6326
6323
|
result = val[1]
|
6327
|
-
|
6324
|
+
|
6328
6325
|
result
|
6329
6326
|
end
|
6330
6327
|
|
6331
6328
|
def _reduce_497(val, _values, result)
|
6332
6329
|
result = s(:array).line lexer.lineno # FIX
|
6333
|
-
|
6330
|
+
|
6334
6331
|
result
|
6335
6332
|
end
|
6336
6333
|
|
6337
6334
|
def _reduce_498(val, _values, result)
|
6338
6335
|
result = val[1]
|
6339
|
-
|
6336
|
+
|
6340
6337
|
result
|
6341
6338
|
end
|
6342
6339
|
|
6343
6340
|
def _reduce_499(val, _values, result)
|
6344
6341
|
result = new_qword_list
|
6345
|
-
|
6342
|
+
|
6346
6343
|
result
|
6347
6344
|
end
|
6348
6345
|
|
6349
6346
|
def _reduce_500(val, _values, result)
|
6350
6347
|
result = val[0].dup << new_qword_list_entry(val)
|
6351
|
-
|
6348
|
+
|
6352
6349
|
result
|
6353
6350
|
end
|
6354
6351
|
|
6355
6352
|
def _reduce_501(val, _values, result)
|
6356
6353
|
result = new_qsym_list
|
6357
|
-
|
6354
|
+
|
6358
6355
|
result
|
6359
6356
|
end
|
6360
6357
|
|
6361
6358
|
def _reduce_502(val, _values, result)
|
6362
6359
|
result = val[0].dup << new_qsym_list_entry(val)
|
6363
|
-
|
6360
|
+
|
6364
6361
|
result
|
6365
6362
|
end
|
6366
6363
|
|
6367
6364
|
def _reduce_503(val, _values, result)
|
6368
6365
|
result = s(:str, "").line lexer.lineno
|
6369
|
-
|
6366
|
+
|
6370
6367
|
result
|
6371
6368
|
end
|
6372
6369
|
|
6373
6370
|
def _reduce_504(val, _values, result)
|
6374
6371
|
v1, v2 = val
|
6375
6372
|
result = literal_concat v1, v2
|
6376
|
-
|
6373
|
+
|
6377
6374
|
result
|
6378
6375
|
end
|
6379
6376
|
|
6380
6377
|
def _reduce_505(val, _values, result)
|
6381
6378
|
result = nil
|
6382
|
-
|
6379
|
+
|
6383
6380
|
result
|
6384
6381
|
end
|
6385
6382
|
|
6386
6383
|
def _reduce_506(val, _values, result)
|
6387
6384
|
v1, v2 = val
|
6388
6385
|
result = literal_concat v1, v2
|
6389
|
-
|
6386
|
+
|
6390
6387
|
result
|
6391
6388
|
end
|
6392
6389
|
|
6393
6390
|
def _reduce_507(val, _values, result)
|
6394
6391
|
result = nil
|
6395
|
-
|
6392
|
+
|
6396
6393
|
result
|
6397
6394
|
end
|
6398
6395
|
|
6399
6396
|
def _reduce_508(val, _values, result)
|
6400
6397
|
v1, v2 = val
|
6401
6398
|
result = literal_concat v1, v2
|
6402
|
-
|
6399
|
+
|
6403
6400
|
result
|
6404
6401
|
end
|
6405
6402
|
|
6406
6403
|
def _reduce_509(val, _values, result)
|
6407
6404
|
result = new_string val
|
6408
|
-
|
6405
|
+
|
6409
6406
|
result
|
6410
6407
|
end
|
6411
6408
|
|
@@ -6414,7 +6411,7 @@ def _reduce_510(val, _values, result)
|
|
6414
6411
|
|
6415
6412
|
lexer.lex_strterm = nil
|
6416
6413
|
lexer.lex_state = EXPR_BEG
|
6417
|
-
|
6414
|
+
|
6418
6415
|
result
|
6419
6416
|
end
|
6420
6417
|
|
@@ -6422,7 +6419,7 @@ def _reduce_511(val, _values, result)
|
|
6422
6419
|
_, strterm, str = val
|
6423
6420
|
lexer.lex_strterm = strterm
|
6424
6421
|
result = s(:evstr, str).line str.line
|
6425
|
-
|
6422
|
+
|
6426
6423
|
result
|
6427
6424
|
end
|
6428
6425
|
|
@@ -6441,7 +6438,7 @@ def _reduce_512(val, _values, result)
|
|
6441
6438
|
lexer.string_nest = 0
|
6442
6439
|
|
6443
6440
|
lexer.lex_state = EXPR_BEG
|
6444
|
-
|
6441
|
+
|
6445
6442
|
result
|
6446
6443
|
end
|
6447
6444
|
|
@@ -6473,22 +6470,22 @@ def _reduce_513(val, _values, result)
|
|
6473
6470
|
debug20 25
|
6474
6471
|
raise "unknown string body: #{stmt.inspect}"
|
6475
6472
|
end
|
6476
|
-
|
6473
|
+
|
6477
6474
|
result
|
6478
6475
|
end
|
6479
6476
|
|
6480
6477
|
def _reduce_514(val, _values, result)
|
6481
|
-
result = s(:gvar, val[0].to_sym).line lexer.lineno
|
6478
|
+
result = s(:gvar, val[0].to_sym).line lexer.lineno
|
6482
6479
|
result
|
6483
6480
|
end
|
6484
6481
|
|
6485
6482
|
def _reduce_515(val, _values, result)
|
6486
|
-
result = s(:ivar, val[0].to_sym).line lexer.lineno
|
6483
|
+
result = s(:ivar, val[0].to_sym).line lexer.lineno
|
6487
6484
|
result
|
6488
6485
|
end
|
6489
6486
|
|
6490
6487
|
def _reduce_516(val, _values, result)
|
6491
|
-
result = s(:cvar, val[0].to_sym).line lexer.lineno
|
6488
|
+
result = s(:cvar, val[0].to_sym).line lexer.lineno
|
6492
6489
|
result
|
6493
6490
|
end
|
6494
6491
|
|
@@ -6497,13 +6494,13 @@ end
|
|
6497
6494
|
def _reduce_518(val, _values, result)
|
6498
6495
|
lexer.lex_state = EXPR_END
|
6499
6496
|
result = val[1].to_sym
|
6500
|
-
|
6497
|
+
|
6501
6498
|
result
|
6502
6499
|
end
|
6503
6500
|
|
6504
6501
|
def _reduce_519(val, _values, result)
|
6505
6502
|
result = val[0].to_sym
|
6506
|
-
|
6503
|
+
|
6507
6504
|
result
|
6508
6505
|
end
|
6509
6506
|
|
@@ -6532,7 +6529,7 @@ def _reduce_524(val, _values, result)
|
|
6532
6529
|
else
|
6533
6530
|
debug20 26, val, result
|
6534
6531
|
end
|
6535
|
-
|
6532
|
+
|
6536
6533
|
result
|
6537
6534
|
end
|
6538
6535
|
|
@@ -6540,7 +6537,7 @@ end
|
|
6540
6537
|
|
6541
6538
|
def _reduce_526(val, _values, result)
|
6542
6539
|
result = -val[1] # TODO: pt_testcase
|
6543
|
-
|
6540
|
+
|
6544
6541
|
result
|
6545
6542
|
end
|
6546
6543
|
|
@@ -6563,32 +6560,32 @@ end
|
|
6563
6560
|
# reduce 535 omitted
|
6564
6561
|
|
6565
6562
|
def _reduce_536(val, _values, result)
|
6566
|
-
result = s(:nil).line lexer.lineno
|
6563
|
+
result = s(:nil).line lexer.lineno
|
6567
6564
|
result
|
6568
6565
|
end
|
6569
6566
|
|
6570
6567
|
def _reduce_537(val, _values, result)
|
6571
|
-
result = s(:self).line lexer.lineno
|
6568
|
+
result = s(:self).line lexer.lineno
|
6572
6569
|
result
|
6573
6570
|
end
|
6574
6571
|
|
6575
6572
|
def _reduce_538(val, _values, result)
|
6576
|
-
result = s(:true).line lexer.lineno
|
6573
|
+
result = s(:true).line lexer.lineno
|
6577
6574
|
result
|
6578
6575
|
end
|
6579
6576
|
|
6580
6577
|
def _reduce_539(val, _values, result)
|
6581
|
-
result = s(:false).line lexer.lineno
|
6578
|
+
result = s(:false).line lexer.lineno
|
6582
6579
|
result
|
6583
6580
|
end
|
6584
6581
|
|
6585
6582
|
def _reduce_540(val, _values, result)
|
6586
|
-
result = s(:str, self.file).line lexer.lineno
|
6583
|
+
result = s(:str, self.file).line lexer.lineno
|
6587
6584
|
result
|
6588
6585
|
end
|
6589
6586
|
|
6590
6587
|
def _reduce_541(val, _values, result)
|
6591
|
-
result = s(:lit, lexer.lineno).line lexer.lineno
|
6588
|
+
result = s(:lit, lexer.lineno).line lexer.lineno
|
6592
6589
|
result
|
6593
6590
|
end
|
6594
6591
|
|
@@ -6600,63 +6597,63 @@ def _reduce_542(val, _values, result)
|
|
6600
6597
|
else
|
6601
6598
|
s(:str, "Unsupported!").line l
|
6602
6599
|
end
|
6603
|
-
|
6600
|
+
|
6604
6601
|
result
|
6605
6602
|
end
|
6606
6603
|
|
6607
6604
|
def _reduce_543(val, _values, result)
|
6608
6605
|
var = val[0]
|
6609
6606
|
result = Sexp === var ? var : self.gettable(var)
|
6610
|
-
|
6607
|
+
|
6611
6608
|
result
|
6612
6609
|
end
|
6613
6610
|
|
6614
6611
|
def _reduce_544(val, _values, result)
|
6615
6612
|
var = val[0]
|
6616
6613
|
result = Sexp === var ? var : self.gettable(var)
|
6617
|
-
|
6614
|
+
|
6618
6615
|
result
|
6619
6616
|
end
|
6620
6617
|
|
6621
6618
|
def _reduce_545(val, _values, result)
|
6622
6619
|
result = self.assignable val[0]
|
6623
|
-
|
6620
|
+
|
6624
6621
|
result
|
6625
6622
|
end
|
6626
6623
|
|
6627
6624
|
def _reduce_546(val, _values, result)
|
6628
6625
|
result = self.assignable val[0]
|
6629
6626
|
debug20 29, val, result
|
6630
|
-
|
6627
|
+
|
6631
6628
|
result
|
6632
6629
|
end
|
6633
6630
|
|
6634
6631
|
def _reduce_547(val, _values, result)
|
6635
|
-
result = s(:nth_ref, val[0]).line lexer.lineno
|
6632
|
+
result = s(:nth_ref, val[0]).line lexer.lineno
|
6636
6633
|
result
|
6637
6634
|
end
|
6638
6635
|
|
6639
6636
|
def _reduce_548(val, _values, result)
|
6640
|
-
result = s(:back_ref, val[0]).line lexer.lineno
|
6637
|
+
result = s(:back_ref, val[0]).line lexer.lineno
|
6641
6638
|
result
|
6642
6639
|
end
|
6643
6640
|
|
6644
6641
|
def _reduce_549(val, _values, result)
|
6645
6642
|
lexer.lex_state = EXPR_BEG
|
6646
6643
|
lexer.command_start = true
|
6647
|
-
|
6644
|
+
|
6648
6645
|
result
|
6649
6646
|
end
|
6650
6647
|
|
6651
6648
|
def _reduce_550(val, _values, result)
|
6652
6649
|
result = val[2]
|
6653
|
-
|
6650
|
+
|
6654
6651
|
result
|
6655
6652
|
end
|
6656
6653
|
|
6657
6654
|
def _reduce_551(val, _values, result)
|
6658
6655
|
result = nil
|
6659
|
-
|
6656
|
+
|
6660
6657
|
result
|
6661
6658
|
end
|
6662
6659
|
|
@@ -6664,7 +6661,7 @@ def _reduce_552(val, _values, result)
|
|
6664
6661
|
result = val[1]
|
6665
6662
|
self.lexer.lex_state = EXPR_BEG
|
6666
6663
|
self.lexer.command_start = true
|
6667
|
-
|
6664
|
+
|
6668
6665
|
result
|
6669
6666
|
end
|
6670
6667
|
|
@@ -6672,7 +6669,7 @@ def _reduce_553(val, _values, result)
|
|
6672
6669
|
result = self.in_kwarg
|
6673
6670
|
self.in_kwarg = true
|
6674
6671
|
self.lexer.lex_state |= EXPR_LABEL
|
6675
|
-
|
6672
|
+
|
6676
6673
|
result
|
6677
6674
|
end
|
6678
6675
|
|
@@ -6683,25 +6680,25 @@ def _reduce_554(val, _values, result)
|
|
6683
6680
|
result = args
|
6684
6681
|
lexer.lex_state = EXPR_BEG
|
6685
6682
|
lexer.command_start = true
|
6686
|
-
|
6683
|
+
|
6687
6684
|
result
|
6688
6685
|
end
|
6689
6686
|
|
6690
6687
|
def _reduce_555(val, _values, result)
|
6691
6688
|
result = args val
|
6692
|
-
|
6689
|
+
|
6693
6690
|
result
|
6694
6691
|
end
|
6695
6692
|
|
6696
6693
|
def _reduce_556(val, _values, result)
|
6697
6694
|
result = args val
|
6698
|
-
|
6695
|
+
|
6699
6696
|
result
|
6700
6697
|
end
|
6701
6698
|
|
6702
6699
|
def _reduce_557(val, _values, result)
|
6703
6700
|
result = args val
|
6704
|
-
|
6701
|
+
|
6705
6702
|
result
|
6706
6703
|
end
|
6707
6704
|
|
@@ -6709,127 +6706,127 @@ end
|
|
6709
6706
|
|
6710
6707
|
def _reduce_559(val, _values, result)
|
6711
6708
|
result = val[1]
|
6712
|
-
|
6709
|
+
|
6713
6710
|
result
|
6714
6711
|
end
|
6715
6712
|
|
6716
6713
|
def _reduce_560(val, _values, result)
|
6717
6714
|
result = nil
|
6718
|
-
|
6715
|
+
|
6719
6716
|
result
|
6720
6717
|
end
|
6721
6718
|
|
6722
6719
|
def _reduce_561(val, _values, result)
|
6723
6720
|
result = args val
|
6724
|
-
|
6721
|
+
|
6725
6722
|
result
|
6726
6723
|
end
|
6727
6724
|
|
6728
6725
|
def _reduce_562(val, _values, result)
|
6729
6726
|
result = args val
|
6730
|
-
|
6727
|
+
|
6731
6728
|
result
|
6732
6729
|
end
|
6733
6730
|
|
6734
6731
|
def _reduce_563(val, _values, result)
|
6735
6732
|
result = args val
|
6736
|
-
|
6733
|
+
|
6737
6734
|
result
|
6738
6735
|
end
|
6739
6736
|
|
6740
6737
|
def _reduce_564(val, _values, result)
|
6741
6738
|
result = args val
|
6742
|
-
|
6739
|
+
|
6743
6740
|
result
|
6744
6741
|
end
|
6745
6742
|
|
6746
6743
|
def _reduce_565(val, _values, result)
|
6747
6744
|
result = args val
|
6748
|
-
|
6745
|
+
|
6749
6746
|
result
|
6750
6747
|
end
|
6751
6748
|
|
6752
6749
|
def _reduce_566(val, _values, result)
|
6753
6750
|
result = args val
|
6754
|
-
|
6751
|
+
|
6755
6752
|
result
|
6756
6753
|
end
|
6757
6754
|
|
6758
6755
|
def _reduce_567(val, _values, result)
|
6759
6756
|
result = args val
|
6760
|
-
|
6757
|
+
|
6761
6758
|
result
|
6762
6759
|
end
|
6763
6760
|
|
6764
6761
|
def _reduce_568(val, _values, result)
|
6765
6762
|
result = args val
|
6766
|
-
|
6763
|
+
|
6767
6764
|
result
|
6768
6765
|
end
|
6769
6766
|
|
6770
6767
|
def _reduce_569(val, _values, result)
|
6771
6768
|
result = args val
|
6772
|
-
|
6769
|
+
|
6773
6770
|
result
|
6774
6771
|
end
|
6775
6772
|
|
6776
6773
|
def _reduce_570(val, _values, result)
|
6777
6774
|
result = args val
|
6778
|
-
|
6775
|
+
|
6779
6776
|
result
|
6780
6777
|
end
|
6781
6778
|
|
6782
6779
|
def _reduce_571(val, _values, result)
|
6783
6780
|
result = args val
|
6784
|
-
|
6781
|
+
|
6785
6782
|
result
|
6786
6783
|
end
|
6787
6784
|
|
6788
6785
|
def _reduce_572(val, _values, result)
|
6789
6786
|
result = args val
|
6790
|
-
|
6787
|
+
|
6791
6788
|
result
|
6792
6789
|
end
|
6793
6790
|
|
6794
6791
|
def _reduce_573(val, _values, result)
|
6795
6792
|
result = args val
|
6796
|
-
|
6793
|
+
|
6797
6794
|
result
|
6798
6795
|
end
|
6799
6796
|
|
6800
6797
|
def _reduce_574(val, _values, result)
|
6801
6798
|
result = args val
|
6802
|
-
|
6799
|
+
|
6803
6800
|
result
|
6804
6801
|
end
|
6805
6802
|
|
6806
6803
|
def _reduce_575(val, _values, result)
|
6807
6804
|
result = args val
|
6808
|
-
|
6805
|
+
|
6809
6806
|
result
|
6810
6807
|
end
|
6811
6808
|
|
6812
6809
|
def _reduce_576(val, _values, result)
|
6813
6810
|
yyerror "formal argument cannot be a constant"
|
6814
|
-
|
6811
|
+
|
6815
6812
|
result
|
6816
6813
|
end
|
6817
6814
|
|
6818
6815
|
def _reduce_577(val, _values, result)
|
6819
6816
|
yyerror "formal argument cannot be an instance variable"
|
6820
|
-
|
6817
|
+
|
6821
6818
|
result
|
6822
6819
|
end
|
6823
6820
|
|
6824
6821
|
def _reduce_578(val, _values, result)
|
6825
6822
|
yyerror "formal argument cannot be a global variable"
|
6826
|
-
|
6823
|
+
|
6827
6824
|
result
|
6828
6825
|
end
|
6829
6826
|
|
6830
6827
|
def _reduce_579(val, _values, result)
|
6831
6828
|
yyerror "formal argument cannot be a class variable"
|
6832
|
-
|
6829
|
+
|
6833
6830
|
result
|
6834
6831
|
end
|
6835
6832
|
|
@@ -6840,7 +6837,7 @@ def _reduce_581(val, _values, result)
|
|
6840
6837
|
self.env[identifier] = :lvar
|
6841
6838
|
|
6842
6839
|
result = identifier
|
6843
|
-
|
6840
|
+
|
6844
6841
|
result
|
6845
6842
|
end
|
6846
6843
|
|
@@ -6850,7 +6847,7 @@ end
|
|
6850
6847
|
|
6851
6848
|
def _reduce_584(val, _values, result)
|
6852
6849
|
result = val[1]
|
6853
|
-
|
6850
|
+
|
6854
6851
|
result
|
6855
6852
|
end
|
6856
6853
|
|
@@ -6866,7 +6863,7 @@ def _reduce_585(val, _values, result)
|
|
6866
6863
|
debug20 32
|
6867
6864
|
raise "Unknown f_arg type: #{val.inspect}"
|
6868
6865
|
end
|
6869
|
-
|
6866
|
+
|
6870
6867
|
result
|
6871
6868
|
end
|
6872
6869
|
|
@@ -6880,7 +6877,7 @@ def _reduce_586(val, _values, result)
|
|
6880
6877
|
end
|
6881
6878
|
|
6882
6879
|
result << item
|
6883
|
-
|
6880
|
+
|
6884
6881
|
result
|
6885
6882
|
end
|
6886
6883
|
|
@@ -6895,7 +6892,7 @@ def _reduce_588(val, _values, result)
|
|
6895
6892
|
|
6896
6893
|
kwarg = s(:kwarg, identifier, arg).line line
|
6897
6894
|
result = s(:array, kwarg).line line
|
6898
|
-
|
6895
|
+
|
6899
6896
|
result
|
6900
6897
|
end
|
6901
6898
|
|
@@ -6906,7 +6903,7 @@ def _reduce_589(val, _values, result)
|
|
6906
6903
|
self.env[id] = :lvar
|
6907
6904
|
|
6908
6905
|
result = s(:array, s(:kwarg, id).line(line)).line line
|
6909
|
-
|
6906
|
+
|
6910
6907
|
result
|
6911
6908
|
end
|
6912
6909
|
|
@@ -6917,7 +6914,7 @@ def _reduce_590(val, _values, result)
|
|
6917
6914
|
self.env[id] = :lvar
|
6918
6915
|
|
6919
6916
|
result = s(:array, s(:kwarg, id, expr).line(line)).line line
|
6920
|
-
|
6917
|
+
|
6921
6918
|
result
|
6922
6919
|
end
|
6923
6920
|
|
@@ -6928,7 +6925,7 @@ def _reduce_591(val, _values, result)
|
|
6928
6925
|
self.env[id] = :lvar
|
6929
6926
|
|
6930
6927
|
result = s(:array, s(:kwarg, id).line(line)).line line
|
6931
|
-
|
6928
|
+
|
6932
6929
|
result
|
6933
6930
|
end
|
6934
6931
|
|
@@ -6937,7 +6934,7 @@ end
|
|
6937
6934
|
def _reduce_593(val, _values, result)
|
6938
6935
|
list, _, item = val
|
6939
6936
|
result = list << item.last
|
6940
|
-
|
6937
|
+
|
6941
6938
|
result
|
6942
6939
|
end
|
6943
6940
|
|
@@ -6945,7 +6942,7 @@ end
|
|
6945
6942
|
|
6946
6943
|
def _reduce_595(val, _values, result)
|
6947
6944
|
result = args val
|
6948
|
-
|
6945
|
+
|
6949
6946
|
result
|
6950
6947
|
end
|
6951
6948
|
|
@@ -6957,33 +6954,33 @@ def _reduce_598(val, _values, result)
|
|
6957
6954
|
name = val[1].to_sym
|
6958
6955
|
self.assignable name
|
6959
6956
|
result = :"**#{name}"
|
6960
|
-
|
6957
|
+
|
6961
6958
|
result
|
6962
6959
|
end
|
6963
6960
|
|
6964
6961
|
def _reduce_599(val, _values, result)
|
6965
6962
|
result = :"**"
|
6966
|
-
|
6963
|
+
|
6967
6964
|
result
|
6968
6965
|
end
|
6969
6966
|
|
6970
6967
|
def _reduce_600(val, _values, result)
|
6971
6968
|
result = self.assignable val[0], val[2]
|
6972
6969
|
# TODO: detect duplicate names
|
6973
|
-
|
6970
|
+
|
6974
6971
|
result
|
6975
6972
|
end
|
6976
6973
|
|
6977
6974
|
def _reduce_601(val, _values, result)
|
6978
6975
|
result = self.assignable val[0], val[2]
|
6979
|
-
|
6976
|
+
|
6980
6977
|
result
|
6981
6978
|
end
|
6982
6979
|
|
6983
6980
|
def _reduce_602(val, _values, result)
|
6984
6981
|
optblk, = val
|
6985
6982
|
result = s(:block, optblk).line optblk.line
|
6986
|
-
|
6983
|
+
|
6987
6984
|
result
|
6988
6985
|
end
|
6989
6986
|
|
@@ -6991,20 +6988,20 @@ def _reduce_603(val, _values, result)
|
|
6991
6988
|
optarg, _, optblk = val
|
6992
6989
|
result = optarg
|
6993
6990
|
result << optblk
|
6994
|
-
|
6991
|
+
|
6995
6992
|
result
|
6996
6993
|
end
|
6997
6994
|
|
6998
6995
|
def _reduce_604(val, _values, result)
|
6999
6996
|
opt, = val
|
7000
6997
|
result = s(:block, opt).line opt.line
|
7001
|
-
|
6998
|
+
|
7002
6999
|
result
|
7003
7000
|
end
|
7004
7001
|
|
7005
7002
|
def _reduce_605(val, _values, result)
|
7006
7003
|
result = self.block_append val[0], val[2]
|
7007
|
-
|
7004
|
+
|
7008
7005
|
result
|
7009
7006
|
end
|
7010
7007
|
|
@@ -7017,7 +7014,7 @@ def _reduce_608(val, _values, result)
|
|
7017
7014
|
name = val[1].to_sym
|
7018
7015
|
self.assignable name
|
7019
7016
|
result = :"*#{name}"
|
7020
|
-
|
7017
|
+
|
7021
7018
|
result
|
7022
7019
|
end
|
7023
7020
|
|
@@ -7025,7 +7022,7 @@ def _reduce_609(val, _values, result)
|
|
7025
7022
|
name = :"*"
|
7026
7023
|
self.env[name] = :lvar
|
7027
7024
|
result = name
|
7028
|
-
|
7025
|
+
|
7029
7026
|
result
|
7030
7027
|
end
|
7031
7028
|
|
@@ -7038,19 +7035,19 @@ def _reduce_612(val, _values, result)
|
|
7038
7035
|
|
7039
7036
|
self.env[identifier] = :lvar
|
7040
7037
|
result = "&#{identifier}".to_sym
|
7041
|
-
|
7038
|
+
|
7042
7039
|
result
|
7043
7040
|
end
|
7044
7041
|
|
7045
7042
|
def _reduce_613(val, _values, result)
|
7046
7043
|
result = val[1]
|
7047
|
-
|
7044
|
+
|
7048
7045
|
result
|
7049
7046
|
end
|
7050
7047
|
|
7051
7048
|
def _reduce_614(val, _values, result)
|
7052
7049
|
result = nil
|
7053
|
-
|
7050
|
+
|
7054
7051
|
result
|
7055
7052
|
end
|
7056
7053
|
|
@@ -7058,7 +7055,7 @@ end
|
|
7058
7055
|
|
7059
7056
|
def _reduce_616(val, _values, result)
|
7060
7057
|
lexer.lex_state = EXPR_BEG
|
7061
|
-
|
7058
|
+
|
7062
7059
|
result
|
7063
7060
|
end
|
7064
7061
|
|
@@ -7066,13 +7063,13 @@ def _reduce_617(val, _values, result)
|
|
7066
7063
|
result = val[2]
|
7067
7064
|
yyerror "Can't define single method for literals." if
|
7068
7065
|
result.sexp_type == :lit
|
7069
|
-
|
7066
|
+
|
7070
7067
|
result
|
7071
7068
|
end
|
7072
7069
|
|
7073
7070
|
def _reduce_618(val, _values, result)
|
7074
7071
|
result = s(:array).line lexer.lineno
|
7075
|
-
|
7072
|
+
|
7076
7073
|
result
|
7077
7074
|
end
|
7078
7075
|
|
@@ -7086,14 +7083,14 @@ def _reduce_621(val, _values, result)
|
|
7086
7083
|
list.push(*more) unless more.empty?
|
7087
7084
|
result = list
|
7088
7085
|
result.sexp_type = :hash
|
7089
|
-
|
7086
|
+
|
7090
7087
|
result
|
7091
7088
|
end
|
7092
7089
|
|
7093
7090
|
def _reduce_622(val, _values, result)
|
7094
7091
|
v1, _, v2 = val
|
7095
7092
|
result = s(:array, v1, v2).line v1.line
|
7096
|
-
|
7093
|
+
|
7097
7094
|
result
|
7098
7095
|
end
|
7099
7096
|
|
@@ -7102,7 +7099,7 @@ def _reduce_623(val, _values, result)
|
|
7102
7099
|
|
7103
7100
|
lit = s(:lit, label.to_sym).line line
|
7104
7101
|
result = s(:array, lit, arg).line line
|
7105
|
-
|
7102
|
+
|
7106
7103
|
result
|
7107
7104
|
end
|
7108
7105
|
|
@@ -7110,7 +7107,7 @@ def _reduce_624(val, _values, result)
|
|
7110
7107
|
_, sym, _, value = val
|
7111
7108
|
sym.sexp_type = :dsym
|
7112
7109
|
result = s(:array, sym, value).line sym.line
|
7113
|
-
|
7110
|
+
|
7114
7111
|
result
|
7115
7112
|
end
|
7116
7113
|
|
@@ -7118,7 +7115,7 @@ def _reduce_625(val, _values, result)
|
|
7118
7115
|
_, arg = val
|
7119
7116
|
line = arg.line
|
7120
7117
|
result = s(:array, s(:kwsplat, arg).line(line)).line line
|
7121
|
-
|
7118
|
+
|
7122
7119
|
result
|
7123
7120
|
end
|
7124
7121
|
|
@@ -7173,7 +7170,7 @@ end
|
|
7173
7170
|
# reduce 650 omitted
|
7174
7171
|
|
7175
7172
|
def _reduce_651(val, _values, result)
|
7176
|
-
yyerrok
|
7173
|
+
yyerrok
|
7177
7174
|
result
|
7178
7175
|
end
|
7179
7176
|
|
@@ -7182,12 +7179,12 @@ end
|
|
7182
7179
|
# reduce 653 omitted
|
7183
7180
|
|
7184
7181
|
def _reduce_654(val, _values, result)
|
7185
|
-
yyerrok
|
7182
|
+
yyerrok
|
7186
7183
|
result
|
7187
7184
|
end
|
7188
7185
|
|
7189
7186
|
def _reduce_655(val, _values, result)
|
7190
|
-
result = nil;
|
7187
|
+
result = nil;
|
7191
7188
|
result
|
7192
7189
|
end
|
7193
7190
|
|