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/ruby22_parser.y
CHANGED
@@ -991,17 +991,14 @@ rule
|
|
991
991
|
| args opt_block_arg
|
992
992
|
{
|
993
993
|
result = call_args val
|
994
|
-
result = self.arg_blk_pass val[0], val[1]
|
995
994
|
}
|
996
995
|
| assocs opt_block_arg
|
997
996
|
{
|
998
|
-
result = call_args [array_to_hash(val[0])]
|
999
|
-
result = self.arg_blk_pass result, val[1]
|
997
|
+
result = call_args [array_to_hash(val[0]), val[1]]
|
1000
998
|
}
|
1001
999
|
| args tCOMMA assocs opt_block_arg
|
1002
1000
|
{
|
1003
|
-
result = call_args [val[0], array_to_hash(val[2])]
|
1004
|
-
result = self.arg_blk_pass result, val[3]
|
1001
|
+
result = call_args [val[0], array_to_hash(val[2]), val[3]]
|
1005
1002
|
}
|
1006
1003
|
| block_arg
|
1007
1004
|
{
|
data/lib/ruby23_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'
|
@@ -3561,20 +3561,20 @@ Racc_debug_parser = false
|
|
3561
3561
|
|
3562
3562
|
def _reduce_1(val, _values, result)
|
3563
3563
|
self.lexer.lex_state = EXPR_BEG
|
3564
|
-
|
3564
|
+
|
3565
3565
|
result
|
3566
3566
|
end
|
3567
3567
|
|
3568
3568
|
def _reduce_2(val, _values, result)
|
3569
3569
|
result = new_compstmt val
|
3570
|
-
|
3570
|
+
|
3571
3571
|
result
|
3572
3572
|
end
|
3573
3573
|
|
3574
3574
|
def _reduce_3(val, _values, result)
|
3575
3575
|
stmt, _ = val
|
3576
3576
|
result = stmt
|
3577
|
-
|
3577
|
+
|
3578
3578
|
result
|
3579
3579
|
end
|
3580
3580
|
|
@@ -3584,7 +3584,7 @@ end
|
|
3584
3584
|
|
3585
3585
|
def _reduce_6(val, _values, result)
|
3586
3586
|
result = self.block_append val[0], val[2]
|
3587
|
-
|
3587
|
+
|
3588
3588
|
result
|
3589
3589
|
end
|
3590
3590
|
|
@@ -3598,7 +3598,7 @@ def _reduce_9(val, _values, result)
|
|
3598
3598
|
yyerror "BEGIN in method"
|
3599
3599
|
end
|
3600
3600
|
self.env.extend
|
3601
|
-
|
3601
|
+
|
3602
3602
|
result
|
3603
3603
|
end
|
3604
3604
|
|
@@ -3610,26 +3610,26 @@ def _reduce_10(val, _values, result)
|
|
3610
3610
|
preexe.line lineno
|
3611
3611
|
|
3612
3612
|
result = iter
|
3613
|
-
|
3613
|
+
|
3614
3614
|
result
|
3615
3615
|
end
|
3616
3616
|
|
3617
3617
|
def _reduce_11(val, _values, result)
|
3618
|
-
result = lexer.lineno
|
3618
|
+
result = lexer.lineno
|
3619
3619
|
result
|
3620
3620
|
end
|
3621
3621
|
|
3622
3622
|
def _reduce_12(val, _values, result)
|
3623
3623
|
_, line, stmt, _ = val
|
3624
3624
|
result = new_iter s(:preexe).line(line), 0, stmt
|
3625
|
-
|
3625
|
+
|
3626
3626
|
result
|
3627
3627
|
end
|
3628
3628
|
|
3629
3629
|
def _reduce_13(val, _values, result)
|
3630
3630
|
res = _values[-2]
|
3631
3631
|
yyerror "else without rescue is useless" unless res
|
3632
|
-
|
3632
|
+
|
3633
3633
|
result
|
3634
3634
|
end
|
3635
3635
|
|
@@ -3637,7 +3637,7 @@ def _reduce_14(val, _values, result)
|
|
3637
3637
|
body, resc, _, _, els, ens = val
|
3638
3638
|
|
3639
3639
|
result = new_body [body, resc, els, ens]
|
3640
|
-
|
3640
|
+
|
3641
3641
|
result
|
3642
3642
|
end
|
3643
3643
|
|
@@ -3645,13 +3645,13 @@ def _reduce_15(val, _values, result)
|
|
3645
3645
|
body, resc, ens = val
|
3646
3646
|
|
3647
3647
|
result = new_body [body, resc, nil, ens]
|
3648
|
-
|
3648
|
+
|
3649
3649
|
result
|
3650
3650
|
end
|
3651
3651
|
|
3652
3652
|
def _reduce_16(val, _values, result)
|
3653
3653
|
result = new_compstmt val
|
3654
|
-
|
3654
|
+
|
3655
3655
|
result
|
3656
3656
|
end
|
3657
3657
|
|
@@ -3661,14 +3661,14 @@ end
|
|
3661
3661
|
|
3662
3662
|
def _reduce_19(val, _values, result)
|
3663
3663
|
result = self.block_append val[0], val[2]
|
3664
|
-
|
3664
|
+
|
3665
3665
|
result
|
3666
3666
|
end
|
3667
3667
|
|
3668
3668
|
def _reduce_20(val, _values, result)
|
3669
3669
|
result = val[1]
|
3670
3670
|
debug20 2, val, result
|
3671
|
-
|
3671
|
+
|
3672
3672
|
result
|
3673
3673
|
end
|
3674
3674
|
|
@@ -3676,74 +3676,74 @@ end
|
|
3676
3676
|
|
3677
3677
|
def _reduce_22(val, _values, result)
|
3678
3678
|
yyerror "BEGIN is permitted only at toplevel"
|
3679
|
-
|
3679
|
+
|
3680
3680
|
result
|
3681
3681
|
end
|
3682
3682
|
|
3683
3683
|
def _reduce_23(val, _values, result)
|
3684
3684
|
lexer.lex_state = EXPR_FNAME
|
3685
|
-
|
3685
|
+
|
3686
3686
|
result
|
3687
3687
|
end
|
3688
3688
|
|
3689
3689
|
def _reduce_24(val, _values, result)
|
3690
3690
|
(_, line), lhs, _, rhs = val
|
3691
3691
|
result = s(:alias, lhs, rhs).line(line).line line
|
3692
|
-
|
3692
|
+
|
3693
3693
|
result
|
3694
3694
|
end
|
3695
3695
|
|
3696
3696
|
def _reduce_25(val, _values, result)
|
3697
3697
|
(_, line), lhs, rhs = val
|
3698
3698
|
result = s(:valias, lhs.to_sym, rhs.to_sym).line line
|
3699
|
-
|
3699
|
+
|
3700
3700
|
result
|
3701
3701
|
end
|
3702
3702
|
|
3703
3703
|
def _reduce_26(val, _values, result)
|
3704
3704
|
(_, line), lhs, rhs = val
|
3705
3705
|
result = s(:valias, lhs.to_sym, :"$#{rhs}").line line
|
3706
|
-
|
3706
|
+
|
3707
3707
|
result
|
3708
3708
|
end
|
3709
3709
|
|
3710
3710
|
def _reduce_27(val, _values, result)
|
3711
3711
|
yyerror "can't make alias for the number variables"
|
3712
|
-
|
3712
|
+
|
3713
3713
|
result
|
3714
3714
|
end
|
3715
3715
|
|
3716
3716
|
def _reduce_28(val, _values, result)
|
3717
3717
|
result = val[1]
|
3718
|
-
|
3718
|
+
|
3719
3719
|
result
|
3720
3720
|
end
|
3721
3721
|
|
3722
3722
|
def _reduce_29(val, _values, result)
|
3723
3723
|
t, _, c = val
|
3724
3724
|
result = new_if c, t, nil
|
3725
|
-
|
3725
|
+
|
3726
3726
|
result
|
3727
3727
|
end
|
3728
3728
|
|
3729
3729
|
def _reduce_30(val, _values, result)
|
3730
3730
|
f, _, c = val
|
3731
3731
|
result = new_if c, nil, f
|
3732
|
-
|
3732
|
+
|
3733
3733
|
result
|
3734
3734
|
end
|
3735
3735
|
|
3736
3736
|
def _reduce_31(val, _values, result)
|
3737
3737
|
e, _, c = val
|
3738
3738
|
result = new_while e, c, true
|
3739
|
-
|
3739
|
+
|
3740
3740
|
result
|
3741
3741
|
end
|
3742
3742
|
|
3743
3743
|
def _reduce_32(val, _values, result)
|
3744
3744
|
e, _, c = val
|
3745
3745
|
result = new_until e, c, true
|
3746
|
-
|
3746
|
+
|
3747
3747
|
result
|
3748
3748
|
end
|
3749
3749
|
|
@@ -3752,7 +3752,7 @@ def _reduce_33(val, _values, result)
|
|
3752
3752
|
|
3753
3753
|
resbody = new_resbody s(:array).line(resbody.line), resbody
|
3754
3754
|
result = new_rescue body, resbody
|
3755
|
-
|
3755
|
+
|
3756
3756
|
result
|
3757
3757
|
end
|
3758
3758
|
|
@@ -3765,7 +3765,7 @@ def _reduce_34(val, _values, result)
|
|
3765
3765
|
end
|
3766
3766
|
|
3767
3767
|
result = new_iter s(:postexe).line(line), 0, stmt
|
3768
|
-
|
3768
|
+
|
3769
3769
|
result
|
3770
3770
|
end
|
3771
3771
|
|
@@ -3773,20 +3773,20 @@ end
|
|
3773
3773
|
|
3774
3774
|
def _reduce_36(val, _values, result)
|
3775
3775
|
result = new_masgn val[0], val[2], :wrap
|
3776
|
-
|
3776
|
+
|
3777
3777
|
result
|
3778
3778
|
end
|
3779
3779
|
|
3780
3780
|
def _reduce_37(val, _values, result)
|
3781
3781
|
lhs, _, rhs = val
|
3782
3782
|
result = new_assign lhs, s(:svalue, rhs).line(rhs.line)
|
3783
|
-
|
3783
|
+
|
3784
3784
|
result
|
3785
3785
|
end
|
3786
3786
|
|
3787
3787
|
def _reduce_38(val, _values, result)
|
3788
3788
|
result = new_masgn val[0], val[2]
|
3789
|
-
|
3789
|
+
|
3790
3790
|
result
|
3791
3791
|
end
|
3792
3792
|
|
@@ -3794,19 +3794,19 @@ end
|
|
3794
3794
|
|
3795
3795
|
def _reduce_40(val, _values, result)
|
3796
3796
|
result = new_assign val[0], val[2]
|
3797
|
-
|
3797
|
+
|
3798
3798
|
result
|
3799
3799
|
end
|
3800
3800
|
|
3801
3801
|
def _reduce_41(val, _values, result)
|
3802
3802
|
result = new_op_asgn val
|
3803
|
-
|
3803
|
+
|
3804
3804
|
result
|
3805
3805
|
end
|
3806
3806
|
|
3807
3807
|
def _reduce_42(val, _values, result)
|
3808
3808
|
result = new_op_asgn1 val
|
3809
|
-
|
3809
|
+
|
3810
3810
|
result
|
3811
3811
|
end
|
3812
3812
|
|
@@ -3817,7 +3817,7 @@ def _reduce_43(val, _values, result)
|
|
3817
3817
|
result.sexp_type = :safe_op_asgn
|
3818
3818
|
end
|
3819
3819
|
result.line = val[0].line
|
3820
|
-
|
3820
|
+
|
3821
3821
|
result
|
3822
3822
|
end
|
3823
3823
|
|
@@ -3827,34 +3827,34 @@ def _reduce_44(val, _values, result)
|
|
3827
3827
|
result.sexp_type = :safe_op_asgn
|
3828
3828
|
end
|
3829
3829
|
result.line = val[0].line
|
3830
|
-
|
3830
|
+
|
3831
3831
|
result
|
3832
3832
|
end
|
3833
3833
|
|
3834
3834
|
def _reduce_45(val, _values, result)
|
3835
3835
|
result = s(:op_asgn, val[0], val[4], val[2], val[3])
|
3836
3836
|
debug20 4, val, result
|
3837
|
-
|
3837
|
+
|
3838
3838
|
result
|
3839
3839
|
end
|
3840
3840
|
|
3841
3841
|
def _reduce_46(val, _values, result)
|
3842
3842
|
result = s(:op_asgn, val[0], val[4], val[2], val[3])
|
3843
3843
|
debug20 5, val, result
|
3844
|
-
|
3844
|
+
|
3845
3845
|
result
|
3846
3846
|
end
|
3847
3847
|
|
3848
3848
|
def _reduce_47(val, _values, result)
|
3849
3849
|
self.backref_assign_error val[0]
|
3850
|
-
|
3850
|
+
|
3851
3851
|
result
|
3852
3852
|
end
|
3853
3853
|
|
3854
3854
|
def _reduce_48(val, _values, result)
|
3855
3855
|
expr, = val
|
3856
3856
|
result = value_expr expr
|
3857
|
-
|
3857
|
+
|
3858
3858
|
result
|
3859
3859
|
end
|
3860
3860
|
|
@@ -3865,14 +3865,14 @@ end
|
|
3865
3865
|
def _reduce_51(val, _values, result)
|
3866
3866
|
lhs, _, rhs = val
|
3867
3867
|
result = logical_op :and, lhs, rhs
|
3868
|
-
|
3868
|
+
|
3869
3869
|
result
|
3870
3870
|
end
|
3871
3871
|
|
3872
3872
|
def _reduce_52(val, _values, result)
|
3873
3873
|
lhs, _, rhs = val
|
3874
3874
|
result = logical_op :or, lhs, rhs
|
3875
|
-
|
3875
|
+
|
3876
3876
|
result
|
3877
3877
|
end
|
3878
3878
|
|
@@ -3880,7 +3880,7 @@ def _reduce_53(val, _values, result)
|
|
3880
3880
|
(_, line), _, expr = val
|
3881
3881
|
result = new_call(expr, :"!").line line
|
3882
3882
|
# REFACTOR: call_uni_op
|
3883
|
-
|
3883
|
+
|
3884
3884
|
result
|
3885
3885
|
end
|
3886
3886
|
|
@@ -3889,7 +3889,7 @@ def _reduce_54(val, _values, result)
|
|
3889
3889
|
result = new_call(cmd, :"!").line cmd.line
|
3890
3890
|
# TODO: fix line number to tBANG... but causes BAD shift/reduce conflict
|
3891
3891
|
# REFACTOR: call_uni_op -- see parse26.y
|
3892
|
-
|
3892
|
+
|
3893
3893
|
result
|
3894
3894
|
end
|
3895
3895
|
|
@@ -3897,26 +3897,26 @@ end
|
|
3897
3897
|
|
3898
3898
|
def _reduce_56(val, _values, result)
|
3899
3899
|
result = value_expr(val[0])
|
3900
|
-
|
3900
|
+
|
3901
3901
|
result
|
3902
3902
|
end
|
3903
3903
|
|
3904
3904
|
def _reduce_57(val, _values, result)
|
3905
3905
|
lexer.cond.push true
|
3906
|
-
|
3906
|
+
|
3907
3907
|
result
|
3908
3908
|
end
|
3909
3909
|
|
3910
3910
|
def _reduce_58(val, _values, result)
|
3911
3911
|
lexer.cond.pop
|
3912
|
-
|
3912
|
+
|
3913
3913
|
result
|
3914
3914
|
end
|
3915
3915
|
|
3916
3916
|
def _reduce_59(val, _values, result)
|
3917
3917
|
_, expr, _, _ = val
|
3918
3918
|
result = expr
|
3919
|
-
|
3919
|
+
|
3920
3920
|
result
|
3921
3921
|
end
|
3922
3922
|
|
@@ -3929,14 +3929,14 @@ end
|
|
3929
3929
|
def _reduce_63(val, _values, result)
|
3930
3930
|
blk, _, msg, args = val
|
3931
3931
|
result = new_call(blk, msg.to_sym, args).line blk.line
|
3932
|
-
|
3932
|
+
|
3933
3933
|
result
|
3934
3934
|
end
|
3935
3935
|
|
3936
3936
|
def _reduce_64(val, _values, result)
|
3937
3937
|
# self.env.extend(:dynamic)
|
3938
3938
|
result = self.lexer.lineno
|
3939
|
-
|
3939
|
+
|
3940
3940
|
result
|
3941
3941
|
end
|
3942
3942
|
|
@@ -3947,21 +3947,21 @@ def _reduce_65(val, _values, result)
|
|
3947
3947
|
result.line = line
|
3948
3948
|
|
3949
3949
|
# self.env.unextend
|
3950
|
-
|
3950
|
+
|
3951
3951
|
result
|
3952
3952
|
end
|
3953
3953
|
|
3954
3954
|
def _reduce_66(val, _values, result)
|
3955
3955
|
msg, = val
|
3956
3956
|
result = new_call(nil, msg.to_sym).line lexer.lineno
|
3957
|
-
|
3957
|
+
|
3958
3958
|
result
|
3959
3959
|
end
|
3960
3960
|
|
3961
3961
|
def _reduce_67(val, _values, result)
|
3962
3962
|
call, args = val
|
3963
3963
|
result = call.concat args.sexp_body
|
3964
|
-
|
3964
|
+
|
3965
3965
|
result
|
3966
3966
|
end
|
3967
3967
|
|
@@ -3976,14 +3976,14 @@ def _reduce_68(val, _values, result)
|
|
3976
3976
|
result, operation = block, result
|
3977
3977
|
result.insert 1, operation
|
3978
3978
|
end
|
3979
|
-
|
3979
|
+
|
3980
3980
|
result
|
3981
3981
|
end
|
3982
3982
|
|
3983
3983
|
def _reduce_69(val, _values, result)
|
3984
3984
|
lhs, callop, op, args = val
|
3985
3985
|
result = new_call lhs, op.to_sym, args, callop
|
3986
|
-
|
3986
|
+
|
3987
3987
|
result
|
3988
3988
|
end
|
3989
3989
|
|
@@ -3995,13 +3995,13 @@ def _reduce_70(val, _values, result)
|
|
3995
3995
|
|
3996
3996
|
block.insert 1, call
|
3997
3997
|
result = block
|
3998
|
-
|
3998
|
+
|
3999
3999
|
result
|
4000
4000
|
end
|
4001
4001
|
|
4002
4002
|
def _reduce_71(val, _values, result)
|
4003
4003
|
result = new_call val[0], val[2].to_sym, val[3]
|
4004
|
-
|
4004
|
+
|
4005
4005
|
result
|
4006
4006
|
end
|
4007
4007
|
|
@@ -4013,13 +4013,13 @@ def _reduce_72(val, _values, result)
|
|
4013
4013
|
|
4014
4014
|
block.insert 1, call
|
4015
4015
|
result = block
|
4016
|
-
|
4016
|
+
|
4017
4017
|
result
|
4018
4018
|
end
|
4019
4019
|
|
4020
4020
|
def _reduce_73(val, _values, result)
|
4021
4021
|
result = new_super val[1]
|
4022
|
-
|
4022
|
+
|
4023
4023
|
result
|
4024
4024
|
end
|
4025
4025
|
|
@@ -4027,28 +4027,28 @@ def _reduce_74(val, _values, result)
|
|
4027
4027
|
(_, line), args = val
|
4028
4028
|
result = new_yield args
|
4029
4029
|
result.line line # TODO: push to new_yield
|
4030
|
-
|
4030
|
+
|
4031
4031
|
result
|
4032
4032
|
end
|
4033
4033
|
|
4034
4034
|
def _reduce_75(val, _values, result)
|
4035
4035
|
line = val[0].last
|
4036
4036
|
result = s(:return, ret_args(val[1])).line(line)
|
4037
|
-
|
4037
|
+
|
4038
4038
|
result
|
4039
4039
|
end
|
4040
4040
|
|
4041
4041
|
def _reduce_76(val, _values, result)
|
4042
4042
|
(_, line), args = val
|
4043
4043
|
result = s(:break, ret_args(args)).line line
|
4044
|
-
|
4044
|
+
|
4045
4045
|
result
|
4046
4046
|
end
|
4047
4047
|
|
4048
4048
|
def _reduce_77(val, _values, result)
|
4049
4049
|
line = val[0].last
|
4050
4050
|
result = s(:next, ret_args(val[1])).line(line)
|
4051
|
-
|
4051
|
+
|
4052
4052
|
result
|
4053
4053
|
end
|
4054
4054
|
|
@@ -4056,7 +4056,7 @@ end
|
|
4056
4056
|
|
4057
4057
|
def _reduce_79(val, _values, result)
|
4058
4058
|
result = val[1]
|
4059
|
-
|
4059
|
+
|
4060
4060
|
result
|
4061
4061
|
end
|
4062
4062
|
|
@@ -4067,21 +4067,21 @@ def _reduce_81(val, _values, result)
|
|
4067
4067
|
l = arg.line
|
4068
4068
|
|
4069
4069
|
result = s(:masgn, s(:array, arg).line(l)).line l
|
4070
|
-
|
4070
|
+
|
4071
4071
|
result
|
4072
4072
|
end
|
4073
4073
|
|
4074
4074
|
def _reduce_82(val, _values, result)
|
4075
4075
|
head, = val
|
4076
4076
|
result = s(:masgn, head).line head.line
|
4077
|
-
|
4077
|
+
|
4078
4078
|
result
|
4079
4079
|
end
|
4080
4080
|
|
4081
4081
|
def _reduce_83(val, _values, result)
|
4082
4082
|
lhs, rhs = val
|
4083
4083
|
result = s(:masgn, lhs << rhs.compact).line lhs.line
|
4084
|
-
|
4084
|
+
|
4085
4085
|
result
|
4086
4086
|
end
|
4087
4087
|
|
@@ -4089,7 +4089,7 @@ def _reduce_84(val, _values, result)
|
|
4089
4089
|
head, _, tail = val
|
4090
4090
|
head << s(:splat, tail).line(tail.line)
|
4091
4091
|
result = s(:masgn, head).line head.line
|
4092
|
-
|
4092
|
+
|
4093
4093
|
result
|
4094
4094
|
end
|
4095
4095
|
|
@@ -4099,7 +4099,7 @@ def _reduce_85(val, _values, result)
|
|
4099
4099
|
result = list_append ary1, s(:splat, splat).line(splat.line)
|
4100
4100
|
result.concat ary2.sexp_body
|
4101
4101
|
result = s(:masgn, result).line result.line
|
4102
|
-
|
4102
|
+
|
4103
4103
|
result
|
4104
4104
|
end
|
4105
4105
|
|
@@ -4107,7 +4107,7 @@ def _reduce_86(val, _values, result)
|
|
4107
4107
|
head, _ = val
|
4108
4108
|
l = head.line
|
4109
4109
|
result = s(:masgn, head << s(:splat).line(l)).line l
|
4110
|
-
|
4110
|
+
|
4111
4111
|
result
|
4112
4112
|
end
|
4113
4113
|
|
@@ -4116,7 +4116,7 @@ def _reduce_87(val, _values, result)
|
|
4116
4116
|
ary = list_append head, s(:splat).line(head.line)
|
4117
4117
|
ary.concat post.sexp_body
|
4118
4118
|
result = s(:masgn, ary).line ary.line
|
4119
|
-
|
4119
|
+
|
4120
4120
|
result
|
4121
4121
|
end
|
4122
4122
|
|
@@ -4126,7 +4126,7 @@ def _reduce_88(val, _values, result)
|
|
4126
4126
|
splat = s(:splat, node).line l
|
4127
4127
|
ary = s(:array, splat).line l
|
4128
4128
|
result = s(:masgn, ary).line l
|
4129
|
-
|
4129
|
+
|
4130
4130
|
result
|
4131
4131
|
end
|
4132
4132
|
|
@@ -4137,14 +4137,14 @@ def _reduce_89(val, _values, result)
|
|
4137
4137
|
ary = s(:array, splat).line splat.line
|
4138
4138
|
ary.concat post.sexp_body
|
4139
4139
|
result = s(:masgn, ary).line ary.line
|
4140
|
-
|
4140
|
+
|
4141
4141
|
result
|
4142
4142
|
end
|
4143
4143
|
|
4144
4144
|
def _reduce_90(val, _values, result)
|
4145
4145
|
l = lexer.lineno
|
4146
4146
|
result = s(:masgn, s(:array, s(:splat).line(l)).line(l)).line l
|
4147
|
-
|
4147
|
+
|
4148
4148
|
result
|
4149
4149
|
end
|
4150
4150
|
|
@@ -4155,7 +4155,7 @@ def _reduce_91(val, _values, result)
|
|
4155
4155
|
splat = s(:splat).line l
|
4156
4156
|
ary = s(:array, splat, *post.sexp_body).line l
|
4157
4157
|
result = s(:masgn, ary).line l
|
4158
|
-
|
4158
|
+
|
4159
4159
|
result
|
4160
4160
|
end
|
4161
4161
|
|
@@ -4163,70 +4163,70 @@ end
|
|
4163
4163
|
|
4164
4164
|
def _reduce_93(val, _values, result)
|
4165
4165
|
result = val[1]
|
4166
|
-
|
4166
|
+
|
4167
4167
|
result
|
4168
4168
|
end
|
4169
4169
|
|
4170
4170
|
def _reduce_94(val, _values, result)
|
4171
4171
|
lhs, _ = val
|
4172
4172
|
result = s(:array, lhs).line lhs.line
|
4173
|
-
|
4173
|
+
|
4174
4174
|
result
|
4175
4175
|
end
|
4176
4176
|
|
4177
4177
|
def _reduce_95(val, _values, result)
|
4178
4178
|
result = val[0] << val[1].compact
|
4179
|
-
|
4179
|
+
|
4180
4180
|
result
|
4181
4181
|
end
|
4182
4182
|
|
4183
4183
|
def _reduce_96(val, _values, result)
|
4184
4184
|
item, = val
|
4185
4185
|
result = s(:array, item).line item.line
|
4186
|
-
|
4186
|
+
|
4187
4187
|
result
|
4188
4188
|
end
|
4189
4189
|
|
4190
4190
|
def _reduce_97(val, _values, result)
|
4191
4191
|
result = list_append val[0], val[2]
|
4192
|
-
|
4192
|
+
|
4193
4193
|
result
|
4194
4194
|
end
|
4195
4195
|
|
4196
4196
|
def _reduce_98(val, _values, result)
|
4197
4197
|
result = self.assignable val[0]
|
4198
|
-
|
4198
|
+
|
4199
4199
|
result
|
4200
4200
|
end
|
4201
4201
|
|
4202
4202
|
def _reduce_99(val, _values, result)
|
4203
4203
|
result = self.assignable val[0]
|
4204
|
-
|
4204
|
+
|
4205
4205
|
result
|
4206
4206
|
end
|
4207
4207
|
|
4208
4208
|
def _reduce_100(val, _values, result)
|
4209
4209
|
result = self.aryset val[0], val[2]
|
4210
|
-
|
4210
|
+
|
4211
4211
|
result
|
4212
4212
|
end
|
4213
4213
|
|
4214
4214
|
def _reduce_101(val, _values, result)
|
4215
4215
|
result = new_attrasgn val[0], val[2], val[1]
|
4216
|
-
|
4216
|
+
|
4217
4217
|
result
|
4218
4218
|
end
|
4219
4219
|
|
4220
4220
|
def _reduce_102(val, _values, result)
|
4221
4221
|
recv, _, id = val
|
4222
4222
|
result = new_attrasgn recv, id
|
4223
|
-
|
4223
|
+
|
4224
4224
|
result
|
4225
4225
|
end
|
4226
4226
|
|
4227
4227
|
def _reduce_103(val, _values, result)
|
4228
4228
|
result = new_attrasgn val[0], val[2], val[1]
|
4229
|
-
|
4229
|
+
|
4230
4230
|
result
|
4231
4231
|
end
|
4232
4232
|
|
@@ -4240,7 +4240,7 @@ def _reduce_104(val, _values, result)
|
|
4240
4240
|
l = expr.line
|
4241
4241
|
|
4242
4242
|
result = s(:const, s(:colon2, expr, id.to_sym).line(l), nil).line l
|
4243
|
-
|
4243
|
+
|
4244
4244
|
result
|
4245
4245
|
end
|
4246
4246
|
|
@@ -4254,13 +4254,13 @@ def _reduce_105(val, _values, result)
|
|
4254
4254
|
l = lexer.lineno
|
4255
4255
|
|
4256
4256
|
result = s(:const, nil, s(:colon3, id.to_sym).line(l)).line l
|
4257
|
-
|
4257
|
+
|
4258
4258
|
result
|
4259
4259
|
end
|
4260
4260
|
|
4261
4261
|
def _reduce_106(val, _values, result)
|
4262
4262
|
self.backref_assign_error val[0]
|
4263
|
-
|
4263
|
+
|
4264
4264
|
result
|
4265
4265
|
end
|
4266
4266
|
|
@@ -4268,7 +4268,7 @@ def _reduce_107(val, _values, result)
|
|
4268
4268
|
line = lexer.lineno
|
4269
4269
|
result = self.assignable val[0]
|
4270
4270
|
result.line = line
|
4271
|
-
|
4271
|
+
|
4272
4272
|
result
|
4273
4273
|
end
|
4274
4274
|
|
@@ -4277,34 +4277,34 @@ def _reduce_108(val, _values, result)
|
|
4277
4277
|
result = self.assignable val[0]
|
4278
4278
|
result.line = line
|
4279
4279
|
debug20 9, val, result
|
4280
|
-
|
4280
|
+
|
4281
4281
|
result
|
4282
4282
|
end
|
4283
4283
|
|
4284
4284
|
def _reduce_109(val, _values, result)
|
4285
4285
|
lhs, _, args, _ = val
|
4286
4286
|
result = self.aryset lhs, args
|
4287
|
-
|
4287
|
+
|
4288
4288
|
result
|
4289
4289
|
end
|
4290
4290
|
|
4291
4291
|
def _reduce_110(val, _values, result)
|
4292
4292
|
lhs, op, id = val
|
4293
4293
|
result = new_attrasgn lhs, id, op
|
4294
|
-
|
4294
|
+
|
4295
4295
|
result
|
4296
4296
|
end
|
4297
4297
|
|
4298
4298
|
def _reduce_111(val, _values, result)
|
4299
4299
|
lhs, _, id = val
|
4300
4300
|
result = new_attrasgn lhs, id
|
4301
|
-
|
4301
|
+
|
4302
4302
|
result
|
4303
4303
|
end
|
4304
4304
|
|
4305
4305
|
def _reduce_112(val, _values, result)
|
4306
4306
|
result = new_attrasgn val[0], val[2], val[1]
|
4307
|
-
|
4307
|
+
|
4308
4308
|
result
|
4309
4309
|
end
|
4310
4310
|
|
@@ -4318,7 +4318,7 @@ def _reduce_113(val, _values, result)
|
|
4318
4318
|
|
4319
4319
|
l = expr.line
|
4320
4320
|
result = s(:const, s(:colon2, expr, id.to_sym).line(l)).line l
|
4321
|
-
|
4321
|
+
|
4322
4322
|
result
|
4323
4323
|
end
|
4324
4324
|
|
@@ -4332,19 +4332,19 @@ def _reduce_114(val, _values, result)
|
|
4332
4332
|
|
4333
4333
|
l = lexer.lineno
|
4334
4334
|
result = s(:const, s(:colon3, id.to_sym).line(l)).line l
|
4335
|
-
|
4335
|
+
|
4336
4336
|
result
|
4337
4337
|
end
|
4338
4338
|
|
4339
4339
|
def _reduce_115(val, _values, result)
|
4340
4340
|
self.backref_assign_error val[0]
|
4341
|
-
|
4341
|
+
|
4342
4342
|
result
|
4343
4343
|
end
|
4344
4344
|
|
4345
4345
|
def _reduce_116(val, _values, result)
|
4346
4346
|
yyerror "class/module name must be CONSTANT"
|
4347
|
-
|
4347
|
+
|
4348
4348
|
result
|
4349
4349
|
end
|
4350
4350
|
|
@@ -4353,13 +4353,13 @@ end
|
|
4353
4353
|
def _reduce_118(val, _values, result)
|
4354
4354
|
_, name = val
|
4355
4355
|
result = s(:colon3, name.to_sym).line lexer.lineno
|
4356
|
-
|
4356
|
+
|
4357
4357
|
result
|
4358
4358
|
end
|
4359
4359
|
|
4360
4360
|
def _reduce_119(val, _values, result)
|
4361
4361
|
result = val[0].to_sym
|
4362
|
-
|
4362
|
+
|
4363
4363
|
result
|
4364
4364
|
end
|
4365
4365
|
|
@@ -4368,7 +4368,7 @@ def _reduce_120(val, _values, result)
|
|
4368
4368
|
|
4369
4369
|
result = s(:colon2, pval, name.to_sym)
|
4370
4370
|
result.line pval.line
|
4371
|
-
|
4371
|
+
|
4372
4372
|
result
|
4373
4373
|
end
|
4374
4374
|
|
@@ -4381,7 +4381,7 @@ end
|
|
4381
4381
|
def _reduce_124(val, _values, result)
|
4382
4382
|
lexer.lex_state = EXPR_END
|
4383
4383
|
result = val[0]
|
4384
|
-
|
4384
|
+
|
4385
4385
|
result
|
4386
4386
|
end
|
4387
4387
|
|
@@ -4389,7 +4389,7 @@ def _reduce_125(val, _values, result)
|
|
4389
4389
|
(sym, _line), = val
|
4390
4390
|
lexer.lex_state = EXPR_END
|
4391
4391
|
result = sym
|
4392
|
-
|
4392
|
+
|
4393
4393
|
result
|
4394
4394
|
end
|
4395
4395
|
|
@@ -4400,7 +4400,7 @@ end
|
|
4400
4400
|
def _reduce_128(val, _values, result)
|
4401
4401
|
id, = val
|
4402
4402
|
result = s(:lit, id.to_sym).line lexer.lineno
|
4403
|
-
|
4403
|
+
|
4404
4404
|
result
|
4405
4405
|
end
|
4406
4406
|
|
@@ -4408,19 +4408,19 @@ end
|
|
4408
4408
|
|
4409
4409
|
def _reduce_130(val, _values, result)
|
4410
4410
|
result = new_undef val[0]
|
4411
|
-
|
4411
|
+
|
4412
4412
|
result
|
4413
4413
|
end
|
4414
4414
|
|
4415
4415
|
def _reduce_131(val, _values, result)
|
4416
4416
|
lexer.lex_state = EXPR_FNAME
|
4417
|
-
|
4417
|
+
|
4418
4418
|
result
|
4419
4419
|
end
|
4420
4420
|
|
4421
4421
|
def _reduce_132(val, _values, result)
|
4422
4422
|
result = new_undef val[0], val[3]
|
4423
|
-
|
4423
|
+
|
4424
4424
|
result
|
4425
4425
|
end
|
4426
4426
|
|
@@ -4570,31 +4570,31 @@ end
|
|
4570
4570
|
|
4571
4571
|
def _reduce_205(val, _values, result)
|
4572
4572
|
result = new_assign val[0], val[2]
|
4573
|
-
|
4573
|
+
|
4574
4574
|
result
|
4575
4575
|
end
|
4576
4576
|
|
4577
4577
|
def _reduce_206(val, _values, result)
|
4578
4578
|
result = new_op_asgn val
|
4579
|
-
|
4579
|
+
|
4580
4580
|
result
|
4581
4581
|
end
|
4582
4582
|
|
4583
4583
|
def _reduce_207(val, _values, result)
|
4584
4584
|
result = new_op_asgn1 val
|
4585
|
-
|
4585
|
+
|
4586
4586
|
result
|
4587
4587
|
end
|
4588
4588
|
|
4589
4589
|
def _reduce_208(val, _values, result)
|
4590
4590
|
result = new_op_asgn2 val
|
4591
|
-
|
4591
|
+
|
4592
4592
|
result
|
4593
4593
|
end
|
4594
4594
|
|
4595
4595
|
def _reduce_209(val, _values, result)
|
4596
4596
|
result = new_op_asgn2 val
|
4597
|
-
|
4597
|
+
|
4598
4598
|
result
|
4599
4599
|
end
|
4600
4600
|
|
@@ -4602,7 +4602,7 @@ def _reduce_210(val, _values, result)
|
|
4602
4602
|
lhs, _, id, op, rhs = val
|
4603
4603
|
|
4604
4604
|
result = s(:op_asgn, lhs, rhs, id.to_sym, op.to_sym).line lhs.line
|
4605
|
-
|
4605
|
+
|
4606
4606
|
result
|
4607
4607
|
end
|
4608
4608
|
|
@@ -4611,13 +4611,13 @@ def _reduce_211(val, _values, result)
|
|
4611
4611
|
|
4612
4612
|
lhs = s(:colon2, lhs1, lhs2.to_sym).line lhs1.line
|
4613
4613
|
result = new_const_op_asgn [lhs, op, rhs]
|
4614
|
-
|
4614
|
+
|
4615
4615
|
result
|
4616
4616
|
end
|
4617
4617
|
|
4618
4618
|
def _reduce_212(val, _values, result)
|
4619
4619
|
result = self.lexer.lineno
|
4620
|
-
|
4620
|
+
|
4621
4621
|
result
|
4622
4622
|
end
|
4623
4623
|
|
@@ -4626,7 +4626,7 @@ def _reduce_213(val, _values, result)
|
|
4626
4626
|
|
4627
4627
|
lhs = s(:colon3, lhs.to_sym).line line
|
4628
4628
|
result = new_const_op_asgn [lhs, op, rhs]
|
4629
|
-
|
4629
|
+
|
4630
4630
|
result
|
4631
4631
|
end
|
4632
4632
|
|
@@ -4634,7 +4634,7 @@ def _reduce_214(val, _values, result)
|
|
4634
4634
|
# TODO: lhs = var_field val[0]
|
4635
4635
|
asgn = new_op_asgn val
|
4636
4636
|
result = self.backref_assign_error asgn
|
4637
|
-
|
4637
|
+
|
4638
4638
|
result
|
4639
4639
|
end
|
4640
4640
|
|
@@ -4645,7 +4645,7 @@ def _reduce_215(val, _values, result)
|
|
4645
4645
|
else
|
4646
4646
|
result = s(:dot2, v1, v2).line v1.line
|
4647
4647
|
end
|
4648
|
-
|
4648
|
+
|
4649
4649
|
result
|
4650
4650
|
end
|
4651
4651
|
|
@@ -4656,43 +4656,43 @@ def _reduce_216(val, _values, result)
|
|
4656
4656
|
else
|
4657
4657
|
result = s(:dot3, v1, v2).line v1.line
|
4658
4658
|
end
|
4659
|
-
|
4659
|
+
|
4660
4660
|
result
|
4661
4661
|
end
|
4662
4662
|
|
4663
4663
|
def _reduce_217(val, _values, result)
|
4664
4664
|
result = new_call val[0], :+, argl(val[2])
|
4665
|
-
|
4665
|
+
|
4666
4666
|
result
|
4667
4667
|
end
|
4668
4668
|
|
4669
4669
|
def _reduce_218(val, _values, result)
|
4670
4670
|
result = new_call val[0], :-, argl(val[2])
|
4671
|
-
|
4671
|
+
|
4672
4672
|
result
|
4673
4673
|
end
|
4674
4674
|
|
4675
4675
|
def _reduce_219(val, _values, result)
|
4676
4676
|
result = new_call val[0], :*, argl(val[2])
|
4677
|
-
|
4677
|
+
|
4678
4678
|
result
|
4679
4679
|
end
|
4680
4680
|
|
4681
4681
|
def _reduce_220(val, _values, result)
|
4682
4682
|
result = new_call val[0], :"/", argl(val[2])
|
4683
|
-
|
4683
|
+
|
4684
4684
|
result
|
4685
4685
|
end
|
4686
4686
|
|
4687
4687
|
def _reduce_221(val, _values, result)
|
4688
4688
|
result = new_call val[0], :"%", argl(val[2])
|
4689
|
-
|
4689
|
+
|
4690
4690
|
result
|
4691
4691
|
end
|
4692
4692
|
|
4693
4693
|
def _reduce_222(val, _values, result)
|
4694
4694
|
result = new_call val[0], :**, argl(val[2])
|
4695
|
-
|
4695
|
+
|
4696
4696
|
result
|
4697
4697
|
end
|
4698
4698
|
|
@@ -4700,43 +4700,43 @@ def _reduce_223(val, _values, result)
|
|
4700
4700
|
lit = s(:lit, val[1]).line lexer.lineno
|
4701
4701
|
result = new_call(new_call(lit, :"**", argl(val[3])), :"-@")
|
4702
4702
|
|
4703
|
-
|
4703
|
+
|
4704
4704
|
result
|
4705
4705
|
end
|
4706
4706
|
|
4707
4707
|
def _reduce_224(val, _values, result)
|
4708
4708
|
result = new_call val[1], :"+@"
|
4709
|
-
|
4709
|
+
|
4710
4710
|
result
|
4711
4711
|
end
|
4712
4712
|
|
4713
4713
|
def _reduce_225(val, _values, result)
|
4714
4714
|
result = new_call val[1], :"-@"
|
4715
|
-
|
4715
|
+
|
4716
4716
|
result
|
4717
4717
|
end
|
4718
4718
|
|
4719
4719
|
def _reduce_226(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_227(val, _values, result)
|
4726
4726
|
result = new_call val[0], :"^", argl(val[2])
|
4727
|
-
|
4727
|
+
|
4728
4728
|
result
|
4729
4729
|
end
|
4730
4730
|
|
4731
4731
|
def _reduce_228(val, _values, result)
|
4732
4732
|
result = new_call val[0], :"&", argl(val[2])
|
4733
|
-
|
4733
|
+
|
4734
4734
|
result
|
4735
4735
|
end
|
4736
4736
|
|
4737
4737
|
def _reduce_229(val, _values, result)
|
4738
4738
|
result = new_call val[0], :"<=>", argl(val[2])
|
4739
|
-
|
4739
|
+
|
4740
4740
|
result
|
4741
4741
|
end
|
4742
4742
|
|
@@ -4744,33 +4744,33 @@ end
|
|
4744
4744
|
|
4745
4745
|
def _reduce_231(val, _values, result)
|
4746
4746
|
result = new_call val[0], :"==", argl(val[2])
|
4747
|
-
|
4747
|
+
|
4748
4748
|
result
|
4749
4749
|
end
|
4750
4750
|
|
4751
4751
|
def _reduce_232(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_233(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_234(val, _values, result)
|
4764
4764
|
lhs, _, rhs = val
|
4765
4765
|
result = new_match lhs, rhs
|
4766
|
-
|
4766
|
+
|
4767
4767
|
result
|
4768
4768
|
end
|
4769
4769
|
|
4770
4770
|
def _reduce_235(val, _values, result)
|
4771
4771
|
lhs, _, rhs = val
|
4772
4772
|
result = s(:not, new_match(lhs, rhs)).line lhs.line
|
4773
|
-
|
4773
|
+
|
4774
4774
|
result
|
4775
4775
|
end
|
4776
4776
|
|
@@ -4778,13 +4778,13 @@ def _reduce_236(val, _values, result)
|
|
4778
4778
|
_, arg = val
|
4779
4779
|
result = new_call arg, :"!"
|
4780
4780
|
result.line arg.line
|
4781
|
-
|
4781
|
+
|
4782
4782
|
result
|
4783
4783
|
end
|
4784
4784
|
|
4785
4785
|
def _reduce_237(val, _values, result)
|
4786
4786
|
result = new_call value_expr(val[1]), :"~"
|
4787
|
-
|
4787
|
+
|
4788
4788
|
result
|
4789
4789
|
end
|
4790
4790
|
|
@@ -4792,7 +4792,7 @@ def _reduce_238(val, _values, result)
|
|
4792
4792
|
val[0] = value_expr val[0]
|
4793
4793
|
val[2] = value_expr val[2]
|
4794
4794
|
result = new_call val[0], :"\<\<", argl(val[2])
|
4795
|
-
|
4795
|
+
|
4796
4796
|
result
|
4797
4797
|
end
|
4798
4798
|
|
@@ -4800,33 +4800,33 @@ def _reduce_239(val, _values, result)
|
|
4800
4800
|
val[0] = value_expr val[0]
|
4801
4801
|
val[2] = value_expr val[2]
|
4802
4802
|
result = new_call val[0], :">>", argl(val[2])
|
4803
|
-
|
4803
|
+
|
4804
4804
|
result
|
4805
4805
|
end
|
4806
4806
|
|
4807
4807
|
def _reduce_240(val, _values, result)
|
4808
4808
|
result = logical_op :and, val[0], val[2]
|
4809
|
-
|
4809
|
+
|
4810
4810
|
result
|
4811
4811
|
end
|
4812
4812
|
|
4813
4813
|
def _reduce_241(val, _values, result)
|
4814
4814
|
result = logical_op :or, val[0], val[2]
|
4815
|
-
|
4815
|
+
|
4816
4816
|
result
|
4817
4817
|
end
|
4818
4818
|
|
4819
4819
|
def _reduce_242(val, _values, result)
|
4820
4820
|
(_, line), _, arg = val
|
4821
4821
|
result = s(:defined, arg).line line
|
4822
|
-
|
4822
|
+
|
4823
4823
|
result
|
4824
4824
|
end
|
4825
4825
|
|
4826
4826
|
def _reduce_243(val, _values, result)
|
4827
4827
|
c, _, t, _, _, f = val
|
4828
4828
|
result = s(:if, c, t, f).line c.line
|
4829
|
-
|
4829
|
+
|
4830
4830
|
result
|
4831
4831
|
end
|
4832
4832
|
|
@@ -4843,7 +4843,7 @@ end
|
|
4843
4843
|
def _reduce_249(val, _values, result)
|
4844
4844
|
lhs, op, rhs = val
|
4845
4845
|
result = new_call lhs, op.to_sym, argl(rhs)
|
4846
|
-
|
4846
|
+
|
4847
4847
|
result
|
4848
4848
|
end
|
4849
4849
|
|
@@ -4851,13 +4851,13 @@ def _reduce_250(val, _values, result)
|
|
4851
4851
|
lhs, op, rhs = val
|
4852
4852
|
warn "comparison '%s' after comparison", op
|
4853
4853
|
result = new_call lhs, op.to_sym, argl(rhs)
|
4854
|
-
|
4854
|
+
|
4855
4855
|
result
|
4856
4856
|
end
|
4857
4857
|
|
4858
4858
|
def _reduce_251(val, _values, result)
|
4859
4859
|
result = value_expr(val[0])
|
4860
|
-
|
4860
|
+
|
4861
4861
|
result
|
4862
4862
|
end
|
4863
4863
|
|
@@ -4865,19 +4865,19 @@ end
|
|
4865
4865
|
|
4866
4866
|
def _reduce_253(val, _values, result)
|
4867
4867
|
result = args [val[0]]
|
4868
|
-
|
4868
|
+
|
4869
4869
|
result
|
4870
4870
|
end
|
4871
4871
|
|
4872
4872
|
def _reduce_254(val, _values, result)
|
4873
4873
|
result = args [val[0], array_to_hash(val[2])]
|
4874
|
-
|
4874
|
+
|
4875
4875
|
result
|
4876
4876
|
end
|
4877
4877
|
|
4878
4878
|
def _reduce_255(val, _values, result)
|
4879
4879
|
result = args [array_to_hash(val[0])]
|
4880
|
-
|
4880
|
+
|
4881
4881
|
result
|
4882
4882
|
end
|
4883
4883
|
|
@@ -4890,14 +4890,14 @@ def _reduce_257(val, _values, result)
|
|
4890
4890
|
|
4891
4891
|
ary = s(:array).line line
|
4892
4892
|
result = new_rescue(body, new_resbody(ary, resbody))
|
4893
|
-
|
4893
|
+
|
4894
4894
|
result
|
4895
4895
|
end
|
4896
4896
|
|
4897
4897
|
def _reduce_258(val, _values, result)
|
4898
4898
|
_, args, _ = val
|
4899
4899
|
result = args
|
4900
|
-
|
4900
|
+
|
4901
4901
|
result
|
4902
4902
|
end
|
4903
4903
|
|
@@ -4911,79 +4911,76 @@ end
|
|
4911
4911
|
|
4912
4912
|
def _reduce_263(val, _values, result)
|
4913
4913
|
result = args val
|
4914
|
-
|
4914
|
+
|
4915
4915
|
result
|
4916
4916
|
end
|
4917
4917
|
|
4918
4918
|
def _reduce_264(val, _values, result)
|
4919
4919
|
result = args [val[0], array_to_hash(val[2])]
|
4920
|
-
|
4920
|
+
|
4921
4921
|
result
|
4922
4922
|
end
|
4923
4923
|
|
4924
4924
|
def _reduce_265(val, _values, result)
|
4925
4925
|
result = args [array_to_hash(val[0])]
|
4926
|
-
|
4926
|
+
|
4927
4927
|
result
|
4928
4928
|
end
|
4929
4929
|
|
4930
4930
|
def _reduce_266(val, _values, result)
|
4931
4931
|
warning "parenthesize argument(s) for future version"
|
4932
4932
|
result = call_args val
|
4933
|
-
|
4933
|
+
|
4934
4934
|
result
|
4935
4935
|
end
|
4936
4936
|
|
4937
4937
|
def _reduce_267(val, _values, result)
|
4938
4938
|
result = call_args val
|
4939
|
-
|
4940
|
-
|
4939
|
+
|
4941
4940
|
result
|
4942
4941
|
end
|
4943
4942
|
|
4944
4943
|
def _reduce_268(val, _values, result)
|
4945
|
-
result = call_args [array_to_hash(val[0])]
|
4946
|
-
|
4947
|
-
|
4944
|
+
result = call_args [array_to_hash(val[0]), val[1]]
|
4945
|
+
|
4948
4946
|
result
|
4949
4947
|
end
|
4950
4948
|
|
4951
4949
|
def _reduce_269(val, _values, result)
|
4952
|
-
result = call_args [val[0], array_to_hash(val[2])]
|
4953
|
-
|
4954
|
-
|
4950
|
+
result = call_args [val[0], array_to_hash(val[2]), val[3]]
|
4951
|
+
|
4955
4952
|
result
|
4956
4953
|
end
|
4957
4954
|
|
4958
4955
|
def _reduce_270(val, _values, result)
|
4959
4956
|
result = call_args val
|
4960
|
-
|
4957
|
+
|
4961
4958
|
result
|
4962
4959
|
end
|
4963
4960
|
|
4964
4961
|
def _reduce_271(val, _values, result)
|
4965
4962
|
result = lexer.cmdarg.store true
|
4966
|
-
|
4963
|
+
|
4967
4964
|
result
|
4968
4965
|
end
|
4969
4966
|
|
4970
4967
|
def _reduce_272(val, _values, result)
|
4971
4968
|
lexer.cmdarg.restore val[0]
|
4972
4969
|
result = val[1]
|
4973
|
-
|
4970
|
+
|
4974
4971
|
result
|
4975
4972
|
end
|
4976
4973
|
|
4977
4974
|
def _reduce_273(val, _values, result)
|
4978
4975
|
_, arg = val
|
4979
4976
|
result = s(:block_pass, arg).line arg.line
|
4980
|
-
|
4977
|
+
|
4981
4978
|
result
|
4982
4979
|
end
|
4983
4980
|
|
4984
4981
|
def _reduce_274(val, _values, result)
|
4985
4982
|
result = val[1]
|
4986
|
-
|
4983
|
+
|
4987
4984
|
result
|
4988
4985
|
end
|
4989
4986
|
|
@@ -4993,51 +4990,51 @@ def _reduce_276(val, _values, result)
|
|
4993
4990
|
arg, = val
|
4994
4991
|
|
4995
4992
|
result = s(:array, arg).line arg.line
|
4996
|
-
|
4993
|
+
|
4997
4994
|
result
|
4998
4995
|
end
|
4999
4996
|
|
5000
4997
|
def _reduce_277(val, _values, result)
|
5001
4998
|
_, arg = val
|
5002
4999
|
result = s(:array, s(:splat, arg).line(arg.line)).line arg.line
|
5003
|
-
|
5000
|
+
|
5004
5001
|
result
|
5005
5002
|
end
|
5006
5003
|
|
5007
5004
|
def _reduce_278(val, _values, result)
|
5008
5005
|
args, _, id = val
|
5009
5006
|
result = self.list_append args, id
|
5010
|
-
|
5007
|
+
|
5011
5008
|
result
|
5012
5009
|
end
|
5013
5010
|
|
5014
5011
|
def _reduce_279(val, _values, result)
|
5015
|
-
result = lexer.lineno
|
5012
|
+
result = lexer.lineno
|
5016
5013
|
result
|
5017
5014
|
end
|
5018
5015
|
|
5019
5016
|
def _reduce_280(val, _values, result)
|
5020
5017
|
args, _, _, line, id = val
|
5021
5018
|
result = self.list_append args, s(:splat, id).line(line)
|
5022
|
-
|
5019
|
+
|
5023
5020
|
result
|
5024
5021
|
end
|
5025
5022
|
|
5026
5023
|
def _reduce_281(val, _values, result)
|
5027
5024
|
result = new_masgn_arg val[0]
|
5028
|
-
|
5025
|
+
|
5029
5026
|
result
|
5030
5027
|
end
|
5031
5028
|
|
5032
5029
|
def _reduce_282(val, _values, result)
|
5033
5030
|
result = new_masgn_arg val[0], :wrap
|
5034
|
-
|
5031
|
+
|
5035
5032
|
result
|
5036
5033
|
end
|
5037
5034
|
|
5038
5035
|
def _reduce_283(val, _values, result)
|
5039
5036
|
result = val[0] << val[2]
|
5040
|
-
|
5037
|
+
|
5041
5038
|
result
|
5042
5039
|
end
|
5043
5040
|
|
@@ -5046,14 +5043,14 @@ def _reduce_284(val, _values, result)
|
|
5046
5043
|
# TODO: make all tXXXX terminals include lexer.lineno
|
5047
5044
|
arg, _, _, splat = val
|
5048
5045
|
result = self.arg_concat arg, splat
|
5049
|
-
|
5046
|
+
|
5050
5047
|
result
|
5051
5048
|
end
|
5052
5049
|
|
5053
5050
|
def _reduce_285(val, _values, result)
|
5054
5051
|
_, arg = val
|
5055
5052
|
result = s(:splat, arg).line arg.line
|
5056
|
-
|
5053
|
+
|
5057
5054
|
result
|
5058
5055
|
end
|
5059
5056
|
|
@@ -5080,7 +5077,7 @@ end
|
|
5080
5077
|
def _reduce_296(val, _values, result)
|
5081
5078
|
msg, = val
|
5082
5079
|
result = new_call nil, msg.to_sym
|
5083
|
-
|
5080
|
+
|
5084
5081
|
result
|
5085
5082
|
end
|
5086
5083
|
|
@@ -5089,7 +5086,7 @@ def _reduce_297(val, _values, result)
|
|
5089
5086
|
# TODO:
|
5090
5087
|
# $<val>1 = cmdarg_stack;
|
5091
5088
|
# CMDARG_SET(0);
|
5092
|
-
|
5089
|
+
|
5093
5090
|
result
|
5094
5091
|
end
|
5095
5092
|
|
@@ -5102,33 +5099,33 @@ def _reduce_298(val, _values, result)
|
|
5102
5099
|
end
|
5103
5100
|
|
5104
5101
|
result.line = val[1]
|
5105
|
-
|
5102
|
+
|
5106
5103
|
result
|
5107
5104
|
end
|
5108
5105
|
|
5109
5106
|
def _reduce_299(val, _values, result)
|
5110
5107
|
lexer.lex_state = EXPR_ENDARG
|
5111
5108
|
result = lexer.lineno
|
5112
|
-
|
5109
|
+
|
5113
5110
|
result
|
5114
5111
|
end
|
5115
5112
|
|
5116
5113
|
def _reduce_300(val, _values, result)
|
5117
5114
|
_, line, _ = val
|
5118
5115
|
result = s(:begin).line line
|
5119
|
-
|
5116
|
+
|
5120
5117
|
result
|
5121
5118
|
end
|
5122
5119
|
|
5123
5120
|
def _reduce_301(val, _values, result)
|
5124
5121
|
result = lexer.cmdarg.store false
|
5125
|
-
|
5122
|
+
|
5126
5123
|
result
|
5127
5124
|
end
|
5128
5125
|
|
5129
5126
|
def _reduce_302(val, _values, result)
|
5130
5127
|
lexer.lex_state = EXPR_ENDARG
|
5131
|
-
|
5128
|
+
|
5132
5129
|
result
|
5133
5130
|
end
|
5134
5131
|
|
@@ -5137,7 +5134,7 @@ def _reduce_303(val, _values, result)
|
|
5137
5134
|
warning "(...) interpreted as grouped expression"
|
5138
5135
|
lexer.cmdarg.restore cmdarg
|
5139
5136
|
result = stmt
|
5140
|
-
|
5137
|
+
|
5141
5138
|
result
|
5142
5139
|
end
|
5143
5140
|
|
@@ -5146,7 +5143,7 @@ def _reduce_304(val, _values, result)
|
|
5146
5143
|
result = stmt
|
5147
5144
|
result ||= s(:nil).line lexer.lineno
|
5148
5145
|
result.paren = true
|
5149
|
-
|
5146
|
+
|
5150
5147
|
result
|
5151
5148
|
end
|
5152
5149
|
|
@@ -5154,7 +5151,7 @@ def _reduce_305(val, _values, result)
|
|
5154
5151
|
expr, _, id = val
|
5155
5152
|
|
5156
5153
|
result = s(:colon2, expr, id.to_sym).line expr.line
|
5157
|
-
|
5154
|
+
|
5158
5155
|
result
|
5159
5156
|
end
|
5160
5157
|
|
@@ -5162,12 +5159,12 @@ def _reduce_306(val, _values, result)
|
|
5162
5159
|
_, id = val
|
5163
5160
|
|
5164
5161
|
result = s(:colon3, id.to_sym).line lexer.lineno
|
5165
|
-
|
5162
|
+
|
5166
5163
|
result
|
5167
5164
|
end
|
5168
5165
|
|
5169
5166
|
def _reduce_307(val, _values, result)
|
5170
|
-
result = lexer.lineno
|
5167
|
+
result = lexer.lineno
|
5171
5168
|
result
|
5172
5169
|
end
|
5173
5170
|
|
@@ -5176,44 +5173,44 @@ def _reduce_308(val, _values, result)
|
|
5176
5173
|
result = args || s(:array)
|
5177
5174
|
result.sexp_type = :array # aref_args is :args
|
5178
5175
|
result.line line
|
5179
|
-
|
5176
|
+
|
5180
5177
|
result
|
5181
5178
|
end
|
5182
5179
|
|
5183
5180
|
def _reduce_309(val, _values, result)
|
5184
5181
|
result = self.lexer.lineno
|
5185
|
-
|
5182
|
+
|
5186
5183
|
result
|
5187
5184
|
end
|
5188
5185
|
|
5189
5186
|
def _reduce_310(val, _values, result)
|
5190
5187
|
result = new_hash val
|
5191
|
-
|
5188
|
+
|
5192
5189
|
result
|
5193
5190
|
end
|
5194
5191
|
|
5195
5192
|
def _reduce_311(val, _values, result)
|
5196
5193
|
(_, line), = val
|
5197
5194
|
result = s(:return).line line
|
5198
|
-
|
5195
|
+
|
5199
5196
|
result
|
5200
5197
|
end
|
5201
5198
|
|
5202
5199
|
def _reduce_312(val, _values, result)
|
5203
5200
|
result = new_yield val[2]
|
5204
|
-
|
5201
|
+
|
5205
5202
|
result
|
5206
5203
|
end
|
5207
5204
|
|
5208
5205
|
def _reduce_313(val, _values, result)
|
5209
5206
|
result = new_yield
|
5210
|
-
|
5207
|
+
|
5211
5208
|
result
|
5212
5209
|
end
|
5213
5210
|
|
5214
5211
|
def _reduce_314(val, _values, result)
|
5215
5212
|
result = new_yield
|
5216
|
-
|
5213
|
+
|
5217
5214
|
result
|
5218
5215
|
end
|
5219
5216
|
|
@@ -5221,20 +5218,20 @@ def _reduce_315(val, _values, result)
|
|
5221
5218
|
(_, line), _, _, arg, _ = val
|
5222
5219
|
|
5223
5220
|
result = s(:defined, arg).line line
|
5224
|
-
|
5221
|
+
|
5225
5222
|
result
|
5226
5223
|
end
|
5227
5224
|
|
5228
5225
|
def _reduce_316(val, _values, result)
|
5229
5226
|
_, _, lhs, _ = val
|
5230
5227
|
result = new_call lhs, :"!"
|
5231
|
-
|
5228
|
+
|
5232
5229
|
result
|
5233
5230
|
end
|
5234
5231
|
|
5235
5232
|
def _reduce_317(val, _values, result)
|
5236
5233
|
debug20 14, val, result
|
5237
|
-
|
5234
|
+
|
5238
5235
|
result
|
5239
5236
|
end
|
5240
5237
|
|
@@ -5244,7 +5241,7 @@ def _reduce_318(val, _values, result)
|
|
5244
5241
|
iter.insert 1, call
|
5245
5242
|
result = iter
|
5246
5243
|
# FIX: probably not: call.line = iter.line
|
5247
|
-
|
5244
|
+
|
5248
5245
|
result
|
5249
5246
|
end
|
5250
5247
|
|
@@ -5255,68 +5252,68 @@ def _reduce_320(val, _values, result)
|
|
5255
5252
|
block_dup_check call, iter
|
5256
5253
|
iter.insert 1, call # FIX
|
5257
5254
|
result = iter
|
5258
|
-
|
5255
|
+
|
5259
5256
|
result
|
5260
5257
|
end
|
5261
5258
|
|
5262
5259
|
def _reduce_321(val, _values, result)
|
5263
5260
|
result = val[1] # TODO: fix lineno
|
5264
|
-
|
5261
|
+
|
5265
5262
|
result
|
5266
5263
|
end
|
5267
5264
|
|
5268
5265
|
def _reduce_322(val, _values, result)
|
5269
5266
|
_, c, _, t, f, _ = val
|
5270
5267
|
result = new_if c, t, f
|
5271
|
-
|
5268
|
+
|
5272
5269
|
result
|
5273
5270
|
end
|
5274
5271
|
|
5275
5272
|
def _reduce_323(val, _values, result)
|
5276
5273
|
_, c, _, t, f, _ = val
|
5277
5274
|
result = new_if c, f, t
|
5278
|
-
|
5275
|
+
|
5279
5276
|
result
|
5280
5277
|
end
|
5281
5278
|
|
5282
5279
|
def _reduce_324(val, _values, result)
|
5283
5280
|
_, cond, body, _ = val
|
5284
5281
|
result = new_while body, cond, true
|
5285
|
-
|
5282
|
+
|
5286
5283
|
result
|
5287
5284
|
end
|
5288
5285
|
|
5289
5286
|
def _reduce_325(val, _values, result)
|
5290
5287
|
_, cond, body, _ = val
|
5291
5288
|
result = new_until body, cond, true
|
5292
|
-
|
5289
|
+
|
5293
5290
|
result
|
5294
5291
|
end
|
5295
5292
|
|
5296
5293
|
def _reduce_326(val, _values, result)
|
5297
5294
|
(_, line), expr, _, body, _ = val
|
5298
5295
|
result = new_case expr, body, line
|
5299
|
-
|
5296
|
+
|
5300
5297
|
result
|
5301
5298
|
end
|
5302
5299
|
|
5303
5300
|
def _reduce_327(val, _values, result)
|
5304
5301
|
(_, line), _, body, _ = val
|
5305
5302
|
result = new_case nil, body, line
|
5306
|
-
|
5303
|
+
|
5307
5304
|
result
|
5308
5305
|
end
|
5309
5306
|
|
5310
5307
|
def _reduce_328(val, _values, result)
|
5311
5308
|
_, var, _, iter, body, _ = val
|
5312
5309
|
result = new_for iter, var, body
|
5313
|
-
|
5310
|
+
|
5314
5311
|
result
|
5315
5312
|
end
|
5316
5313
|
|
5317
5314
|
def _reduce_329(val, _values, result)
|
5318
5315
|
result = self.lexer.lineno
|
5319
|
-
|
5316
|
+
|
5320
5317
|
result
|
5321
5318
|
end
|
5322
5319
|
|
@@ -5326,7 +5323,7 @@ def _reduce_330(val, _values, result)
|
|
5326
5323
|
yyerror "class definition in method body"
|
5327
5324
|
end
|
5328
5325
|
self.env.extend
|
5329
|
-
|
5326
|
+
|
5330
5327
|
result
|
5331
5328
|
end
|
5332
5329
|
|
@@ -5334,20 +5331,20 @@ def _reduce_331(val, _values, result)
|
|
5334
5331
|
result = new_class val
|
5335
5332
|
self.env.unextend
|
5336
5333
|
self.lexer.comments # we don't care about comments in the body
|
5337
|
-
|
5334
|
+
|
5338
5335
|
result
|
5339
5336
|
end
|
5340
5337
|
|
5341
5338
|
def _reduce_332(val, _values, result)
|
5342
5339
|
result = self.lexer.lineno
|
5343
|
-
|
5340
|
+
|
5344
5341
|
result
|
5345
5342
|
end
|
5346
5343
|
|
5347
5344
|
def _reduce_333(val, _values, result)
|
5348
5345
|
result = self.in_def
|
5349
5346
|
self.in_def = false
|
5350
|
-
|
5347
|
+
|
5351
5348
|
result
|
5352
5349
|
end
|
5353
5350
|
|
@@ -5355,7 +5352,7 @@ def _reduce_334(val, _values, result)
|
|
5355
5352
|
result = self.in_single
|
5356
5353
|
self.in_single = 0
|
5357
5354
|
self.env.extend
|
5358
|
-
|
5355
|
+
|
5359
5356
|
result
|
5360
5357
|
end
|
5361
5358
|
|
@@ -5363,13 +5360,13 @@ def _reduce_335(val, _values, result)
|
|
5363
5360
|
result = new_sclass val
|
5364
5361
|
self.env.unextend
|
5365
5362
|
self.lexer.comments # we don't care about comments in the body
|
5366
|
-
|
5363
|
+
|
5367
5364
|
result
|
5368
5365
|
end
|
5369
5366
|
|
5370
5367
|
def _reduce_336(val, _values, result)
|
5371
5368
|
result = self.lexer.lineno
|
5372
|
-
|
5369
|
+
|
5373
5370
|
result
|
5374
5371
|
end
|
5375
5372
|
|
@@ -5379,7 +5376,7 @@ def _reduce_337(val, _values, result)
|
|
5379
5376
|
self.in_def or self.in_single > 0
|
5380
5377
|
|
5381
5378
|
self.env.extend
|
5382
|
-
|
5379
|
+
|
5383
5380
|
result
|
5384
5381
|
end
|
5385
5382
|
|
@@ -5387,7 +5384,7 @@ def _reduce_338(val, _values, result)
|
|
5387
5384
|
result = new_module val
|
5388
5385
|
self.env.unextend
|
5389
5386
|
self.lexer.comments # we don't care about comments in the body
|
5390
|
-
|
5387
|
+
|
5391
5388
|
result
|
5392
5389
|
end
|
5393
5390
|
|
@@ -5400,12 +5397,12 @@ def _reduce_339(val, _values, result)
|
|
5400
5397
|
# TODO: local->cmdargs = cmdarg_stack;
|
5401
5398
|
# TODO: port local_push_gen and local_pop_gen
|
5402
5399
|
lexer.cmdarg.stack.replace [false]
|
5403
|
-
|
5400
|
+
|
5404
5401
|
result
|
5405
5402
|
end
|
5406
5403
|
|
5407
5404
|
def _reduce_340(val, _values, result)
|
5408
|
-
result = lexer.lineno
|
5405
|
+
result = lexer.lineno
|
5409
5406
|
result
|
5410
5407
|
end
|
5411
5408
|
|
@@ -5418,14 +5415,14 @@ def _reduce_341(val, _values, result)
|
|
5418
5415
|
self.env.unextend
|
5419
5416
|
self.in_def = in_def
|
5420
5417
|
self.lexer.comments # we don't care about comments in the body
|
5421
|
-
|
5418
|
+
|
5422
5419
|
result
|
5423
5420
|
end
|
5424
5421
|
|
5425
5422
|
def _reduce_342(val, _values, result)
|
5426
5423
|
self.comments.push self.lexer.comments
|
5427
5424
|
lexer.lex_state = EXPR_FNAME
|
5428
|
-
|
5425
|
+
|
5429
5426
|
result
|
5430
5427
|
end
|
5431
5428
|
|
@@ -5435,7 +5432,7 @@ def _reduce_343(val, _values, result)
|
|
5435
5432
|
lexer.lex_state = EXPR_ENDFN # force for args
|
5436
5433
|
result = [lexer.lineno, self.lexer.cmdarg.stack.dup]
|
5437
5434
|
lexer.cmdarg.stack.replace [false]
|
5438
|
-
|
5435
|
+
|
5439
5436
|
result
|
5440
5437
|
end
|
5441
5438
|
|
@@ -5448,41 +5445,41 @@ def _reduce_344(val, _values, result)
|
|
5448
5445
|
self.env.unextend
|
5449
5446
|
self.in_single -= 1
|
5450
5447
|
self.lexer.comments # we don't care about comments in the body
|
5451
|
-
|
5448
|
+
|
5452
5449
|
result
|
5453
5450
|
end
|
5454
5451
|
|
5455
5452
|
def _reduce_345(val, _values, result)
|
5456
5453
|
(_, line), = val
|
5457
5454
|
result = s(:break).line line
|
5458
|
-
|
5455
|
+
|
5459
5456
|
result
|
5460
5457
|
end
|
5461
5458
|
|
5462
5459
|
def _reduce_346(val, _values, result)
|
5463
5460
|
(_, line), = val
|
5464
5461
|
result = s(:next).line line
|
5465
|
-
|
5462
|
+
|
5466
5463
|
result
|
5467
5464
|
end
|
5468
5465
|
|
5469
5466
|
def _reduce_347(val, _values, result)
|
5470
5467
|
(_, line), = val
|
5471
5468
|
result = s(:redo).line line
|
5472
|
-
|
5469
|
+
|
5473
5470
|
result
|
5474
5471
|
end
|
5475
5472
|
|
5476
5473
|
def _reduce_348(val, _values, result)
|
5477
5474
|
(_, line), = val
|
5478
5475
|
result = s(:retry).line line
|
5479
|
-
|
5476
|
+
|
5480
5477
|
result
|
5481
5478
|
end
|
5482
5479
|
|
5483
5480
|
def _reduce_349(val, _values, result)
|
5484
5481
|
result = value_expr(val[0])
|
5485
|
-
|
5482
|
+
|
5486
5483
|
result
|
5487
5484
|
end
|
5488
5485
|
|
@@ -5540,7 +5537,7 @@ def _reduce_375(val, _values, result)
|
|
5540
5537
|
(_, line), c, _, t, rest = val
|
5541
5538
|
|
5542
5539
|
result = s(:if, c, t, rest).line line
|
5543
|
-
|
5540
|
+
|
5544
5541
|
result
|
5545
5542
|
end
|
5546
5543
|
|
@@ -5548,7 +5545,7 @@ end
|
|
5548
5545
|
|
5549
5546
|
def _reduce_377(val, _values, result)
|
5550
5547
|
result = val[1]
|
5551
|
-
|
5548
|
+
|
5552
5549
|
result
|
5553
5550
|
end
|
5554
5551
|
|
@@ -5556,7 +5553,7 @@ end
|
|
5556
5553
|
|
5557
5554
|
def _reduce_379(val, _values, result)
|
5558
5555
|
val[0].delete_at 1 if val[0][1].nil? # HACK
|
5559
|
-
|
5556
|
+
|
5560
5557
|
result
|
5561
5558
|
end
|
5562
5559
|
|
@@ -5564,7 +5561,7 @@ end
|
|
5564
5561
|
|
5565
5562
|
def _reduce_381(val, _values, result)
|
5566
5563
|
result = val[1]
|
5567
|
-
|
5564
|
+
|
5568
5565
|
result
|
5569
5566
|
end
|
5570
5567
|
|
@@ -5572,13 +5569,13 @@ def _reduce_382(val, _values, result)
|
|
5572
5569
|
sym, = val
|
5573
5570
|
|
5574
5571
|
result = s(:array, sym).line lexer.lineno
|
5575
|
-
|
5572
|
+
|
5576
5573
|
result
|
5577
5574
|
end
|
5578
5575
|
|
5579
5576
|
def _reduce_383(val, _values, result)
|
5580
5577
|
result = list_append val[0], val[2]
|
5581
|
-
|
5578
|
+
|
5582
5579
|
result
|
5583
5580
|
end
|
5584
5581
|
|
@@ -5586,7 +5583,7 @@ def _reduce_384(val, _values, result)
|
|
5586
5583
|
args, = val
|
5587
5584
|
|
5588
5585
|
result = block_var args
|
5589
|
-
|
5586
|
+
|
5590
5587
|
result
|
5591
5588
|
end
|
5592
5589
|
|
@@ -5594,7 +5591,7 @@ def _reduce_385(val, _values, result)
|
|
5594
5591
|
args, _, _, splat = val
|
5595
5592
|
|
5596
5593
|
result = block_var args, "*#{splat}".to_sym
|
5597
|
-
|
5594
|
+
|
5598
5595
|
result
|
5599
5596
|
end
|
5600
5597
|
|
@@ -5602,7 +5599,7 @@ def _reduce_386(val, _values, result)
|
|
5602
5599
|
args, _, _, splat, _, args2 = val
|
5603
5600
|
|
5604
5601
|
result = block_var args, "*#{splat}".to_sym, args2
|
5605
|
-
|
5602
|
+
|
5606
5603
|
result
|
5607
5604
|
end
|
5608
5605
|
|
@@ -5610,7 +5607,7 @@ def _reduce_387(val, _values, result)
|
|
5610
5607
|
args, _, _ = val
|
5611
5608
|
|
5612
5609
|
result = block_var args, :*
|
5613
|
-
|
5610
|
+
|
5614
5611
|
result
|
5615
5612
|
end
|
5616
5613
|
|
@@ -5618,7 +5615,7 @@ def _reduce_388(val, _values, result)
|
|
5618
5615
|
args, _, _, _, args2 = val
|
5619
5616
|
|
5620
5617
|
result = block_var args, :*, args2
|
5621
|
-
|
5618
|
+
|
5622
5619
|
result
|
5623
5620
|
end
|
5624
5621
|
|
@@ -5626,7 +5623,7 @@ def _reduce_389(val, _values, result)
|
|
5626
5623
|
_, splat = val
|
5627
5624
|
|
5628
5625
|
result = block_var :"*#{splat}"
|
5629
|
-
|
5626
|
+
|
5630
5627
|
result
|
5631
5628
|
end
|
5632
5629
|
|
@@ -5634,13 +5631,13 @@ def _reduce_390(val, _values, result)
|
|
5634
5631
|
_, splat, _, args = val
|
5635
5632
|
|
5636
5633
|
result = block_var :"*#{splat}", args
|
5637
|
-
|
5634
|
+
|
5638
5635
|
result
|
5639
5636
|
end
|
5640
5637
|
|
5641
5638
|
def _reduce_391(val, _values, result)
|
5642
5639
|
result = block_var :*
|
5643
|
-
|
5640
|
+
|
5644
5641
|
result
|
5645
5642
|
end
|
5646
5643
|
|
@@ -5648,25 +5645,25 @@ def _reduce_392(val, _values, result)
|
|
5648
5645
|
_, _, args = val
|
5649
5646
|
|
5650
5647
|
result = block_var :*, args
|
5651
|
-
|
5648
|
+
|
5652
5649
|
result
|
5653
5650
|
end
|
5654
5651
|
|
5655
5652
|
def _reduce_393(val, _values, result)
|
5656
5653
|
result = call_args val
|
5657
|
-
|
5654
|
+
|
5658
5655
|
result
|
5659
5656
|
end
|
5660
5657
|
|
5661
5658
|
def _reduce_394(val, _values, result)
|
5662
5659
|
result = call_args val
|
5663
|
-
|
5660
|
+
|
5664
5661
|
result
|
5665
5662
|
end
|
5666
5663
|
|
5667
5664
|
def _reduce_395(val, _values, result)
|
5668
5665
|
result = call_args val
|
5669
|
-
|
5666
|
+
|
5670
5667
|
result
|
5671
5668
|
end
|
5672
5669
|
|
@@ -5674,13 +5671,13 @@ def _reduce_396(val, _values, result)
|
|
5674
5671
|
line = lexer.lineno
|
5675
5672
|
result = call_args val # TODO: push line down
|
5676
5673
|
result.line line
|
5677
|
-
|
5674
|
+
|
5678
5675
|
result
|
5679
5676
|
end
|
5680
5677
|
|
5681
5678
|
def _reduce_397(val, _values, result)
|
5682
5679
|
result = args val
|
5683
|
-
|
5680
|
+
|
5684
5681
|
result
|
5685
5682
|
end
|
5686
5683
|
|
@@ -5688,122 +5685,122 @@ end
|
|
5688
5685
|
|
5689
5686
|
def _reduce_399(val, _values, result)
|
5690
5687
|
result = args val
|
5691
|
-
|
5688
|
+
|
5692
5689
|
result
|
5693
5690
|
end
|
5694
5691
|
|
5695
5692
|
def _reduce_400(val, _values, result)
|
5696
5693
|
result = args val
|
5697
|
-
|
5694
|
+
|
5698
5695
|
result
|
5699
5696
|
end
|
5700
5697
|
|
5701
5698
|
def _reduce_401(val, _values, result)
|
5702
5699
|
result = args val
|
5703
|
-
|
5700
|
+
|
5704
5701
|
result
|
5705
5702
|
end
|
5706
5703
|
|
5707
5704
|
def _reduce_402(val, _values, result)
|
5708
5705
|
result = args val
|
5709
|
-
|
5706
|
+
|
5710
5707
|
result
|
5711
5708
|
end
|
5712
5709
|
|
5713
5710
|
def _reduce_403(val, _values, result)
|
5714
5711
|
result = args val
|
5715
|
-
|
5712
|
+
|
5716
5713
|
result
|
5717
5714
|
end
|
5718
5715
|
|
5719
5716
|
def _reduce_404(val, _values, result)
|
5720
5717
|
result = args(val) << nil
|
5721
|
-
|
5718
|
+
|
5722
5719
|
result
|
5723
5720
|
end
|
5724
5721
|
|
5725
5722
|
def _reduce_405(val, _values, result)
|
5726
5723
|
result = args val
|
5727
|
-
|
5724
|
+
|
5728
5725
|
result
|
5729
5726
|
end
|
5730
5727
|
|
5731
5728
|
def _reduce_406(val, _values, result)
|
5732
5729
|
result = args val
|
5733
|
-
|
5730
|
+
|
5734
5731
|
result
|
5735
5732
|
end
|
5736
5733
|
|
5737
5734
|
def _reduce_407(val, _values, result)
|
5738
5735
|
result = args val
|
5739
|
-
|
5736
|
+
|
5740
5737
|
result
|
5741
5738
|
end
|
5742
5739
|
|
5743
5740
|
def _reduce_408(val, _values, result)
|
5744
5741
|
result = args val
|
5745
|
-
|
5742
|
+
|
5746
5743
|
result
|
5747
5744
|
end
|
5748
5745
|
|
5749
5746
|
def _reduce_409(val, _values, result)
|
5750
5747
|
result = args val
|
5751
|
-
|
5748
|
+
|
5752
5749
|
result
|
5753
5750
|
end
|
5754
5751
|
|
5755
5752
|
def _reduce_410(val, _values, result)
|
5756
5753
|
result = args val
|
5757
|
-
|
5754
|
+
|
5758
5755
|
result
|
5759
5756
|
end
|
5760
5757
|
|
5761
5758
|
def _reduce_411(val, _values, result)
|
5762
5759
|
result = args val
|
5763
|
-
|
5760
|
+
|
5764
5761
|
result
|
5765
5762
|
end
|
5766
5763
|
|
5767
5764
|
def _reduce_412(val, _values, result)
|
5768
5765
|
result = args val
|
5769
|
-
|
5766
|
+
|
5770
5767
|
result
|
5771
5768
|
end
|
5772
5769
|
|
5773
5770
|
def _reduce_413(val, _values, result)
|
5774
5771
|
result = args val
|
5775
|
-
|
5772
|
+
|
5776
5773
|
result
|
5777
5774
|
end
|
5778
5775
|
|
5779
5776
|
def _reduce_414(val, _values, result)
|
5780
|
-
result = 0
|
5777
|
+
result = 0
|
5781
5778
|
result
|
5782
5779
|
end
|
5783
5780
|
|
5784
5781
|
def _reduce_415(val, _values, result)
|
5785
5782
|
self.lexer.command_start = true
|
5786
|
-
|
5783
|
+
|
5787
5784
|
result
|
5788
5785
|
end
|
5789
5786
|
|
5790
5787
|
def _reduce_416(val, _values, result)
|
5791
5788
|
# TODO: current_arg = 0
|
5792
5789
|
result = args val
|
5793
|
-
|
5790
|
+
|
5794
5791
|
result
|
5795
5792
|
end
|
5796
5793
|
|
5797
5794
|
def _reduce_417(val, _values, result)
|
5798
5795
|
result = s(:args).line lexer.lineno
|
5799
|
-
|
5796
|
+
|
5800
5797
|
result
|
5801
5798
|
end
|
5802
5799
|
|
5803
5800
|
def _reduce_418(val, _values, result)
|
5804
5801
|
# TODO: current_arg = 0
|
5805
5802
|
result = args val
|
5806
|
-
|
5803
|
+
|
5807
5804
|
result
|
5808
5805
|
end
|
5809
5806
|
|
@@ -5811,19 +5808,19 @@ end
|
|
5811
5808
|
|
5812
5809
|
def _reduce_420(val, _values, result)
|
5813
5810
|
result = args val
|
5814
|
-
|
5811
|
+
|
5815
5812
|
result
|
5816
5813
|
end
|
5817
5814
|
|
5818
5815
|
def _reduce_421(val, _values, result)
|
5819
5816
|
result = args val
|
5820
|
-
|
5817
|
+
|
5821
5818
|
result
|
5822
5819
|
end
|
5823
5820
|
|
5824
5821
|
def _reduce_422(val, _values, result)
|
5825
5822
|
result = args val
|
5826
|
-
|
5823
|
+
|
5827
5824
|
result
|
5828
5825
|
end
|
5829
5826
|
|
@@ -5831,7 +5828,7 @@ def _reduce_423(val, _values, result)
|
|
5831
5828
|
id, = val
|
5832
5829
|
line = lexer.lineno
|
5833
5830
|
result = s(:shadow, id.to_sym).line line
|
5834
|
-
|
5831
|
+
|
5835
5832
|
result
|
5836
5833
|
end
|
5837
5834
|
|
@@ -5842,13 +5839,13 @@ def _reduce_425(val, _values, result)
|
|
5842
5839
|
result = [lexer.lineno, lexer.lpar_beg]
|
5843
5840
|
lexer.paren_nest += 1
|
5844
5841
|
lexer.lpar_beg = lexer.paren_nest
|
5845
|
-
|
5842
|
+
|
5846
5843
|
result
|
5847
5844
|
end
|
5848
5845
|
|
5849
5846
|
def _reduce_426(val, _values, result)
|
5850
5847
|
result = lexer.cmdarg.store(false)
|
5851
|
-
|
5848
|
+
|
5852
5849
|
result
|
5853
5850
|
end
|
5854
5851
|
|
@@ -5863,39 +5860,39 @@ def _reduce_427(val, _values, result)
|
|
5863
5860
|
result = new_iter call, args, body
|
5864
5861
|
result.line = line
|
5865
5862
|
self.env.unextend
|
5866
|
-
|
5863
|
+
|
5867
5864
|
result
|
5868
5865
|
end
|
5869
5866
|
|
5870
5867
|
def _reduce_428(val, _values, result)
|
5871
5868
|
result = args val
|
5872
|
-
|
5869
|
+
|
5873
5870
|
result
|
5874
5871
|
end
|
5875
5872
|
|
5876
5873
|
def _reduce_429(val, _values, result)
|
5877
5874
|
result = val[0]
|
5878
5875
|
result = 0 if result == s(:args)
|
5879
|
-
|
5876
|
+
|
5880
5877
|
result
|
5881
5878
|
end
|
5882
5879
|
|
5883
5880
|
def _reduce_430(val, _values, result)
|
5884
5881
|
result = val[1]
|
5885
|
-
|
5882
|
+
|
5886
5883
|
result
|
5887
5884
|
end
|
5888
5885
|
|
5889
5886
|
def _reduce_431(val, _values, result)
|
5890
5887
|
result = val[1]
|
5891
|
-
|
5888
|
+
|
5892
5889
|
result
|
5893
5890
|
end
|
5894
5891
|
|
5895
5892
|
def _reduce_432(val, _values, result)
|
5896
5893
|
(_, line), iter, _ = val
|
5897
5894
|
result = iter.line line
|
5898
|
-
|
5895
|
+
|
5899
5896
|
result
|
5900
5897
|
end
|
5901
5898
|
|
@@ -5913,13 +5910,13 @@ def _reduce_433(val, _values, result)
|
|
5913
5910
|
|
5914
5911
|
result = blk
|
5915
5912
|
result.insert 1, cmd
|
5916
|
-
|
5913
|
+
|
5917
5914
|
result
|
5918
5915
|
end
|
5919
5916
|
|
5920
5917
|
def _reduce_434(val, _values, result)
|
5921
5918
|
result = new_call val[0], val[2].to_sym, val[3]
|
5922
|
-
|
5919
|
+
|
5923
5920
|
result
|
5924
5921
|
end
|
5925
5922
|
|
@@ -5930,7 +5927,7 @@ def _reduce_435(val, _values, result)
|
|
5930
5927
|
iter2.insert 1, call
|
5931
5928
|
|
5932
5929
|
result = iter2
|
5933
|
-
|
5930
|
+
|
5934
5931
|
result
|
5935
5932
|
end
|
5936
5933
|
|
@@ -5941,13 +5938,13 @@ def _reduce_436(val, _values, result)
|
|
5941
5938
|
iter2.insert 1, call
|
5942
5939
|
|
5943
5940
|
result = iter2
|
5944
|
-
|
5941
|
+
|
5945
5942
|
result
|
5946
5943
|
end
|
5947
5944
|
|
5948
5945
|
def _reduce_437(val, _values, result)
|
5949
5946
|
result = self.lexer.lineno
|
5950
|
-
|
5947
|
+
|
5951
5948
|
result
|
5952
5949
|
end
|
5953
5950
|
|
@@ -5956,62 +5953,62 @@ def _reduce_438(val, _values, result)
|
|
5956
5953
|
|
5957
5954
|
result = call.concat args.sexp_body if args
|
5958
5955
|
result.line lineno
|
5959
|
-
|
5956
|
+
|
5960
5957
|
result
|
5961
5958
|
end
|
5962
5959
|
|
5963
5960
|
def _reduce_439(val, _values, result)
|
5964
5961
|
result = new_call val[0], val[2].to_sym, val[3], val[1]
|
5965
|
-
|
5962
|
+
|
5966
5963
|
result
|
5967
5964
|
end
|
5968
5965
|
|
5969
5966
|
def _reduce_440(val, _values, result)
|
5970
5967
|
result = new_call val[0], val[2].to_sym, val[3]
|
5971
|
-
|
5968
|
+
|
5972
5969
|
result
|
5973
5970
|
end
|
5974
5971
|
|
5975
5972
|
def _reduce_441(val, _values, result)
|
5976
5973
|
result = new_call val[0], val[2].to_sym
|
5977
|
-
|
5974
|
+
|
5978
5975
|
result
|
5979
5976
|
end
|
5980
5977
|
|
5981
5978
|
def _reduce_442(val, _values, result)
|
5982
5979
|
result = new_call val[0], :call, val[2], val[1]
|
5983
|
-
|
5980
|
+
|
5984
5981
|
result
|
5985
5982
|
end
|
5986
5983
|
|
5987
5984
|
def _reduce_443(val, _values, result)
|
5988
5985
|
result = new_call val[0], :call, val[2]
|
5989
|
-
|
5986
|
+
|
5990
5987
|
result
|
5991
5988
|
end
|
5992
5989
|
|
5993
5990
|
def _reduce_444(val, _values, result)
|
5994
5991
|
result = new_super val[1]
|
5995
|
-
|
5992
|
+
|
5996
5993
|
result
|
5997
5994
|
end
|
5998
5995
|
|
5999
5996
|
def _reduce_445(val, _values, result)
|
6000
5997
|
result = s(:zsuper).line lexer.lineno
|
6001
|
-
|
5998
|
+
|
6002
5999
|
result
|
6003
6000
|
end
|
6004
6001
|
|
6005
6002
|
def _reduce_446(val, _values, result)
|
6006
6003
|
result = new_aref val
|
6007
|
-
|
6004
|
+
|
6008
6005
|
result
|
6009
6006
|
end
|
6010
6007
|
|
6011
6008
|
def _reduce_447(val, _values, result)
|
6012
6009
|
self.env.extend :dynamic
|
6013
6010
|
result = self.lexer.lineno
|
6014
|
-
|
6011
|
+
|
6015
6012
|
result
|
6016
6013
|
end
|
6017
6014
|
|
@@ -6022,14 +6019,14 @@ def _reduce_448(val, _values, result)
|
|
6022
6019
|
result.line = line
|
6023
6020
|
|
6024
6021
|
self.env.unextend
|
6025
|
-
|
6022
|
+
|
6026
6023
|
result
|
6027
6024
|
end
|
6028
6025
|
|
6029
6026
|
def _reduce_449(val, _values, result)
|
6030
6027
|
self.env.extend :dynamic
|
6031
6028
|
result = self.lexer.lineno
|
6032
|
-
|
6029
|
+
|
6033
6030
|
result
|
6034
6031
|
end
|
6035
6032
|
|
@@ -6040,17 +6037,17 @@ def _reduce_450(val, _values, result)
|
|
6040
6037
|
result.line = line
|
6041
6038
|
|
6042
6039
|
self.env.unextend
|
6043
|
-
|
6040
|
+
|
6044
6041
|
result
|
6045
6042
|
end
|
6046
6043
|
|
6047
6044
|
def _reduce_451(val, _values, result)
|
6048
|
-
self.env.extend :dynamic; result = self.lexer.lineno
|
6045
|
+
self.env.extend :dynamic; result = self.lexer.lineno
|
6049
6046
|
result
|
6050
6047
|
end
|
6051
6048
|
|
6052
6049
|
def _reduce_452(val, _values, result)
|
6053
|
-
result = lexer.cmdarg.store(false)
|
6050
|
+
result = lexer.cmdarg.store(false)
|
6054
6051
|
result
|
6055
6052
|
end
|
6056
6053
|
|
@@ -6061,17 +6058,17 @@ def _reduce_453(val, _values, result)
|
|
6061
6058
|
self.env.unextend
|
6062
6059
|
lexer.cmdarg.restore cmdarg
|
6063
6060
|
lexer.cmdarg.pop # because of: cmdarg_stack >> 1 ?
|
6064
|
-
|
6061
|
+
|
6065
6062
|
result
|
6066
6063
|
end
|
6067
6064
|
|
6068
6065
|
def _reduce_454(val, _values, result)
|
6069
|
-
self.env.extend :dynamic; result = self.lexer.lineno
|
6066
|
+
self.env.extend :dynamic; result = self.lexer.lineno
|
6070
6067
|
result
|
6071
6068
|
end
|
6072
6069
|
|
6073
6070
|
def _reduce_455(val, _values, result)
|
6074
|
-
result = lexer.cmdarg.store(false)
|
6071
|
+
result = lexer.cmdarg.store(false)
|
6075
6072
|
result
|
6076
6073
|
end
|
6077
6074
|
|
@@ -6081,13 +6078,13 @@ def _reduce_456(val, _values, result)
|
|
6081
6078
|
result = new_do_body param, cmpstmt, line
|
6082
6079
|
self.env.unextend
|
6083
6080
|
lexer.cmdarg.restore cmdarg
|
6084
|
-
|
6081
|
+
|
6085
6082
|
result
|
6086
6083
|
end
|
6087
6084
|
|
6088
6085
|
def _reduce_457(val, _values, result)
|
6089
6086
|
result = self.lexer.lineno
|
6090
|
-
|
6087
|
+
|
6091
6088
|
result
|
6092
6089
|
end
|
6093
6090
|
|
@@ -6095,7 +6092,7 @@ def _reduce_458(val, _values, result)
|
|
6095
6092
|
result = new_when(val[2], val[4])
|
6096
6093
|
result.line = val[1]
|
6097
6094
|
result << val[5] if val[5]
|
6098
|
-
|
6095
|
+
|
6099
6096
|
result
|
6100
6097
|
end
|
6101
6098
|
|
@@ -6112,20 +6109,20 @@ def _reduce_461(val, _values, result)
|
|
6112
6109
|
|
6113
6110
|
result = new_resbody(klasses, body)
|
6114
6111
|
result << rest if rest # UGH, rewritten above
|
6115
|
-
|
6112
|
+
|
6116
6113
|
result
|
6117
6114
|
end
|
6118
6115
|
|
6119
6116
|
def _reduce_462(val, _values, result)
|
6120
6117
|
result = nil
|
6121
|
-
|
6118
|
+
|
6122
6119
|
result
|
6123
6120
|
end
|
6124
6121
|
|
6125
6122
|
def _reduce_463(val, _values, result)
|
6126
6123
|
arg, = val
|
6127
6124
|
result = s(:array, arg).line arg.line
|
6128
|
-
|
6125
|
+
|
6129
6126
|
result
|
6130
6127
|
end
|
6131
6128
|
|
@@ -6135,7 +6132,7 @@ end
|
|
6135
6132
|
|
6136
6133
|
def _reduce_466(val, _values, result)
|
6137
6134
|
result = val[1]
|
6138
|
-
|
6135
|
+
|
6139
6136
|
result
|
6140
6137
|
end
|
6141
6138
|
|
@@ -6145,7 +6142,7 @@ def _reduce_468(val, _values, result)
|
|
6145
6142
|
(_, line), body = val
|
6146
6143
|
|
6147
6144
|
result = body || s(:nil).line(line)
|
6148
|
-
|
6145
|
+
|
6149
6146
|
result
|
6150
6147
|
end
|
6151
6148
|
|
@@ -6155,7 +6152,7 @@ def _reduce_470(val, _values, result)
|
|
6155
6152
|
line = lexer.lineno
|
6156
6153
|
result = s(:lit, val[0])
|
6157
6154
|
result.line = line
|
6158
|
-
|
6155
|
+
|
6159
6156
|
result
|
6160
6157
|
end
|
6161
6158
|
|
@@ -6163,7 +6160,7 @@ def _reduce_471(val, _values, result)
|
|
6163
6160
|
line = lexer.lineno
|
6164
6161
|
result = s(:lit, val[0])
|
6165
6162
|
result.line = line
|
6166
|
-
|
6163
|
+
|
6167
6164
|
result
|
6168
6165
|
end
|
6169
6166
|
|
@@ -6173,13 +6170,13 @@ def _reduce_473(val, _values, result)
|
|
6173
6170
|
str, = val
|
6174
6171
|
str = s(:dstr, str.value) if str.sexp_type == :evstr
|
6175
6172
|
result = str
|
6176
|
-
|
6173
|
+
|
6177
6174
|
result
|
6178
6175
|
end
|
6179
6176
|
|
6180
6177
|
def _reduce_474(val, _values, result)
|
6181
6178
|
debug20 23, val, result
|
6182
|
-
|
6179
|
+
|
6183
6180
|
result
|
6184
6181
|
end
|
6185
6182
|
|
@@ -6187,7 +6184,7 @@ end
|
|
6187
6184
|
|
6188
6185
|
def _reduce_476(val, _values, result)
|
6189
6186
|
result = self.literal_concat val[0], val[1]
|
6190
|
-
|
6187
|
+
|
6191
6188
|
result
|
6192
6189
|
end
|
6193
6190
|
|
@@ -6197,50 +6194,50 @@ def _reduce_477(val, _values, result)
|
|
6197
6194
|
str = dedent str if func =~ RubyLexer::STR_FUNC_ICNTNT
|
6198
6195
|
|
6199
6196
|
result = str
|
6200
|
-
|
6197
|
+
|
6201
6198
|
result
|
6202
6199
|
end
|
6203
6200
|
|
6204
6201
|
def _reduce_478(val, _values, result)
|
6205
6202
|
result = new_string val
|
6206
|
-
|
6203
|
+
|
6207
6204
|
result
|
6208
6205
|
end
|
6209
6206
|
|
6210
6207
|
def _reduce_479(val, _values, result)
|
6211
6208
|
result = new_xstring val[1]
|
6212
6209
|
# TODO: dedent?!?! SERIOUSLY?!?
|
6213
|
-
|
6210
|
+
|
6214
6211
|
result
|
6215
6212
|
end
|
6216
6213
|
|
6217
6214
|
def _reduce_480(val, _values, result)
|
6218
6215
|
result = new_regexp val
|
6219
|
-
|
6216
|
+
|
6220
6217
|
result
|
6221
6218
|
end
|
6222
6219
|
|
6223
6220
|
def _reduce_481(val, _values, result)
|
6224
6221
|
result = s(:array).line lexer.lineno
|
6225
|
-
|
6222
|
+
|
6226
6223
|
result
|
6227
6224
|
end
|
6228
6225
|
|
6229
6226
|
def _reduce_482(val, _values, result)
|
6230
6227
|
result = val[1]
|
6231
|
-
|
6228
|
+
|
6232
6229
|
result
|
6233
6230
|
end
|
6234
6231
|
|
6235
6232
|
def _reduce_483(val, _values, result)
|
6236
6233
|
result = new_word_list
|
6237
|
-
|
6234
|
+
|
6238
6235
|
result
|
6239
6236
|
end
|
6240
6237
|
|
6241
6238
|
def _reduce_484(val, _values, result)
|
6242
6239
|
result = val[0].dup << new_word_list_entry(val)
|
6243
|
-
|
6240
|
+
|
6244
6241
|
result
|
6245
6242
|
end
|
6246
6243
|
|
@@ -6248,18 +6245,18 @@ end
|
|
6248
6245
|
|
6249
6246
|
def _reduce_486(val, _values, result)
|
6250
6247
|
result = self.literal_concat val[0], val[1]
|
6251
|
-
|
6248
|
+
|
6252
6249
|
result
|
6253
6250
|
end
|
6254
6251
|
|
6255
6252
|
def _reduce_487(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_488(val, _values, result)
|
6262
|
-
result = lexer.lineno
|
6259
|
+
result = lexer.lineno
|
6263
6260
|
result
|
6264
6261
|
end
|
6265
6262
|
|
@@ -6267,113 +6264,113 @@ def _reduce_489(val, _values, result)
|
|
6267
6264
|
_, line, list, _, = val
|
6268
6265
|
list.line = line
|
6269
6266
|
result = list
|
6270
|
-
|
6267
|
+
|
6271
6268
|
result
|
6272
6269
|
end
|
6273
6270
|
|
6274
6271
|
def _reduce_490(val, _values, result)
|
6275
6272
|
result = new_symbol_list.line lexer.lineno
|
6276
|
-
|
6273
|
+
|
6277
6274
|
result
|
6278
6275
|
end
|
6279
6276
|
|
6280
6277
|
def _reduce_491(val, _values, result)
|
6281
6278
|
list, * = val
|
6282
6279
|
result = list.dup << new_symbol_list_entry(val)
|
6283
|
-
|
6280
|
+
|
6284
6281
|
result
|
6285
6282
|
end
|
6286
6283
|
|
6287
6284
|
def _reduce_492(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_493(val, _values, result)
|
6294
6291
|
result = val[1]
|
6295
|
-
|
6292
|
+
|
6296
6293
|
result
|
6297
6294
|
end
|
6298
6295
|
|
6299
6296
|
def _reduce_494(val, _values, result)
|
6300
6297
|
result = s(:array).line lexer.lineno # FIX
|
6301
|
-
|
6298
|
+
|
6302
6299
|
result
|
6303
6300
|
end
|
6304
6301
|
|
6305
6302
|
def _reduce_495(val, _values, result)
|
6306
6303
|
result = val[1]
|
6307
|
-
|
6304
|
+
|
6308
6305
|
result
|
6309
6306
|
end
|
6310
6307
|
|
6311
6308
|
def _reduce_496(val, _values, result)
|
6312
6309
|
result = new_qword_list
|
6313
|
-
|
6310
|
+
|
6314
6311
|
result
|
6315
6312
|
end
|
6316
6313
|
|
6317
6314
|
def _reduce_497(val, _values, result)
|
6318
6315
|
result = val[0].dup << new_qword_list_entry(val)
|
6319
|
-
|
6316
|
+
|
6320
6317
|
result
|
6321
6318
|
end
|
6322
6319
|
|
6323
6320
|
def _reduce_498(val, _values, result)
|
6324
6321
|
result = new_qsym_list
|
6325
|
-
|
6322
|
+
|
6326
6323
|
result
|
6327
6324
|
end
|
6328
6325
|
|
6329
6326
|
def _reduce_499(val, _values, result)
|
6330
6327
|
result = val[0].dup << new_qsym_list_entry(val)
|
6331
|
-
|
6328
|
+
|
6332
6329
|
result
|
6333
6330
|
end
|
6334
6331
|
|
6335
6332
|
def _reduce_500(val, _values, result)
|
6336
6333
|
result = s(:str, "").line lexer.lineno
|
6337
|
-
|
6334
|
+
|
6338
6335
|
result
|
6339
6336
|
end
|
6340
6337
|
|
6341
6338
|
def _reduce_501(val, _values, result)
|
6342
6339
|
v1, v2 = val
|
6343
6340
|
result = literal_concat v1, v2
|
6344
|
-
|
6341
|
+
|
6345
6342
|
result
|
6346
6343
|
end
|
6347
6344
|
|
6348
6345
|
def _reduce_502(val, _values, result)
|
6349
6346
|
result = nil
|
6350
|
-
|
6347
|
+
|
6351
6348
|
result
|
6352
6349
|
end
|
6353
6350
|
|
6354
6351
|
def _reduce_503(val, _values, result)
|
6355
6352
|
v1, v2 = val
|
6356
6353
|
result = literal_concat v1, v2
|
6357
|
-
|
6354
|
+
|
6358
6355
|
result
|
6359
6356
|
end
|
6360
6357
|
|
6361
6358
|
def _reduce_504(val, _values, result)
|
6362
6359
|
result = nil
|
6363
|
-
|
6360
|
+
|
6364
6361
|
result
|
6365
6362
|
end
|
6366
6363
|
|
6367
6364
|
def _reduce_505(val, _values, result)
|
6368
6365
|
v1, v2 = val
|
6369
6366
|
result = literal_concat v1, v2
|
6370
|
-
|
6367
|
+
|
6371
6368
|
result
|
6372
6369
|
end
|
6373
6370
|
|
6374
6371
|
def _reduce_506(val, _values, result)
|
6375
6372
|
result = new_string val
|
6376
|
-
|
6373
|
+
|
6377
6374
|
result
|
6378
6375
|
end
|
6379
6376
|
|
@@ -6382,7 +6379,7 @@ def _reduce_507(val, _values, result)
|
|
6382
6379
|
|
6383
6380
|
lexer.lex_strterm = nil
|
6384
6381
|
lexer.lex_state = EXPR_BEG
|
6385
|
-
|
6382
|
+
|
6386
6383
|
result
|
6387
6384
|
end
|
6388
6385
|
|
@@ -6390,7 +6387,7 @@ def _reduce_508(val, _values, result)
|
|
6390
6387
|
_, strterm, str = val
|
6391
6388
|
lexer.lex_strterm = strterm
|
6392
6389
|
result = s(:evstr, str).line str.line
|
6393
|
-
|
6390
|
+
|
6394
6391
|
result
|
6395
6392
|
end
|
6396
6393
|
|
@@ -6409,7 +6406,7 @@ def _reduce_509(val, _values, result)
|
|
6409
6406
|
lexer.string_nest = 0
|
6410
6407
|
|
6411
6408
|
lexer.lex_state = EXPR_BEG
|
6412
|
-
|
6409
|
+
|
6413
6410
|
result
|
6414
6411
|
end
|
6415
6412
|
|
@@ -6441,22 +6438,22 @@ def _reduce_510(val, _values, result)
|
|
6441
6438
|
debug20 25
|
6442
6439
|
raise "unknown string body: #{stmt.inspect}"
|
6443
6440
|
end
|
6444
|
-
|
6441
|
+
|
6445
6442
|
result
|
6446
6443
|
end
|
6447
6444
|
|
6448
6445
|
def _reduce_511(val, _values, result)
|
6449
|
-
result = s(:gvar, val[0].to_sym).line lexer.lineno
|
6446
|
+
result = s(:gvar, val[0].to_sym).line lexer.lineno
|
6450
6447
|
result
|
6451
6448
|
end
|
6452
6449
|
|
6453
6450
|
def _reduce_512(val, _values, result)
|
6454
|
-
result = s(:ivar, val[0].to_sym).line lexer.lineno
|
6451
|
+
result = s(:ivar, val[0].to_sym).line lexer.lineno
|
6455
6452
|
result
|
6456
6453
|
end
|
6457
6454
|
|
6458
6455
|
def _reduce_513(val, _values, result)
|
6459
|
-
result = s(:cvar, val[0].to_sym).line lexer.lineno
|
6456
|
+
result = s(:cvar, val[0].to_sym).line lexer.lineno
|
6460
6457
|
result
|
6461
6458
|
end
|
6462
6459
|
|
@@ -6465,13 +6462,13 @@ end
|
|
6465
6462
|
def _reduce_515(val, _values, result)
|
6466
6463
|
lexer.lex_state = EXPR_END
|
6467
6464
|
result = val[1].to_sym
|
6468
|
-
|
6465
|
+
|
6469
6466
|
result
|
6470
6467
|
end
|
6471
6468
|
|
6472
6469
|
def _reduce_516(val, _values, result)
|
6473
6470
|
result = val[0].to_sym
|
6474
|
-
|
6471
|
+
|
6475
6472
|
result
|
6476
6473
|
end
|
6477
6474
|
|
@@ -6500,7 +6497,7 @@ def _reduce_521(val, _values, result)
|
|
6500
6497
|
else
|
6501
6498
|
debug20 26, val, result
|
6502
6499
|
end
|
6503
|
-
|
6500
|
+
|
6504
6501
|
result
|
6505
6502
|
end
|
6506
6503
|
|
@@ -6508,7 +6505,7 @@ end
|
|
6508
6505
|
|
6509
6506
|
def _reduce_523(val, _values, result)
|
6510
6507
|
result = -val[1] # TODO: pt_testcase
|
6511
|
-
|
6508
|
+
|
6512
6509
|
result
|
6513
6510
|
end
|
6514
6511
|
|
@@ -6531,32 +6528,32 @@ end
|
|
6531
6528
|
# reduce 532 omitted
|
6532
6529
|
|
6533
6530
|
def _reduce_533(val, _values, result)
|
6534
|
-
result = s(:nil).line lexer.lineno
|
6531
|
+
result = s(:nil).line lexer.lineno
|
6535
6532
|
result
|
6536
6533
|
end
|
6537
6534
|
|
6538
6535
|
def _reduce_534(val, _values, result)
|
6539
|
-
result = s(:self).line lexer.lineno
|
6536
|
+
result = s(:self).line lexer.lineno
|
6540
6537
|
result
|
6541
6538
|
end
|
6542
6539
|
|
6543
6540
|
def _reduce_535(val, _values, result)
|
6544
|
-
result = s(:true).line lexer.lineno
|
6541
|
+
result = s(:true).line lexer.lineno
|
6545
6542
|
result
|
6546
6543
|
end
|
6547
6544
|
|
6548
6545
|
def _reduce_536(val, _values, result)
|
6549
|
-
result = s(:false).line lexer.lineno
|
6546
|
+
result = s(:false).line lexer.lineno
|
6550
6547
|
result
|
6551
6548
|
end
|
6552
6549
|
|
6553
6550
|
def _reduce_537(val, _values, result)
|
6554
|
-
result = s(:str, self.file).line lexer.lineno
|
6551
|
+
result = s(:str, self.file).line lexer.lineno
|
6555
6552
|
result
|
6556
6553
|
end
|
6557
6554
|
|
6558
6555
|
def _reduce_538(val, _values, result)
|
6559
|
-
result = s(:lit, lexer.lineno).line lexer.lineno
|
6556
|
+
result = s(:lit, lexer.lineno).line lexer.lineno
|
6560
6557
|
result
|
6561
6558
|
end
|
6562
6559
|
|
@@ -6568,63 +6565,63 @@ def _reduce_539(val, _values, result)
|
|
6568
6565
|
else
|
6569
6566
|
s(:str, "Unsupported!").line l
|
6570
6567
|
end
|
6571
|
-
|
6568
|
+
|
6572
6569
|
result
|
6573
6570
|
end
|
6574
6571
|
|
6575
6572
|
def _reduce_540(val, _values, result)
|
6576
6573
|
var = val[0]
|
6577
6574
|
result = Sexp === var ? var : self.gettable(var)
|
6578
|
-
|
6575
|
+
|
6579
6576
|
result
|
6580
6577
|
end
|
6581
6578
|
|
6582
6579
|
def _reduce_541(val, _values, result)
|
6583
6580
|
var = val[0]
|
6584
6581
|
result = Sexp === var ? var : self.gettable(var)
|
6585
|
-
|
6582
|
+
|
6586
6583
|
result
|
6587
6584
|
end
|
6588
6585
|
|
6589
6586
|
def _reduce_542(val, _values, result)
|
6590
6587
|
result = self.assignable val[0]
|
6591
|
-
|
6588
|
+
|
6592
6589
|
result
|
6593
6590
|
end
|
6594
6591
|
|
6595
6592
|
def _reduce_543(val, _values, result)
|
6596
6593
|
result = self.assignable val[0]
|
6597
6594
|
debug20 29, val, result
|
6598
|
-
|
6595
|
+
|
6599
6596
|
result
|
6600
6597
|
end
|
6601
6598
|
|
6602
6599
|
def _reduce_544(val, _values, result)
|
6603
|
-
result = s(:nth_ref, val[0]).line lexer.lineno
|
6600
|
+
result = s(:nth_ref, val[0]).line lexer.lineno
|
6604
6601
|
result
|
6605
6602
|
end
|
6606
6603
|
|
6607
6604
|
def _reduce_545(val, _values, result)
|
6608
|
-
result = s(:back_ref, val[0]).line lexer.lineno
|
6605
|
+
result = s(:back_ref, val[0]).line lexer.lineno
|
6609
6606
|
result
|
6610
6607
|
end
|
6611
6608
|
|
6612
6609
|
def _reduce_546(val, _values, result)
|
6613
6610
|
lexer.lex_state = EXPR_BEG
|
6614
6611
|
lexer.command_start = true
|
6615
|
-
|
6612
|
+
|
6616
6613
|
result
|
6617
6614
|
end
|
6618
6615
|
|
6619
6616
|
def _reduce_547(val, _values, result)
|
6620
6617
|
result = val[2]
|
6621
|
-
|
6618
|
+
|
6622
6619
|
result
|
6623
6620
|
end
|
6624
6621
|
|
6625
6622
|
def _reduce_548(val, _values, result)
|
6626
6623
|
result = nil
|
6627
|
-
|
6624
|
+
|
6628
6625
|
result
|
6629
6626
|
end
|
6630
6627
|
|
@@ -6632,7 +6629,7 @@ def _reduce_549(val, _values, result)
|
|
6632
6629
|
result = val[1]
|
6633
6630
|
self.lexer.lex_state = EXPR_BEG
|
6634
6631
|
self.lexer.command_start = true
|
6635
|
-
|
6632
|
+
|
6636
6633
|
result
|
6637
6634
|
end
|
6638
6635
|
|
@@ -6640,7 +6637,7 @@ def _reduce_550(val, _values, result)
|
|
6640
6637
|
result = self.in_kwarg
|
6641
6638
|
self.in_kwarg = true
|
6642
6639
|
self.lexer.lex_state |= EXPR_LABEL
|
6643
|
-
|
6640
|
+
|
6644
6641
|
result
|
6645
6642
|
end
|
6646
6643
|
|
@@ -6651,25 +6648,25 @@ def _reduce_551(val, _values, result)
|
|
6651
6648
|
result = args
|
6652
6649
|
lexer.lex_state = EXPR_BEG
|
6653
6650
|
lexer.command_start = true
|
6654
|
-
|
6651
|
+
|
6655
6652
|
result
|
6656
6653
|
end
|
6657
6654
|
|
6658
6655
|
def _reduce_552(val, _values, result)
|
6659
6656
|
result = args val
|
6660
|
-
|
6657
|
+
|
6661
6658
|
result
|
6662
6659
|
end
|
6663
6660
|
|
6664
6661
|
def _reduce_553(val, _values, result)
|
6665
6662
|
result = args val
|
6666
|
-
|
6663
|
+
|
6667
6664
|
result
|
6668
6665
|
end
|
6669
6666
|
|
6670
6667
|
def _reduce_554(val, _values, result)
|
6671
6668
|
result = args val
|
6672
|
-
|
6669
|
+
|
6673
6670
|
result
|
6674
6671
|
end
|
6675
6672
|
|
@@ -6677,127 +6674,127 @@ end
|
|
6677
6674
|
|
6678
6675
|
def _reduce_556(val, _values, result)
|
6679
6676
|
result = val[1]
|
6680
|
-
|
6677
|
+
|
6681
6678
|
result
|
6682
6679
|
end
|
6683
6680
|
|
6684
6681
|
def _reduce_557(val, _values, result)
|
6685
6682
|
result = nil
|
6686
|
-
|
6683
|
+
|
6687
6684
|
result
|
6688
6685
|
end
|
6689
6686
|
|
6690
6687
|
def _reduce_558(val, _values, result)
|
6691
6688
|
result = args val
|
6692
|
-
|
6689
|
+
|
6693
6690
|
result
|
6694
6691
|
end
|
6695
6692
|
|
6696
6693
|
def _reduce_559(val, _values, result)
|
6697
6694
|
result = args val
|
6698
|
-
|
6695
|
+
|
6699
6696
|
result
|
6700
6697
|
end
|
6701
6698
|
|
6702
6699
|
def _reduce_560(val, _values, result)
|
6703
6700
|
result = args val
|
6704
|
-
|
6701
|
+
|
6705
6702
|
result
|
6706
6703
|
end
|
6707
6704
|
|
6708
6705
|
def _reduce_561(val, _values, result)
|
6709
6706
|
result = args val
|
6710
|
-
|
6707
|
+
|
6711
6708
|
result
|
6712
6709
|
end
|
6713
6710
|
|
6714
6711
|
def _reduce_562(val, _values, result)
|
6715
6712
|
result = args val
|
6716
|
-
|
6713
|
+
|
6717
6714
|
result
|
6718
6715
|
end
|
6719
6716
|
|
6720
6717
|
def _reduce_563(val, _values, result)
|
6721
6718
|
result = args val
|
6722
|
-
|
6719
|
+
|
6723
6720
|
result
|
6724
6721
|
end
|
6725
6722
|
|
6726
6723
|
def _reduce_564(val, _values, result)
|
6727
6724
|
result = args val
|
6728
|
-
|
6725
|
+
|
6729
6726
|
result
|
6730
6727
|
end
|
6731
6728
|
|
6732
6729
|
def _reduce_565(val, _values, result)
|
6733
6730
|
result = args val
|
6734
|
-
|
6731
|
+
|
6735
6732
|
result
|
6736
6733
|
end
|
6737
6734
|
|
6738
6735
|
def _reduce_566(val, _values, result)
|
6739
6736
|
result = args val
|
6740
|
-
|
6737
|
+
|
6741
6738
|
result
|
6742
6739
|
end
|
6743
6740
|
|
6744
6741
|
def _reduce_567(val, _values, result)
|
6745
6742
|
result = args val
|
6746
|
-
|
6743
|
+
|
6747
6744
|
result
|
6748
6745
|
end
|
6749
6746
|
|
6750
6747
|
def _reduce_568(val, _values, result)
|
6751
6748
|
result = args val
|
6752
|
-
|
6749
|
+
|
6753
6750
|
result
|
6754
6751
|
end
|
6755
6752
|
|
6756
6753
|
def _reduce_569(val, _values, result)
|
6757
6754
|
result = args val
|
6758
|
-
|
6755
|
+
|
6759
6756
|
result
|
6760
6757
|
end
|
6761
6758
|
|
6762
6759
|
def _reduce_570(val, _values, result)
|
6763
6760
|
result = args val
|
6764
|
-
|
6761
|
+
|
6765
6762
|
result
|
6766
6763
|
end
|
6767
6764
|
|
6768
6765
|
def _reduce_571(val, _values, result)
|
6769
6766
|
result = args val
|
6770
|
-
|
6767
|
+
|
6771
6768
|
result
|
6772
6769
|
end
|
6773
6770
|
|
6774
6771
|
def _reduce_572(val, _values, result)
|
6775
6772
|
result = args val
|
6776
|
-
|
6773
|
+
|
6777
6774
|
result
|
6778
6775
|
end
|
6779
6776
|
|
6780
6777
|
def _reduce_573(val, _values, result)
|
6781
6778
|
yyerror "formal argument cannot be a constant"
|
6782
|
-
|
6779
|
+
|
6783
6780
|
result
|
6784
6781
|
end
|
6785
6782
|
|
6786
6783
|
def _reduce_574(val, _values, result)
|
6787
6784
|
yyerror "formal argument cannot be an instance variable"
|
6788
|
-
|
6785
|
+
|
6789
6786
|
result
|
6790
6787
|
end
|
6791
6788
|
|
6792
6789
|
def _reduce_575(val, _values, result)
|
6793
6790
|
yyerror "formal argument cannot be a global variable"
|
6794
|
-
|
6791
|
+
|
6795
6792
|
result
|
6796
6793
|
end
|
6797
6794
|
|
6798
6795
|
def _reduce_576(val, _values, result)
|
6799
6796
|
yyerror "formal argument cannot be a class variable"
|
6800
|
-
|
6797
|
+
|
6801
6798
|
result
|
6802
6799
|
end
|
6803
6800
|
|
@@ -6808,7 +6805,7 @@ def _reduce_578(val, _values, result)
|
|
6808
6805
|
self.env[identifier] = :lvar
|
6809
6806
|
|
6810
6807
|
result = identifier
|
6811
|
-
|
6808
|
+
|
6812
6809
|
result
|
6813
6810
|
end
|
6814
6811
|
|
@@ -6818,7 +6815,7 @@ end
|
|
6818
6815
|
|
6819
6816
|
def _reduce_581(val, _values, result)
|
6820
6817
|
result = val[1]
|
6821
|
-
|
6818
|
+
|
6822
6819
|
result
|
6823
6820
|
end
|
6824
6821
|
|
@@ -6834,7 +6831,7 @@ def _reduce_582(val, _values, result)
|
|
6834
6831
|
debug20 32
|
6835
6832
|
raise "Unknown f_arg type: #{val.inspect}"
|
6836
6833
|
end
|
6837
|
-
|
6834
|
+
|
6838
6835
|
result
|
6839
6836
|
end
|
6840
6837
|
|
@@ -6848,7 +6845,7 @@ def _reduce_583(val, _values, result)
|
|
6848
6845
|
end
|
6849
6846
|
|
6850
6847
|
result << item
|
6851
|
-
|
6848
|
+
|
6852
6849
|
result
|
6853
6850
|
end
|
6854
6851
|
|
@@ -6863,7 +6860,7 @@ def _reduce_585(val, _values, result)
|
|
6863
6860
|
|
6864
6861
|
kwarg = s(:kwarg, identifier, arg).line line
|
6865
6862
|
result = s(:array, kwarg).line line
|
6866
|
-
|
6863
|
+
|
6867
6864
|
result
|
6868
6865
|
end
|
6869
6866
|
|
@@ -6874,7 +6871,7 @@ def _reduce_586(val, _values, result)
|
|
6874
6871
|
self.env[id] = :lvar
|
6875
6872
|
|
6876
6873
|
result = s(:array, s(:kwarg, id).line(line)).line line
|
6877
|
-
|
6874
|
+
|
6878
6875
|
result
|
6879
6876
|
end
|
6880
6877
|
|
@@ -6885,7 +6882,7 @@ def _reduce_587(val, _values, result)
|
|
6885
6882
|
self.env[id] = :lvar
|
6886
6883
|
|
6887
6884
|
result = s(:array, s(:kwarg, id, expr).line(line)).line line
|
6888
|
-
|
6885
|
+
|
6889
6886
|
result
|
6890
6887
|
end
|
6891
6888
|
|
@@ -6896,7 +6893,7 @@ def _reduce_588(val, _values, result)
|
|
6896
6893
|
self.env[id] = :lvar
|
6897
6894
|
|
6898
6895
|
result = s(:array, s(:kwarg, id).line(line)).line line
|
6899
|
-
|
6896
|
+
|
6900
6897
|
result
|
6901
6898
|
end
|
6902
6899
|
|
@@ -6905,7 +6902,7 @@ end
|
|
6905
6902
|
def _reduce_590(val, _values, result)
|
6906
6903
|
list, _, item = val
|
6907
6904
|
result = list << item.last
|
6908
|
-
|
6905
|
+
|
6909
6906
|
result
|
6910
6907
|
end
|
6911
6908
|
|
@@ -6913,7 +6910,7 @@ end
|
|
6913
6910
|
|
6914
6911
|
def _reduce_592(val, _values, result)
|
6915
6912
|
result = args val
|
6916
|
-
|
6913
|
+
|
6917
6914
|
result
|
6918
6915
|
end
|
6919
6916
|
|
@@ -6925,33 +6922,33 @@ def _reduce_595(val, _values, result)
|
|
6925
6922
|
name = val[1].to_sym
|
6926
6923
|
self.assignable name
|
6927
6924
|
result = :"**#{name}"
|
6928
|
-
|
6925
|
+
|
6929
6926
|
result
|
6930
6927
|
end
|
6931
6928
|
|
6932
6929
|
def _reduce_596(val, _values, result)
|
6933
6930
|
result = :"**"
|
6934
|
-
|
6931
|
+
|
6935
6932
|
result
|
6936
6933
|
end
|
6937
6934
|
|
6938
6935
|
def _reduce_597(val, _values, result)
|
6939
6936
|
result = self.assignable val[0], val[2]
|
6940
6937
|
# TODO: detect duplicate names
|
6941
|
-
|
6938
|
+
|
6942
6939
|
result
|
6943
6940
|
end
|
6944
6941
|
|
6945
6942
|
def _reduce_598(val, _values, result)
|
6946
6943
|
result = self.assignable val[0], val[2]
|
6947
|
-
|
6944
|
+
|
6948
6945
|
result
|
6949
6946
|
end
|
6950
6947
|
|
6951
6948
|
def _reduce_599(val, _values, result)
|
6952
6949
|
optblk, = val
|
6953
6950
|
result = s(:block, optblk).line optblk.line
|
6954
|
-
|
6951
|
+
|
6955
6952
|
result
|
6956
6953
|
end
|
6957
6954
|
|
@@ -6959,20 +6956,20 @@ def _reduce_600(val, _values, result)
|
|
6959
6956
|
optarg, _, optblk = val
|
6960
6957
|
result = optarg
|
6961
6958
|
result << optblk
|
6962
|
-
|
6959
|
+
|
6963
6960
|
result
|
6964
6961
|
end
|
6965
6962
|
|
6966
6963
|
def _reduce_601(val, _values, result)
|
6967
6964
|
opt, = val
|
6968
6965
|
result = s(:block, opt).line opt.line
|
6969
|
-
|
6966
|
+
|
6970
6967
|
result
|
6971
6968
|
end
|
6972
6969
|
|
6973
6970
|
def _reduce_602(val, _values, result)
|
6974
6971
|
result = self.block_append val[0], val[2]
|
6975
|
-
|
6972
|
+
|
6976
6973
|
result
|
6977
6974
|
end
|
6978
6975
|
|
@@ -6985,7 +6982,7 @@ def _reduce_605(val, _values, result)
|
|
6985
6982
|
name = val[1].to_sym
|
6986
6983
|
self.assignable name
|
6987
6984
|
result = :"*#{name}"
|
6988
|
-
|
6985
|
+
|
6989
6986
|
result
|
6990
6987
|
end
|
6991
6988
|
|
@@ -6993,7 +6990,7 @@ def _reduce_606(val, _values, result)
|
|
6993
6990
|
name = :"*"
|
6994
6991
|
self.env[name] = :lvar
|
6995
6992
|
result = name
|
6996
|
-
|
6993
|
+
|
6997
6994
|
result
|
6998
6995
|
end
|
6999
6996
|
|
@@ -7006,19 +7003,19 @@ def _reduce_609(val, _values, result)
|
|
7006
7003
|
|
7007
7004
|
self.env[identifier] = :lvar
|
7008
7005
|
result = "&#{identifier}".to_sym
|
7009
|
-
|
7006
|
+
|
7010
7007
|
result
|
7011
7008
|
end
|
7012
7009
|
|
7013
7010
|
def _reduce_610(val, _values, result)
|
7014
7011
|
result = val[1]
|
7015
|
-
|
7012
|
+
|
7016
7013
|
result
|
7017
7014
|
end
|
7018
7015
|
|
7019
7016
|
def _reduce_611(val, _values, result)
|
7020
7017
|
result = nil
|
7021
|
-
|
7018
|
+
|
7022
7019
|
result
|
7023
7020
|
end
|
7024
7021
|
|
@@ -7026,7 +7023,7 @@ end
|
|
7026
7023
|
|
7027
7024
|
def _reduce_613(val, _values, result)
|
7028
7025
|
lexer.lex_state = EXPR_BEG
|
7029
|
-
|
7026
|
+
|
7030
7027
|
result
|
7031
7028
|
end
|
7032
7029
|
|
@@ -7034,13 +7031,13 @@ def _reduce_614(val, _values, result)
|
|
7034
7031
|
result = val[2]
|
7035
7032
|
yyerror "Can't define single method for literals." if
|
7036
7033
|
result.sexp_type == :lit
|
7037
|
-
|
7034
|
+
|
7038
7035
|
result
|
7039
7036
|
end
|
7040
7037
|
|
7041
7038
|
def _reduce_615(val, _values, result)
|
7042
7039
|
result = s(:array).line lexer.lineno
|
7043
|
-
|
7040
|
+
|
7044
7041
|
result
|
7045
7042
|
end
|
7046
7043
|
|
@@ -7054,14 +7051,14 @@ def _reduce_618(val, _values, result)
|
|
7054
7051
|
list.push(*more) unless more.empty?
|
7055
7052
|
result = list
|
7056
7053
|
result.sexp_type = :hash
|
7057
|
-
|
7054
|
+
|
7058
7055
|
result
|
7059
7056
|
end
|
7060
7057
|
|
7061
7058
|
def _reduce_619(val, _values, result)
|
7062
7059
|
v1, _, v2 = val
|
7063
7060
|
result = s(:array, v1, v2).line v1.line
|
7064
|
-
|
7061
|
+
|
7065
7062
|
result
|
7066
7063
|
end
|
7067
7064
|
|
@@ -7070,7 +7067,7 @@ def _reduce_620(val, _values, result)
|
|
7070
7067
|
|
7071
7068
|
lit = s(:lit, label.to_sym).line line
|
7072
7069
|
result = s(:array, lit, arg).line line
|
7073
|
-
|
7070
|
+
|
7074
7071
|
result
|
7075
7072
|
end
|
7076
7073
|
|
@@ -7078,7 +7075,7 @@ def _reduce_621(val, _values, result)
|
|
7078
7075
|
_, sym, _, value = val
|
7079
7076
|
sym.sexp_type = :dsym
|
7080
7077
|
result = s(:array, sym, value).line sym.line
|
7081
|
-
|
7078
|
+
|
7082
7079
|
result
|
7083
7080
|
end
|
7084
7081
|
|
@@ -7086,7 +7083,7 @@ def _reduce_622(val, _values, result)
|
|
7086
7083
|
_, arg = val
|
7087
7084
|
line = arg.line
|
7088
7085
|
result = s(:array, s(:kwsplat, arg).line(line)).line line
|
7089
|
-
|
7086
|
+
|
7090
7087
|
result
|
7091
7088
|
end
|
7092
7089
|
|
@@ -7141,7 +7138,7 @@ end
|
|
7141
7138
|
# reduce 647 omitted
|
7142
7139
|
|
7143
7140
|
def _reduce_648(val, _values, result)
|
7144
|
-
yyerrok
|
7141
|
+
yyerrok
|
7145
7142
|
result
|
7146
7143
|
end
|
7147
7144
|
|
@@ -7150,12 +7147,12 @@ end
|
|
7150
7147
|
# reduce 650 omitted
|
7151
7148
|
|
7152
7149
|
def _reduce_651(val, _values, result)
|
7153
|
-
yyerrok
|
7150
|
+
yyerrok
|
7154
7151
|
result
|
7155
7152
|
end
|
7156
7153
|
|
7157
7154
|
def _reduce_652(val, _values, result)
|
7158
|
-
result = nil;
|
7155
|
+
result = nil;
|
7159
7156
|
result
|
7160
7157
|
end
|
7161
7158
|
|