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/ruby20_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/ruby21_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'
|
@@ -3523,20 +3523,20 @@ Racc_debug_parser = false
|
|
3523
3523
|
|
3524
3524
|
def _reduce_1(val, _values, result)
|
3525
3525
|
self.lexer.lex_state = EXPR_BEG
|
3526
|
-
|
3526
|
+
|
3527
3527
|
result
|
3528
3528
|
end
|
3529
3529
|
|
3530
3530
|
def _reduce_2(val, _values, result)
|
3531
3531
|
result = new_compstmt val
|
3532
|
-
|
3532
|
+
|
3533
3533
|
result
|
3534
3534
|
end
|
3535
3535
|
|
3536
3536
|
def _reduce_3(val, _values, result)
|
3537
3537
|
stmt, _ = val
|
3538
3538
|
result = stmt
|
3539
|
-
|
3539
|
+
|
3540
3540
|
result
|
3541
3541
|
end
|
3542
3542
|
|
@@ -3546,7 +3546,7 @@ end
|
|
3546
3546
|
|
3547
3547
|
def _reduce_6(val, _values, result)
|
3548
3548
|
result = self.block_append val[0], val[2]
|
3549
|
-
|
3549
|
+
|
3550
3550
|
result
|
3551
3551
|
end
|
3552
3552
|
|
@@ -3560,7 +3560,7 @@ def _reduce_9(val, _values, result)
|
|
3560
3560
|
yyerror "BEGIN in method"
|
3561
3561
|
end
|
3562
3562
|
self.env.extend
|
3563
|
-
|
3563
|
+
|
3564
3564
|
result
|
3565
3565
|
end
|
3566
3566
|
|
@@ -3572,26 +3572,26 @@ def _reduce_10(val, _values, result)
|
|
3572
3572
|
preexe.line lineno
|
3573
3573
|
|
3574
3574
|
result = iter
|
3575
|
-
|
3575
|
+
|
3576
3576
|
result
|
3577
3577
|
end
|
3578
3578
|
|
3579
3579
|
def _reduce_11(val, _values, result)
|
3580
|
-
result = lexer.lineno
|
3580
|
+
result = lexer.lineno
|
3581
3581
|
result
|
3582
3582
|
end
|
3583
3583
|
|
3584
3584
|
def _reduce_12(val, _values, result)
|
3585
3585
|
_, line, stmt, _ = val
|
3586
3586
|
result = new_iter s(:preexe).line(line), 0, stmt
|
3587
|
-
|
3587
|
+
|
3588
3588
|
result
|
3589
3589
|
end
|
3590
3590
|
|
3591
3591
|
def _reduce_13(val, _values, result)
|
3592
3592
|
res = _values[-2]
|
3593
3593
|
yyerror "else without rescue is useless" unless res
|
3594
|
-
|
3594
|
+
|
3595
3595
|
result
|
3596
3596
|
end
|
3597
3597
|
|
@@ -3599,7 +3599,7 @@ def _reduce_14(val, _values, result)
|
|
3599
3599
|
body, resc, _, _, els, ens = val
|
3600
3600
|
|
3601
3601
|
result = new_body [body, resc, els, ens]
|
3602
|
-
|
3602
|
+
|
3603
3603
|
result
|
3604
3604
|
end
|
3605
3605
|
|
@@ -3607,13 +3607,13 @@ def _reduce_15(val, _values, result)
|
|
3607
3607
|
body, resc, ens = val
|
3608
3608
|
|
3609
3609
|
result = new_body [body, resc, nil, ens]
|
3610
|
-
|
3610
|
+
|
3611
3611
|
result
|
3612
3612
|
end
|
3613
3613
|
|
3614
3614
|
def _reduce_16(val, _values, result)
|
3615
3615
|
result = new_compstmt val
|
3616
|
-
|
3616
|
+
|
3617
3617
|
result
|
3618
3618
|
end
|
3619
3619
|
|
@@ -3623,14 +3623,14 @@ end
|
|
3623
3623
|
|
3624
3624
|
def _reduce_19(val, _values, result)
|
3625
3625
|
result = self.block_append val[0], val[2]
|
3626
|
-
|
3626
|
+
|
3627
3627
|
result
|
3628
3628
|
end
|
3629
3629
|
|
3630
3630
|
def _reduce_20(val, _values, result)
|
3631
3631
|
result = val[1]
|
3632
3632
|
debug20 2, val, result
|
3633
|
-
|
3633
|
+
|
3634
3634
|
result
|
3635
3635
|
end
|
3636
3636
|
|
@@ -3638,74 +3638,74 @@ end
|
|
3638
3638
|
|
3639
3639
|
def _reduce_22(val, _values, result)
|
3640
3640
|
yyerror "BEGIN is permitted only at toplevel"
|
3641
|
-
|
3641
|
+
|
3642
3642
|
result
|
3643
3643
|
end
|
3644
3644
|
|
3645
3645
|
def _reduce_23(val, _values, result)
|
3646
3646
|
lexer.lex_state = EXPR_FNAME
|
3647
|
-
|
3647
|
+
|
3648
3648
|
result
|
3649
3649
|
end
|
3650
3650
|
|
3651
3651
|
def _reduce_24(val, _values, result)
|
3652
3652
|
(_, line), lhs, _, rhs = val
|
3653
3653
|
result = s(:alias, lhs, rhs).line(line).line line
|
3654
|
-
|
3654
|
+
|
3655
3655
|
result
|
3656
3656
|
end
|
3657
3657
|
|
3658
3658
|
def _reduce_25(val, _values, result)
|
3659
3659
|
(_, line), lhs, rhs = val
|
3660
3660
|
result = s(:valias, lhs.to_sym, rhs.to_sym).line line
|
3661
|
-
|
3661
|
+
|
3662
3662
|
result
|
3663
3663
|
end
|
3664
3664
|
|
3665
3665
|
def _reduce_26(val, _values, result)
|
3666
3666
|
(_, line), lhs, rhs = val
|
3667
3667
|
result = s(:valias, lhs.to_sym, :"$#{rhs}").line line
|
3668
|
-
|
3668
|
+
|
3669
3669
|
result
|
3670
3670
|
end
|
3671
3671
|
|
3672
3672
|
def _reduce_27(val, _values, result)
|
3673
3673
|
yyerror "can't make alias for the number variables"
|
3674
|
-
|
3674
|
+
|
3675
3675
|
result
|
3676
3676
|
end
|
3677
3677
|
|
3678
3678
|
def _reduce_28(val, _values, result)
|
3679
3679
|
result = val[1]
|
3680
|
-
|
3680
|
+
|
3681
3681
|
result
|
3682
3682
|
end
|
3683
3683
|
|
3684
3684
|
def _reduce_29(val, _values, result)
|
3685
3685
|
t, _, c = val
|
3686
3686
|
result = new_if c, t, nil
|
3687
|
-
|
3687
|
+
|
3688
3688
|
result
|
3689
3689
|
end
|
3690
3690
|
|
3691
3691
|
def _reduce_30(val, _values, result)
|
3692
3692
|
f, _, c = val
|
3693
3693
|
result = new_if c, nil, f
|
3694
|
-
|
3694
|
+
|
3695
3695
|
result
|
3696
3696
|
end
|
3697
3697
|
|
3698
3698
|
def _reduce_31(val, _values, result)
|
3699
3699
|
e, _, c = val
|
3700
3700
|
result = new_while e, c, true
|
3701
|
-
|
3701
|
+
|
3702
3702
|
result
|
3703
3703
|
end
|
3704
3704
|
|
3705
3705
|
def _reduce_32(val, _values, result)
|
3706
3706
|
e, _, c = val
|
3707
3707
|
result = new_until e, c, true
|
3708
|
-
|
3708
|
+
|
3709
3709
|
result
|
3710
3710
|
end
|
3711
3711
|
|
@@ -3714,7 +3714,7 @@ def _reduce_33(val, _values, result)
|
|
3714
3714
|
|
3715
3715
|
resbody = new_resbody s(:array).line(resbody.line), resbody
|
3716
3716
|
result = new_rescue body, resbody
|
3717
|
-
|
3717
|
+
|
3718
3718
|
result
|
3719
3719
|
end
|
3720
3720
|
|
@@ -3727,7 +3727,7 @@ def _reduce_34(val, _values, result)
|
|
3727
3727
|
end
|
3728
3728
|
|
3729
3729
|
result = new_iter s(:postexe).line(line), 0, stmt
|
3730
|
-
|
3730
|
+
|
3731
3731
|
result
|
3732
3732
|
end
|
3733
3733
|
|
@@ -3735,20 +3735,20 @@ end
|
|
3735
3735
|
|
3736
3736
|
def _reduce_36(val, _values, result)
|
3737
3737
|
result = new_masgn val[0], val[2], :wrap
|
3738
|
-
|
3738
|
+
|
3739
3739
|
result
|
3740
3740
|
end
|
3741
3741
|
|
3742
3742
|
def _reduce_37(val, _values, result)
|
3743
3743
|
lhs, _, rhs = val
|
3744
3744
|
result = new_assign lhs, s(:svalue, rhs).line(rhs.line)
|
3745
|
-
|
3745
|
+
|
3746
3746
|
result
|
3747
3747
|
end
|
3748
3748
|
|
3749
3749
|
def _reduce_38(val, _values, result)
|
3750
3750
|
result = new_masgn val[0], val[2]
|
3751
|
-
|
3751
|
+
|
3752
3752
|
result
|
3753
3753
|
end
|
3754
3754
|
|
@@ -3756,19 +3756,19 @@ end
|
|
3756
3756
|
|
3757
3757
|
def _reduce_40(val, _values, result)
|
3758
3758
|
result = new_assign val[0], val[2]
|
3759
|
-
|
3759
|
+
|
3760
3760
|
result
|
3761
3761
|
end
|
3762
3762
|
|
3763
3763
|
def _reduce_41(val, _values, result)
|
3764
3764
|
result = new_op_asgn val
|
3765
|
-
|
3765
|
+
|
3766
3766
|
result
|
3767
3767
|
end
|
3768
3768
|
|
3769
3769
|
def _reduce_42(val, _values, result)
|
3770
3770
|
result = new_op_asgn1 val
|
3771
|
-
|
3771
|
+
|
3772
3772
|
result
|
3773
3773
|
end
|
3774
3774
|
|
@@ -3779,7 +3779,7 @@ def _reduce_43(val, _values, result)
|
|
3779
3779
|
result.sexp_type = :safe_op_asgn
|
3780
3780
|
end
|
3781
3781
|
result.line = val[0].line
|
3782
|
-
|
3782
|
+
|
3783
3783
|
result
|
3784
3784
|
end
|
3785
3785
|
|
@@ -3789,34 +3789,34 @@ def _reduce_44(val, _values, result)
|
|
3789
3789
|
result.sexp_type = :safe_op_asgn
|
3790
3790
|
end
|
3791
3791
|
result.line = val[0].line
|
3792
|
-
|
3792
|
+
|
3793
3793
|
result
|
3794
3794
|
end
|
3795
3795
|
|
3796
3796
|
def _reduce_45(val, _values, result)
|
3797
3797
|
result = s(:op_asgn, val[0], val[4], val[2], val[3])
|
3798
3798
|
debug20 4, val, result
|
3799
|
-
|
3799
|
+
|
3800
3800
|
result
|
3801
3801
|
end
|
3802
3802
|
|
3803
3803
|
def _reduce_46(val, _values, result)
|
3804
3804
|
result = s(:op_asgn, val[0], val[4], val[2], val[3])
|
3805
3805
|
debug20 5, val, result
|
3806
|
-
|
3806
|
+
|
3807
3807
|
result
|
3808
3808
|
end
|
3809
3809
|
|
3810
3810
|
def _reduce_47(val, _values, result)
|
3811
3811
|
self.backref_assign_error val[0]
|
3812
|
-
|
3812
|
+
|
3813
3813
|
result
|
3814
3814
|
end
|
3815
3815
|
|
3816
3816
|
def _reduce_48(val, _values, result)
|
3817
3817
|
expr, = val
|
3818
3818
|
result = value_expr expr
|
3819
|
-
|
3819
|
+
|
3820
3820
|
result
|
3821
3821
|
end
|
3822
3822
|
|
@@ -3827,14 +3827,14 @@ end
|
|
3827
3827
|
def _reduce_51(val, _values, result)
|
3828
3828
|
lhs, _, rhs = val
|
3829
3829
|
result = logical_op :and, lhs, rhs
|
3830
|
-
|
3830
|
+
|
3831
3831
|
result
|
3832
3832
|
end
|
3833
3833
|
|
3834
3834
|
def _reduce_52(val, _values, result)
|
3835
3835
|
lhs, _, rhs = val
|
3836
3836
|
result = logical_op :or, lhs, rhs
|
3837
|
-
|
3837
|
+
|
3838
3838
|
result
|
3839
3839
|
end
|
3840
3840
|
|
@@ -3842,7 +3842,7 @@ def _reduce_53(val, _values, result)
|
|
3842
3842
|
(_, line), _, expr = val
|
3843
3843
|
result = new_call(expr, :"!").line line
|
3844
3844
|
# REFACTOR: call_uni_op
|
3845
|
-
|
3845
|
+
|
3846
3846
|
result
|
3847
3847
|
end
|
3848
3848
|
|
@@ -3851,7 +3851,7 @@ def _reduce_54(val, _values, result)
|
|
3851
3851
|
result = new_call(cmd, :"!").line cmd.line
|
3852
3852
|
# TODO: fix line number to tBANG... but causes BAD shift/reduce conflict
|
3853
3853
|
# REFACTOR: call_uni_op -- see parse26.y
|
3854
|
-
|
3854
|
+
|
3855
3855
|
result
|
3856
3856
|
end
|
3857
3857
|
|
@@ -3859,26 +3859,26 @@ end
|
|
3859
3859
|
|
3860
3860
|
def _reduce_56(val, _values, result)
|
3861
3861
|
result = value_expr(val[0])
|
3862
|
-
|
3862
|
+
|
3863
3863
|
result
|
3864
3864
|
end
|
3865
3865
|
|
3866
3866
|
def _reduce_57(val, _values, result)
|
3867
3867
|
lexer.cond.push true
|
3868
|
-
|
3868
|
+
|
3869
3869
|
result
|
3870
3870
|
end
|
3871
3871
|
|
3872
3872
|
def _reduce_58(val, _values, result)
|
3873
3873
|
lexer.cond.pop
|
3874
|
-
|
3874
|
+
|
3875
3875
|
result
|
3876
3876
|
end
|
3877
3877
|
|
3878
3878
|
def _reduce_59(val, _values, result)
|
3879
3879
|
_, expr, _, _ = val
|
3880
3880
|
result = expr
|
3881
|
-
|
3881
|
+
|
3882
3882
|
result
|
3883
3883
|
end
|
3884
3884
|
|
@@ -3891,14 +3891,14 @@ end
|
|
3891
3891
|
def _reduce_63(val, _values, result)
|
3892
3892
|
blk, _, msg, args = val
|
3893
3893
|
result = new_call(blk, msg.to_sym, args).line blk.line
|
3894
|
-
|
3894
|
+
|
3895
3895
|
result
|
3896
3896
|
end
|
3897
3897
|
|
3898
3898
|
def _reduce_64(val, _values, result)
|
3899
3899
|
# self.env.extend(:dynamic)
|
3900
3900
|
result = self.lexer.lineno
|
3901
|
-
|
3901
|
+
|
3902
3902
|
result
|
3903
3903
|
end
|
3904
3904
|
|
@@ -3909,21 +3909,21 @@ def _reduce_65(val, _values, result)
|
|
3909
3909
|
result.line = line
|
3910
3910
|
|
3911
3911
|
# self.env.unextend
|
3912
|
-
|
3912
|
+
|
3913
3913
|
result
|
3914
3914
|
end
|
3915
3915
|
|
3916
3916
|
def _reduce_66(val, _values, result)
|
3917
3917
|
msg, = val
|
3918
3918
|
result = new_call(nil, msg.to_sym).line lexer.lineno
|
3919
|
-
|
3919
|
+
|
3920
3920
|
result
|
3921
3921
|
end
|
3922
3922
|
|
3923
3923
|
def _reduce_67(val, _values, result)
|
3924
3924
|
call, args = val
|
3925
3925
|
result = call.concat args.sexp_body
|
3926
|
-
|
3926
|
+
|
3927
3927
|
result
|
3928
3928
|
end
|
3929
3929
|
|
@@ -3938,14 +3938,14 @@ def _reduce_68(val, _values, result)
|
|
3938
3938
|
result, operation = block, result
|
3939
3939
|
result.insert 1, operation
|
3940
3940
|
end
|
3941
|
-
|
3941
|
+
|
3942
3942
|
result
|
3943
3943
|
end
|
3944
3944
|
|
3945
3945
|
def _reduce_69(val, _values, result)
|
3946
3946
|
lhs, callop, op, args = val
|
3947
3947
|
result = new_call lhs, op.to_sym, args, callop
|
3948
|
-
|
3948
|
+
|
3949
3949
|
result
|
3950
3950
|
end
|
3951
3951
|
|
@@ -3957,13 +3957,13 @@ def _reduce_70(val, _values, result)
|
|
3957
3957
|
|
3958
3958
|
block.insert 1, call
|
3959
3959
|
result = block
|
3960
|
-
|
3960
|
+
|
3961
3961
|
result
|
3962
3962
|
end
|
3963
3963
|
|
3964
3964
|
def _reduce_71(val, _values, result)
|
3965
3965
|
result = new_call val[0], val[2].to_sym, val[3]
|
3966
|
-
|
3966
|
+
|
3967
3967
|
result
|
3968
3968
|
end
|
3969
3969
|
|
@@ -3975,13 +3975,13 @@ def _reduce_72(val, _values, result)
|
|
3975
3975
|
|
3976
3976
|
block.insert 1, call
|
3977
3977
|
result = block
|
3978
|
-
|
3978
|
+
|
3979
3979
|
result
|
3980
3980
|
end
|
3981
3981
|
|
3982
3982
|
def _reduce_73(val, _values, result)
|
3983
3983
|
result = new_super val[1]
|
3984
|
-
|
3984
|
+
|
3985
3985
|
result
|
3986
3986
|
end
|
3987
3987
|
|
@@ -3989,28 +3989,28 @@ def _reduce_74(val, _values, result)
|
|
3989
3989
|
(_, line), args = val
|
3990
3990
|
result = new_yield args
|
3991
3991
|
result.line line # TODO: push to new_yield
|
3992
|
-
|
3992
|
+
|
3993
3993
|
result
|
3994
3994
|
end
|
3995
3995
|
|
3996
3996
|
def _reduce_75(val, _values, result)
|
3997
3997
|
line = val[0].last
|
3998
3998
|
result = s(:return, ret_args(val[1])).line(line)
|
3999
|
-
|
3999
|
+
|
4000
4000
|
result
|
4001
4001
|
end
|
4002
4002
|
|
4003
4003
|
def _reduce_76(val, _values, result)
|
4004
4004
|
(_, line), args = val
|
4005
4005
|
result = s(:break, ret_args(args)).line line
|
4006
|
-
|
4006
|
+
|
4007
4007
|
result
|
4008
4008
|
end
|
4009
4009
|
|
4010
4010
|
def _reduce_77(val, _values, result)
|
4011
4011
|
line = val[0].last
|
4012
4012
|
result = s(:next, ret_args(val[1])).line(line)
|
4013
|
-
|
4013
|
+
|
4014
4014
|
result
|
4015
4015
|
end
|
4016
4016
|
|
@@ -4018,7 +4018,7 @@ end
|
|
4018
4018
|
|
4019
4019
|
def _reduce_79(val, _values, result)
|
4020
4020
|
result = val[1]
|
4021
|
-
|
4021
|
+
|
4022
4022
|
result
|
4023
4023
|
end
|
4024
4024
|
|
@@ -4029,21 +4029,21 @@ def _reduce_81(val, _values, result)
|
|
4029
4029
|
l = arg.line
|
4030
4030
|
|
4031
4031
|
result = s(:masgn, s(:array, arg).line(l)).line l
|
4032
|
-
|
4032
|
+
|
4033
4033
|
result
|
4034
4034
|
end
|
4035
4035
|
|
4036
4036
|
def _reduce_82(val, _values, result)
|
4037
4037
|
head, = val
|
4038
4038
|
result = s(:masgn, head).line head.line
|
4039
|
-
|
4039
|
+
|
4040
4040
|
result
|
4041
4041
|
end
|
4042
4042
|
|
4043
4043
|
def _reduce_83(val, _values, result)
|
4044
4044
|
lhs, rhs = val
|
4045
4045
|
result = s(:masgn, lhs << rhs.compact).line lhs.line
|
4046
|
-
|
4046
|
+
|
4047
4047
|
result
|
4048
4048
|
end
|
4049
4049
|
|
@@ -4051,7 +4051,7 @@ def _reduce_84(val, _values, result)
|
|
4051
4051
|
head, _, tail = val
|
4052
4052
|
head << s(:splat, tail).line(tail.line)
|
4053
4053
|
result = s(:masgn, head).line head.line
|
4054
|
-
|
4054
|
+
|
4055
4055
|
result
|
4056
4056
|
end
|
4057
4057
|
|
@@ -4061,7 +4061,7 @@ def _reduce_85(val, _values, result)
|
|
4061
4061
|
result = list_append ary1, s(:splat, splat).line(splat.line)
|
4062
4062
|
result.concat ary2.sexp_body
|
4063
4063
|
result = s(:masgn, result).line result.line
|
4064
|
-
|
4064
|
+
|
4065
4065
|
result
|
4066
4066
|
end
|
4067
4067
|
|
@@ -4069,7 +4069,7 @@ def _reduce_86(val, _values, result)
|
|
4069
4069
|
head, _ = val
|
4070
4070
|
l = head.line
|
4071
4071
|
result = s(:masgn, head << s(:splat).line(l)).line l
|
4072
|
-
|
4072
|
+
|
4073
4073
|
result
|
4074
4074
|
end
|
4075
4075
|
|
@@ -4078,7 +4078,7 @@ def _reduce_87(val, _values, result)
|
|
4078
4078
|
ary = list_append head, s(:splat).line(head.line)
|
4079
4079
|
ary.concat post.sexp_body
|
4080
4080
|
result = s(:masgn, ary).line ary.line
|
4081
|
-
|
4081
|
+
|
4082
4082
|
result
|
4083
4083
|
end
|
4084
4084
|
|
@@ -4088,7 +4088,7 @@ def _reduce_88(val, _values, result)
|
|
4088
4088
|
splat = s(:splat, node).line l
|
4089
4089
|
ary = s(:array, splat).line l
|
4090
4090
|
result = s(:masgn, ary).line l
|
4091
|
-
|
4091
|
+
|
4092
4092
|
result
|
4093
4093
|
end
|
4094
4094
|
|
@@ -4099,14 +4099,14 @@ def _reduce_89(val, _values, result)
|
|
4099
4099
|
ary = s(:array, splat).line splat.line
|
4100
4100
|
ary.concat post.sexp_body
|
4101
4101
|
result = s(:masgn, ary).line ary.line
|
4102
|
-
|
4102
|
+
|
4103
4103
|
result
|
4104
4104
|
end
|
4105
4105
|
|
4106
4106
|
def _reduce_90(val, _values, result)
|
4107
4107
|
l = lexer.lineno
|
4108
4108
|
result = s(:masgn, s(:array, s(:splat).line(l)).line(l)).line l
|
4109
|
-
|
4109
|
+
|
4110
4110
|
result
|
4111
4111
|
end
|
4112
4112
|
|
@@ -4117,7 +4117,7 @@ def _reduce_91(val, _values, result)
|
|
4117
4117
|
splat = s(:splat).line l
|
4118
4118
|
ary = s(:array, splat, *post.sexp_body).line l
|
4119
4119
|
result = s(:masgn, ary).line l
|
4120
|
-
|
4120
|
+
|
4121
4121
|
result
|
4122
4122
|
end
|
4123
4123
|
|
@@ -4125,70 +4125,70 @@ end
|
|
4125
4125
|
|
4126
4126
|
def _reduce_93(val, _values, result)
|
4127
4127
|
result = val[1]
|
4128
|
-
|
4128
|
+
|
4129
4129
|
result
|
4130
4130
|
end
|
4131
4131
|
|
4132
4132
|
def _reduce_94(val, _values, result)
|
4133
4133
|
lhs, _ = val
|
4134
4134
|
result = s(:array, lhs).line lhs.line
|
4135
|
-
|
4135
|
+
|
4136
4136
|
result
|
4137
4137
|
end
|
4138
4138
|
|
4139
4139
|
def _reduce_95(val, _values, result)
|
4140
4140
|
result = val[0] << val[1].compact
|
4141
|
-
|
4141
|
+
|
4142
4142
|
result
|
4143
4143
|
end
|
4144
4144
|
|
4145
4145
|
def _reduce_96(val, _values, result)
|
4146
4146
|
item, = val
|
4147
4147
|
result = s(:array, item).line item.line
|
4148
|
-
|
4148
|
+
|
4149
4149
|
result
|
4150
4150
|
end
|
4151
4151
|
|
4152
4152
|
def _reduce_97(val, _values, result)
|
4153
4153
|
result = list_append val[0], val[2]
|
4154
|
-
|
4154
|
+
|
4155
4155
|
result
|
4156
4156
|
end
|
4157
4157
|
|
4158
4158
|
def _reduce_98(val, _values, result)
|
4159
4159
|
result = self.assignable val[0]
|
4160
|
-
|
4160
|
+
|
4161
4161
|
result
|
4162
4162
|
end
|
4163
4163
|
|
4164
4164
|
def _reduce_99(val, _values, result)
|
4165
4165
|
result = self.assignable val[0]
|
4166
|
-
|
4166
|
+
|
4167
4167
|
result
|
4168
4168
|
end
|
4169
4169
|
|
4170
4170
|
def _reduce_100(val, _values, result)
|
4171
4171
|
result = self.aryset val[0], val[2]
|
4172
|
-
|
4172
|
+
|
4173
4173
|
result
|
4174
4174
|
end
|
4175
4175
|
|
4176
4176
|
def _reduce_101(val, _values, result)
|
4177
4177
|
result = new_attrasgn val[0], val[2], val[1]
|
4178
|
-
|
4178
|
+
|
4179
4179
|
result
|
4180
4180
|
end
|
4181
4181
|
|
4182
4182
|
def _reduce_102(val, _values, result)
|
4183
4183
|
recv, _, id = val
|
4184
4184
|
result = new_attrasgn recv, id
|
4185
|
-
|
4185
|
+
|
4186
4186
|
result
|
4187
4187
|
end
|
4188
4188
|
|
4189
4189
|
def _reduce_103(val, _values, result)
|
4190
4190
|
result = new_attrasgn val[0], val[2], val[1]
|
4191
|
-
|
4191
|
+
|
4192
4192
|
result
|
4193
4193
|
end
|
4194
4194
|
|
@@ -4202,7 +4202,7 @@ def _reduce_104(val, _values, result)
|
|
4202
4202
|
l = expr.line
|
4203
4203
|
|
4204
4204
|
result = s(:const, s(:colon2, expr, id.to_sym).line(l), nil).line l
|
4205
|
-
|
4205
|
+
|
4206
4206
|
result
|
4207
4207
|
end
|
4208
4208
|
|
@@ -4216,13 +4216,13 @@ def _reduce_105(val, _values, result)
|
|
4216
4216
|
l = lexer.lineno
|
4217
4217
|
|
4218
4218
|
result = s(:const, nil, s(:colon3, id.to_sym).line(l)).line l
|
4219
|
-
|
4219
|
+
|
4220
4220
|
result
|
4221
4221
|
end
|
4222
4222
|
|
4223
4223
|
def _reduce_106(val, _values, result)
|
4224
4224
|
self.backref_assign_error val[0]
|
4225
|
-
|
4225
|
+
|
4226
4226
|
result
|
4227
4227
|
end
|
4228
4228
|
|
@@ -4230,7 +4230,7 @@ def _reduce_107(val, _values, result)
|
|
4230
4230
|
line = lexer.lineno
|
4231
4231
|
result = self.assignable val[0]
|
4232
4232
|
result.line = line
|
4233
|
-
|
4233
|
+
|
4234
4234
|
result
|
4235
4235
|
end
|
4236
4236
|
|
@@ -4239,34 +4239,34 @@ def _reduce_108(val, _values, result)
|
|
4239
4239
|
result = self.assignable val[0]
|
4240
4240
|
result.line = line
|
4241
4241
|
debug20 9, val, result
|
4242
|
-
|
4242
|
+
|
4243
4243
|
result
|
4244
4244
|
end
|
4245
4245
|
|
4246
4246
|
def _reduce_109(val, _values, result)
|
4247
4247
|
lhs, _, args, _ = val
|
4248
4248
|
result = self.aryset lhs, args
|
4249
|
-
|
4249
|
+
|
4250
4250
|
result
|
4251
4251
|
end
|
4252
4252
|
|
4253
4253
|
def _reduce_110(val, _values, result)
|
4254
4254
|
lhs, op, id = val
|
4255
4255
|
result = new_attrasgn lhs, id, op
|
4256
|
-
|
4256
|
+
|
4257
4257
|
result
|
4258
4258
|
end
|
4259
4259
|
|
4260
4260
|
def _reduce_111(val, _values, result)
|
4261
4261
|
lhs, _, id = val
|
4262
4262
|
result = new_attrasgn lhs, id
|
4263
|
-
|
4263
|
+
|
4264
4264
|
result
|
4265
4265
|
end
|
4266
4266
|
|
4267
4267
|
def _reduce_112(val, _values, result)
|
4268
4268
|
result = new_attrasgn val[0], val[2], val[1]
|
4269
|
-
|
4269
|
+
|
4270
4270
|
result
|
4271
4271
|
end
|
4272
4272
|
|
@@ -4280,7 +4280,7 @@ def _reduce_113(val, _values, result)
|
|
4280
4280
|
|
4281
4281
|
l = expr.line
|
4282
4282
|
result = s(:const, s(:colon2, expr, id.to_sym).line(l)).line l
|
4283
|
-
|
4283
|
+
|
4284
4284
|
result
|
4285
4285
|
end
|
4286
4286
|
|
@@ -4294,19 +4294,19 @@ def _reduce_114(val, _values, result)
|
|
4294
4294
|
|
4295
4295
|
l = lexer.lineno
|
4296
4296
|
result = s(:const, s(:colon3, id.to_sym).line(l)).line l
|
4297
|
-
|
4297
|
+
|
4298
4298
|
result
|
4299
4299
|
end
|
4300
4300
|
|
4301
4301
|
def _reduce_115(val, _values, result)
|
4302
4302
|
self.backref_assign_error val[0]
|
4303
|
-
|
4303
|
+
|
4304
4304
|
result
|
4305
4305
|
end
|
4306
4306
|
|
4307
4307
|
def _reduce_116(val, _values, result)
|
4308
4308
|
yyerror "class/module name must be CONSTANT"
|
4309
|
-
|
4309
|
+
|
4310
4310
|
result
|
4311
4311
|
end
|
4312
4312
|
|
@@ -4315,13 +4315,13 @@ end
|
|
4315
4315
|
def _reduce_118(val, _values, result)
|
4316
4316
|
_, name = val
|
4317
4317
|
result = s(:colon3, name.to_sym).line lexer.lineno
|
4318
|
-
|
4318
|
+
|
4319
4319
|
result
|
4320
4320
|
end
|
4321
4321
|
|
4322
4322
|
def _reduce_119(val, _values, result)
|
4323
4323
|
result = val[0].to_sym
|
4324
|
-
|
4324
|
+
|
4325
4325
|
result
|
4326
4326
|
end
|
4327
4327
|
|
@@ -4330,7 +4330,7 @@ def _reduce_120(val, _values, result)
|
|
4330
4330
|
|
4331
4331
|
result = s(:colon2, pval, name.to_sym)
|
4332
4332
|
result.line pval.line
|
4333
|
-
|
4333
|
+
|
4334
4334
|
result
|
4335
4335
|
end
|
4336
4336
|
|
@@ -4343,7 +4343,7 @@ end
|
|
4343
4343
|
def _reduce_124(val, _values, result)
|
4344
4344
|
lexer.lex_state = EXPR_END
|
4345
4345
|
result = val[0]
|
4346
|
-
|
4346
|
+
|
4347
4347
|
result
|
4348
4348
|
end
|
4349
4349
|
|
@@ -4351,7 +4351,7 @@ def _reduce_125(val, _values, result)
|
|
4351
4351
|
(sym, _line), = val
|
4352
4352
|
lexer.lex_state = EXPR_END
|
4353
4353
|
result = sym
|
4354
|
-
|
4354
|
+
|
4355
4355
|
result
|
4356
4356
|
end
|
4357
4357
|
|
@@ -4362,7 +4362,7 @@ end
|
|
4362
4362
|
def _reduce_128(val, _values, result)
|
4363
4363
|
id, = val
|
4364
4364
|
result = s(:lit, id.to_sym).line lexer.lineno
|
4365
|
-
|
4365
|
+
|
4366
4366
|
result
|
4367
4367
|
end
|
4368
4368
|
|
@@ -4370,19 +4370,19 @@ end
|
|
4370
4370
|
|
4371
4371
|
def _reduce_130(val, _values, result)
|
4372
4372
|
result = new_undef val[0]
|
4373
|
-
|
4373
|
+
|
4374
4374
|
result
|
4375
4375
|
end
|
4376
4376
|
|
4377
4377
|
def _reduce_131(val, _values, result)
|
4378
4378
|
lexer.lex_state = EXPR_FNAME
|
4379
|
-
|
4379
|
+
|
4380
4380
|
result
|
4381
4381
|
end
|
4382
4382
|
|
4383
4383
|
def _reduce_132(val, _values, result)
|
4384
4384
|
result = new_undef val[0], val[3]
|
4385
|
-
|
4385
|
+
|
4386
4386
|
result
|
4387
4387
|
end
|
4388
4388
|
|
@@ -4532,31 +4532,31 @@ end
|
|
4532
4532
|
|
4533
4533
|
def _reduce_205(val, _values, result)
|
4534
4534
|
result = new_assign val[0], val[2]
|
4535
|
-
|
4535
|
+
|
4536
4536
|
result
|
4537
4537
|
end
|
4538
4538
|
|
4539
4539
|
def _reduce_206(val, _values, result)
|
4540
4540
|
result = new_op_asgn val
|
4541
|
-
|
4541
|
+
|
4542
4542
|
result
|
4543
4543
|
end
|
4544
4544
|
|
4545
4545
|
def _reduce_207(val, _values, result)
|
4546
4546
|
result = new_op_asgn1 val
|
4547
|
-
|
4547
|
+
|
4548
4548
|
result
|
4549
4549
|
end
|
4550
4550
|
|
4551
4551
|
def _reduce_208(val, _values, result)
|
4552
4552
|
result = new_op_asgn2 val
|
4553
|
-
|
4553
|
+
|
4554
4554
|
result
|
4555
4555
|
end
|
4556
4556
|
|
4557
4557
|
def _reduce_209(val, _values, result)
|
4558
4558
|
result = new_op_asgn2 val
|
4559
|
-
|
4559
|
+
|
4560
4560
|
result
|
4561
4561
|
end
|
4562
4562
|
|
@@ -4564,7 +4564,7 @@ def _reduce_210(val, _values, result)
|
|
4564
4564
|
lhs, _, id, op, rhs = val
|
4565
4565
|
|
4566
4566
|
result = s(:op_asgn, lhs, rhs, id.to_sym, op.to_sym).line lhs.line
|
4567
|
-
|
4567
|
+
|
4568
4568
|
result
|
4569
4569
|
end
|
4570
4570
|
|
@@ -4573,13 +4573,13 @@ def _reduce_211(val, _values, result)
|
|
4573
4573
|
|
4574
4574
|
lhs = s(:colon2, lhs1, lhs2.to_sym).line lhs1.line
|
4575
4575
|
result = new_const_op_asgn [lhs, op, rhs]
|
4576
|
-
|
4576
|
+
|
4577
4577
|
result
|
4578
4578
|
end
|
4579
4579
|
|
4580
4580
|
def _reduce_212(val, _values, result)
|
4581
4581
|
result = self.lexer.lineno
|
4582
|
-
|
4582
|
+
|
4583
4583
|
result
|
4584
4584
|
end
|
4585
4585
|
|
@@ -4588,7 +4588,7 @@ def _reduce_213(val, _values, result)
|
|
4588
4588
|
|
4589
4589
|
lhs = s(:colon3, lhs.to_sym).line line
|
4590
4590
|
result = new_const_op_asgn [lhs, op, rhs]
|
4591
|
-
|
4591
|
+
|
4592
4592
|
result
|
4593
4593
|
end
|
4594
4594
|
|
@@ -4596,7 +4596,7 @@ def _reduce_214(val, _values, result)
|
|
4596
4596
|
# TODO: lhs = var_field val[0]
|
4597
4597
|
asgn = new_op_asgn val
|
4598
4598
|
result = self.backref_assign_error asgn
|
4599
|
-
|
4599
|
+
|
4600
4600
|
result
|
4601
4601
|
end
|
4602
4602
|
|
@@ -4607,7 +4607,7 @@ def _reduce_215(val, _values, result)
|
|
4607
4607
|
else
|
4608
4608
|
result = s(:dot2, v1, v2).line v1.line
|
4609
4609
|
end
|
4610
|
-
|
4610
|
+
|
4611
4611
|
result
|
4612
4612
|
end
|
4613
4613
|
|
@@ -4618,43 +4618,43 @@ def _reduce_216(val, _values, result)
|
|
4618
4618
|
else
|
4619
4619
|
result = s(:dot3, v1, v2).line v1.line
|
4620
4620
|
end
|
4621
|
-
|
4621
|
+
|
4622
4622
|
result
|
4623
4623
|
end
|
4624
4624
|
|
4625
4625
|
def _reduce_217(val, _values, result)
|
4626
4626
|
result = new_call val[0], :+, argl(val[2])
|
4627
|
-
|
4627
|
+
|
4628
4628
|
result
|
4629
4629
|
end
|
4630
4630
|
|
4631
4631
|
def _reduce_218(val, _values, result)
|
4632
4632
|
result = new_call val[0], :-, argl(val[2])
|
4633
|
-
|
4633
|
+
|
4634
4634
|
result
|
4635
4635
|
end
|
4636
4636
|
|
4637
4637
|
def _reduce_219(val, _values, result)
|
4638
4638
|
result = new_call val[0], :*, argl(val[2])
|
4639
|
-
|
4639
|
+
|
4640
4640
|
result
|
4641
4641
|
end
|
4642
4642
|
|
4643
4643
|
def _reduce_220(val, _values, result)
|
4644
4644
|
result = new_call val[0], :"/", argl(val[2])
|
4645
|
-
|
4645
|
+
|
4646
4646
|
result
|
4647
4647
|
end
|
4648
4648
|
|
4649
4649
|
def _reduce_221(val, _values, result)
|
4650
4650
|
result = new_call val[0], :"%", argl(val[2])
|
4651
|
-
|
4651
|
+
|
4652
4652
|
result
|
4653
4653
|
end
|
4654
4654
|
|
4655
4655
|
def _reduce_222(val, _values, result)
|
4656
4656
|
result = new_call val[0], :**, argl(val[2])
|
4657
|
-
|
4657
|
+
|
4658
4658
|
result
|
4659
4659
|
end
|
4660
4660
|
|
@@ -4662,43 +4662,43 @@ def _reduce_223(val, _values, result)
|
|
4662
4662
|
lit = s(:lit, val[1]).line lexer.lineno
|
4663
4663
|
result = new_call(new_call(lit, :"**", argl(val[3])), :"-@")
|
4664
4664
|
|
4665
|
-
|
4665
|
+
|
4666
4666
|
result
|
4667
4667
|
end
|
4668
4668
|
|
4669
4669
|
def _reduce_224(val, _values, result)
|
4670
4670
|
result = new_call val[1], :"+@"
|
4671
|
-
|
4671
|
+
|
4672
4672
|
result
|
4673
4673
|
end
|
4674
4674
|
|
4675
4675
|
def _reduce_225(val, _values, result)
|
4676
4676
|
result = new_call val[1], :"-@"
|
4677
|
-
|
4677
|
+
|
4678
4678
|
result
|
4679
4679
|
end
|
4680
4680
|
|
4681
4681
|
def _reduce_226(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_227(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_228(val, _values, result)
|
4694
4694
|
result = new_call val[0], :"&", argl(val[2])
|
4695
|
-
|
4695
|
+
|
4696
4696
|
result
|
4697
4697
|
end
|
4698
4698
|
|
4699
4699
|
def _reduce_229(val, _values, result)
|
4700
4700
|
result = new_call val[0], :"<=>", argl(val[2])
|
4701
|
-
|
4701
|
+
|
4702
4702
|
result
|
4703
4703
|
end
|
4704
4704
|
|
@@ -4706,33 +4706,33 @@ end
|
|
4706
4706
|
|
4707
4707
|
def _reduce_231(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_232(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_233(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_234(val, _values, result)
|
4726
4726
|
lhs, _, rhs = val
|
4727
4727
|
result = new_match lhs, rhs
|
4728
|
-
|
4728
|
+
|
4729
4729
|
result
|
4730
4730
|
end
|
4731
4731
|
|
4732
4732
|
def _reduce_235(val, _values, result)
|
4733
4733
|
lhs, _, rhs = val
|
4734
4734
|
result = s(:not, new_match(lhs, rhs)).line lhs.line
|
4735
|
-
|
4735
|
+
|
4736
4736
|
result
|
4737
4737
|
end
|
4738
4738
|
|
@@ -4740,13 +4740,13 @@ def _reduce_236(val, _values, result)
|
|
4740
4740
|
_, arg = val
|
4741
4741
|
result = new_call arg, :"!"
|
4742
4742
|
result.line arg.line
|
4743
|
-
|
4743
|
+
|
4744
4744
|
result
|
4745
4745
|
end
|
4746
4746
|
|
4747
4747
|
def _reduce_237(val, _values, result)
|
4748
4748
|
result = new_call value_expr(val[1]), :"~"
|
4749
|
-
|
4749
|
+
|
4750
4750
|
result
|
4751
4751
|
end
|
4752
4752
|
|
@@ -4754,7 +4754,7 @@ def _reduce_238(val, _values, result)
|
|
4754
4754
|
val[0] = value_expr val[0]
|
4755
4755
|
val[2] = value_expr val[2]
|
4756
4756
|
result = new_call val[0], :"\<\<", argl(val[2])
|
4757
|
-
|
4757
|
+
|
4758
4758
|
result
|
4759
4759
|
end
|
4760
4760
|
|
@@ -4762,33 +4762,33 @@ def _reduce_239(val, _values, result)
|
|
4762
4762
|
val[0] = value_expr val[0]
|
4763
4763
|
val[2] = value_expr val[2]
|
4764
4764
|
result = new_call val[0], :">>", argl(val[2])
|
4765
|
-
|
4765
|
+
|
4766
4766
|
result
|
4767
4767
|
end
|
4768
4768
|
|
4769
4769
|
def _reduce_240(val, _values, result)
|
4770
4770
|
result = logical_op :and, val[0], val[2]
|
4771
|
-
|
4771
|
+
|
4772
4772
|
result
|
4773
4773
|
end
|
4774
4774
|
|
4775
4775
|
def _reduce_241(val, _values, result)
|
4776
4776
|
result = logical_op :or, val[0], val[2]
|
4777
|
-
|
4777
|
+
|
4778
4778
|
result
|
4779
4779
|
end
|
4780
4780
|
|
4781
4781
|
def _reduce_242(val, _values, result)
|
4782
4782
|
(_, line), _, arg = val
|
4783
4783
|
result = s(:defined, arg).line line
|
4784
|
-
|
4784
|
+
|
4785
4785
|
result
|
4786
4786
|
end
|
4787
4787
|
|
4788
4788
|
def _reduce_243(val, _values, result)
|
4789
4789
|
c, _, t, _, _, f = val
|
4790
4790
|
result = s(:if, c, t, f).line c.line
|
4791
|
-
|
4791
|
+
|
4792
4792
|
result
|
4793
4793
|
end
|
4794
4794
|
|
@@ -4805,7 +4805,7 @@ end
|
|
4805
4805
|
def _reduce_249(val, _values, result)
|
4806
4806
|
lhs, op, rhs = val
|
4807
4807
|
result = new_call lhs, op.to_sym, argl(rhs)
|
4808
|
-
|
4808
|
+
|
4809
4809
|
result
|
4810
4810
|
end
|
4811
4811
|
|
@@ -4813,13 +4813,13 @@ def _reduce_250(val, _values, result)
|
|
4813
4813
|
lhs, op, rhs = val
|
4814
4814
|
warn "comparison '%s' after comparison", op
|
4815
4815
|
result = new_call lhs, op.to_sym, argl(rhs)
|
4816
|
-
|
4816
|
+
|
4817
4817
|
result
|
4818
4818
|
end
|
4819
4819
|
|
4820
4820
|
def _reduce_251(val, _values, result)
|
4821
4821
|
result = value_expr(val[0])
|
4822
|
-
|
4822
|
+
|
4823
4823
|
result
|
4824
4824
|
end
|
4825
4825
|
|
@@ -4827,19 +4827,19 @@ end
|
|
4827
4827
|
|
4828
4828
|
def _reduce_253(val, _values, result)
|
4829
4829
|
result = args [val[0]]
|
4830
|
-
|
4830
|
+
|
4831
4831
|
result
|
4832
4832
|
end
|
4833
4833
|
|
4834
4834
|
def _reduce_254(val, _values, result)
|
4835
4835
|
result = args [val[0], array_to_hash(val[2])]
|
4836
|
-
|
4836
|
+
|
4837
4837
|
result
|
4838
4838
|
end
|
4839
4839
|
|
4840
4840
|
def _reduce_255(val, _values, result)
|
4841
4841
|
result = args [array_to_hash(val[0])]
|
4842
|
-
|
4842
|
+
|
4843
4843
|
result
|
4844
4844
|
end
|
4845
4845
|
|
@@ -4852,14 +4852,14 @@ def _reduce_257(val, _values, result)
|
|
4852
4852
|
|
4853
4853
|
ary = s(:array).line line
|
4854
4854
|
result = new_rescue(body, new_resbody(ary, resbody))
|
4855
|
-
|
4855
|
+
|
4856
4856
|
result
|
4857
4857
|
end
|
4858
4858
|
|
4859
4859
|
def _reduce_258(val, _values, result)
|
4860
4860
|
_, args, _ = val
|
4861
4861
|
result = args
|
4862
|
-
|
4862
|
+
|
4863
4863
|
result
|
4864
4864
|
end
|
4865
4865
|
|
@@ -4873,79 +4873,76 @@ end
|
|
4873
4873
|
|
4874
4874
|
def _reduce_263(val, _values, result)
|
4875
4875
|
result = args val
|
4876
|
-
|
4876
|
+
|
4877
4877
|
result
|
4878
4878
|
end
|
4879
4879
|
|
4880
4880
|
def _reduce_264(val, _values, result)
|
4881
4881
|
result = args [val[0], array_to_hash(val[2])]
|
4882
|
-
|
4882
|
+
|
4883
4883
|
result
|
4884
4884
|
end
|
4885
4885
|
|
4886
4886
|
def _reduce_265(val, _values, result)
|
4887
4887
|
result = args [array_to_hash(val[0])]
|
4888
|
-
|
4888
|
+
|
4889
4889
|
result
|
4890
4890
|
end
|
4891
4891
|
|
4892
4892
|
def _reduce_266(val, _values, result)
|
4893
4893
|
warning "parenthesize argument(s) for future version"
|
4894
4894
|
result = call_args val
|
4895
|
-
|
4895
|
+
|
4896
4896
|
result
|
4897
4897
|
end
|
4898
4898
|
|
4899
4899
|
def _reduce_267(val, _values, result)
|
4900
4900
|
result = call_args val
|
4901
|
-
|
4902
|
-
|
4901
|
+
|
4903
4902
|
result
|
4904
4903
|
end
|
4905
4904
|
|
4906
4905
|
def _reduce_268(val, _values, result)
|
4907
|
-
result = call_args [array_to_hash(val[0])]
|
4908
|
-
|
4909
|
-
|
4906
|
+
result = call_args [array_to_hash(val[0]), val[1]]
|
4907
|
+
|
4910
4908
|
result
|
4911
4909
|
end
|
4912
4910
|
|
4913
4911
|
def _reduce_269(val, _values, result)
|
4914
|
-
result = call_args [val[0], array_to_hash(val[2])]
|
4915
|
-
|
4916
|
-
|
4912
|
+
result = call_args [val[0], array_to_hash(val[2]), val[3]]
|
4913
|
+
|
4917
4914
|
result
|
4918
4915
|
end
|
4919
4916
|
|
4920
4917
|
def _reduce_270(val, _values, result)
|
4921
4918
|
result = call_args val
|
4922
|
-
|
4919
|
+
|
4923
4920
|
result
|
4924
4921
|
end
|
4925
4922
|
|
4926
4923
|
def _reduce_271(val, _values, result)
|
4927
4924
|
result = lexer.cmdarg.store true
|
4928
|
-
|
4925
|
+
|
4929
4926
|
result
|
4930
4927
|
end
|
4931
4928
|
|
4932
4929
|
def _reduce_272(val, _values, result)
|
4933
4930
|
lexer.cmdarg.restore val[0]
|
4934
4931
|
result = val[1]
|
4935
|
-
|
4932
|
+
|
4936
4933
|
result
|
4937
4934
|
end
|
4938
4935
|
|
4939
4936
|
def _reduce_273(val, _values, result)
|
4940
4937
|
_, arg = val
|
4941
4938
|
result = s(:block_pass, arg).line arg.line
|
4942
|
-
|
4939
|
+
|
4943
4940
|
result
|
4944
4941
|
end
|
4945
4942
|
|
4946
4943
|
def _reduce_274(val, _values, result)
|
4947
4944
|
result = val[1]
|
4948
|
-
|
4945
|
+
|
4949
4946
|
result
|
4950
4947
|
end
|
4951
4948
|
|
@@ -4955,51 +4952,51 @@ def _reduce_276(val, _values, result)
|
|
4955
4952
|
arg, = val
|
4956
4953
|
|
4957
4954
|
result = s(:array, arg).line arg.line
|
4958
|
-
|
4955
|
+
|
4959
4956
|
result
|
4960
4957
|
end
|
4961
4958
|
|
4962
4959
|
def _reduce_277(val, _values, result)
|
4963
4960
|
_, arg = val
|
4964
4961
|
result = s(:array, s(:splat, arg).line(arg.line)).line arg.line
|
4965
|
-
|
4962
|
+
|
4966
4963
|
result
|
4967
4964
|
end
|
4968
4965
|
|
4969
4966
|
def _reduce_278(val, _values, result)
|
4970
4967
|
args, _, id = val
|
4971
4968
|
result = self.list_append args, id
|
4972
|
-
|
4969
|
+
|
4973
4970
|
result
|
4974
4971
|
end
|
4975
4972
|
|
4976
4973
|
def _reduce_279(val, _values, result)
|
4977
|
-
result = lexer.lineno
|
4974
|
+
result = lexer.lineno
|
4978
4975
|
result
|
4979
4976
|
end
|
4980
4977
|
|
4981
4978
|
def _reduce_280(val, _values, result)
|
4982
4979
|
args, _, _, line, id = val
|
4983
4980
|
result = self.list_append args, s(:splat, id).line(line)
|
4984
|
-
|
4981
|
+
|
4985
4982
|
result
|
4986
4983
|
end
|
4987
4984
|
|
4988
4985
|
def _reduce_281(val, _values, result)
|
4989
4986
|
result = new_masgn_arg val[0]
|
4990
|
-
|
4987
|
+
|
4991
4988
|
result
|
4992
4989
|
end
|
4993
4990
|
|
4994
4991
|
def _reduce_282(val, _values, result)
|
4995
4992
|
result = new_masgn_arg val[0], :wrap
|
4996
|
-
|
4993
|
+
|
4997
4994
|
result
|
4998
4995
|
end
|
4999
4996
|
|
5000
4997
|
def _reduce_283(val, _values, result)
|
5001
4998
|
result = val[0] << val[2]
|
5002
|
-
|
4999
|
+
|
5003
5000
|
result
|
5004
5001
|
end
|
5005
5002
|
|
@@ -5008,14 +5005,14 @@ def _reduce_284(val, _values, result)
|
|
5008
5005
|
# TODO: make all tXXXX terminals include lexer.lineno
|
5009
5006
|
arg, _, _, splat = val
|
5010
5007
|
result = self.arg_concat arg, splat
|
5011
|
-
|
5008
|
+
|
5012
5009
|
result
|
5013
5010
|
end
|
5014
5011
|
|
5015
5012
|
def _reduce_285(val, _values, result)
|
5016
5013
|
_, arg = val
|
5017
5014
|
result = s(:splat, arg).line arg.line
|
5018
|
-
|
5015
|
+
|
5019
5016
|
result
|
5020
5017
|
end
|
5021
5018
|
|
@@ -5042,7 +5039,7 @@ end
|
|
5042
5039
|
def _reduce_296(val, _values, result)
|
5043
5040
|
msg, = val
|
5044
5041
|
result = new_call nil, msg.to_sym
|
5045
|
-
|
5042
|
+
|
5046
5043
|
result
|
5047
5044
|
end
|
5048
5045
|
|
@@ -5051,7 +5048,7 @@ def _reduce_297(val, _values, result)
|
|
5051
5048
|
# TODO:
|
5052
5049
|
# $<val>1 = cmdarg_stack;
|
5053
5050
|
# CMDARG_SET(0);
|
5054
|
-
|
5051
|
+
|
5055
5052
|
result
|
5056
5053
|
end
|
5057
5054
|
|
@@ -5064,33 +5061,33 @@ def _reduce_298(val, _values, result)
|
|
5064
5061
|
end
|
5065
5062
|
|
5066
5063
|
result.line = val[1]
|
5067
|
-
|
5064
|
+
|
5068
5065
|
result
|
5069
5066
|
end
|
5070
5067
|
|
5071
5068
|
def _reduce_299(val, _values, result)
|
5072
5069
|
lexer.lex_state = EXPR_ENDARG
|
5073
5070
|
result = lexer.lineno
|
5074
|
-
|
5071
|
+
|
5075
5072
|
result
|
5076
5073
|
end
|
5077
5074
|
|
5078
5075
|
def _reduce_300(val, _values, result)
|
5079
5076
|
_, line, _ = val
|
5080
5077
|
result = s(:begin).line line
|
5081
|
-
|
5078
|
+
|
5082
5079
|
result
|
5083
5080
|
end
|
5084
5081
|
|
5085
5082
|
def _reduce_301(val, _values, result)
|
5086
5083
|
result = lexer.cmdarg.store false
|
5087
|
-
|
5084
|
+
|
5088
5085
|
result
|
5089
5086
|
end
|
5090
5087
|
|
5091
5088
|
def _reduce_302(val, _values, result)
|
5092
5089
|
lexer.lex_state = EXPR_ENDARG
|
5093
|
-
|
5090
|
+
|
5094
5091
|
result
|
5095
5092
|
end
|
5096
5093
|
|
@@ -5099,7 +5096,7 @@ def _reduce_303(val, _values, result)
|
|
5099
5096
|
warning "(...) interpreted as grouped expression"
|
5100
5097
|
lexer.cmdarg.restore cmdarg
|
5101
5098
|
result = stmt
|
5102
|
-
|
5099
|
+
|
5103
5100
|
result
|
5104
5101
|
end
|
5105
5102
|
|
@@ -5108,7 +5105,7 @@ def _reduce_304(val, _values, result)
|
|
5108
5105
|
result = stmt
|
5109
5106
|
result ||= s(:nil).line lexer.lineno
|
5110
5107
|
result.paren = true
|
5111
|
-
|
5108
|
+
|
5112
5109
|
result
|
5113
5110
|
end
|
5114
5111
|
|
@@ -5116,7 +5113,7 @@ def _reduce_305(val, _values, result)
|
|
5116
5113
|
expr, _, id = val
|
5117
5114
|
|
5118
5115
|
result = s(:colon2, expr, id.to_sym).line expr.line
|
5119
|
-
|
5116
|
+
|
5120
5117
|
result
|
5121
5118
|
end
|
5122
5119
|
|
@@ -5124,12 +5121,12 @@ def _reduce_306(val, _values, result)
|
|
5124
5121
|
_, id = val
|
5125
5122
|
|
5126
5123
|
result = s(:colon3, id.to_sym).line lexer.lineno
|
5127
|
-
|
5124
|
+
|
5128
5125
|
result
|
5129
5126
|
end
|
5130
5127
|
|
5131
5128
|
def _reduce_307(val, _values, result)
|
5132
|
-
result = lexer.lineno
|
5129
|
+
result = lexer.lineno
|
5133
5130
|
result
|
5134
5131
|
end
|
5135
5132
|
|
@@ -5138,44 +5135,44 @@ def _reduce_308(val, _values, result)
|
|
5138
5135
|
result = args || s(:array)
|
5139
5136
|
result.sexp_type = :array # aref_args is :args
|
5140
5137
|
result.line line
|
5141
|
-
|
5138
|
+
|
5142
5139
|
result
|
5143
5140
|
end
|
5144
5141
|
|
5145
5142
|
def _reduce_309(val, _values, result)
|
5146
5143
|
result = self.lexer.lineno
|
5147
|
-
|
5144
|
+
|
5148
5145
|
result
|
5149
5146
|
end
|
5150
5147
|
|
5151
5148
|
def _reduce_310(val, _values, result)
|
5152
5149
|
result = new_hash val
|
5153
|
-
|
5150
|
+
|
5154
5151
|
result
|
5155
5152
|
end
|
5156
5153
|
|
5157
5154
|
def _reduce_311(val, _values, result)
|
5158
5155
|
(_, line), = val
|
5159
5156
|
result = s(:return).line line
|
5160
|
-
|
5157
|
+
|
5161
5158
|
result
|
5162
5159
|
end
|
5163
5160
|
|
5164
5161
|
def _reduce_312(val, _values, result)
|
5165
5162
|
result = new_yield val[2]
|
5166
|
-
|
5163
|
+
|
5167
5164
|
result
|
5168
5165
|
end
|
5169
5166
|
|
5170
5167
|
def _reduce_313(val, _values, result)
|
5171
5168
|
result = new_yield
|
5172
|
-
|
5169
|
+
|
5173
5170
|
result
|
5174
5171
|
end
|
5175
5172
|
|
5176
5173
|
def _reduce_314(val, _values, result)
|
5177
5174
|
result = new_yield
|
5178
|
-
|
5175
|
+
|
5179
5176
|
result
|
5180
5177
|
end
|
5181
5178
|
|
@@ -5183,20 +5180,20 @@ def _reduce_315(val, _values, result)
|
|
5183
5180
|
(_, line), _, _, arg, _ = val
|
5184
5181
|
|
5185
5182
|
result = s(:defined, arg).line line
|
5186
|
-
|
5183
|
+
|
5187
5184
|
result
|
5188
5185
|
end
|
5189
5186
|
|
5190
5187
|
def _reduce_316(val, _values, result)
|
5191
5188
|
_, _, lhs, _ = val
|
5192
5189
|
result = new_call lhs, :"!"
|
5193
|
-
|
5190
|
+
|
5194
5191
|
result
|
5195
5192
|
end
|
5196
5193
|
|
5197
5194
|
def _reduce_317(val, _values, result)
|
5198
5195
|
debug20 14, val, result
|
5199
|
-
|
5196
|
+
|
5200
5197
|
result
|
5201
5198
|
end
|
5202
5199
|
|
@@ -5206,7 +5203,7 @@ def _reduce_318(val, _values, result)
|
|
5206
5203
|
iter.insert 1, call
|
5207
5204
|
result = iter
|
5208
5205
|
# FIX: probably not: call.line = iter.line
|
5209
|
-
|
5206
|
+
|
5210
5207
|
result
|
5211
5208
|
end
|
5212
5209
|
|
@@ -5217,68 +5214,68 @@ def _reduce_320(val, _values, result)
|
|
5217
5214
|
block_dup_check call, iter
|
5218
5215
|
iter.insert 1, call # FIX
|
5219
5216
|
result = iter
|
5220
|
-
|
5217
|
+
|
5221
5218
|
result
|
5222
5219
|
end
|
5223
5220
|
|
5224
5221
|
def _reduce_321(val, _values, result)
|
5225
5222
|
result = val[1] # TODO: fix lineno
|
5226
|
-
|
5223
|
+
|
5227
5224
|
result
|
5228
5225
|
end
|
5229
5226
|
|
5230
5227
|
def _reduce_322(val, _values, result)
|
5231
5228
|
_, c, _, t, f, _ = val
|
5232
5229
|
result = new_if c, t, f
|
5233
|
-
|
5230
|
+
|
5234
5231
|
result
|
5235
5232
|
end
|
5236
5233
|
|
5237
5234
|
def _reduce_323(val, _values, result)
|
5238
5235
|
_, c, _, t, f, _ = val
|
5239
5236
|
result = new_if c, f, t
|
5240
|
-
|
5237
|
+
|
5241
5238
|
result
|
5242
5239
|
end
|
5243
5240
|
|
5244
5241
|
def _reduce_324(val, _values, result)
|
5245
5242
|
_, cond, body, _ = val
|
5246
5243
|
result = new_while body, cond, true
|
5247
|
-
|
5244
|
+
|
5248
5245
|
result
|
5249
5246
|
end
|
5250
5247
|
|
5251
5248
|
def _reduce_325(val, _values, result)
|
5252
5249
|
_, cond, body, _ = val
|
5253
5250
|
result = new_until body, cond, true
|
5254
|
-
|
5251
|
+
|
5255
5252
|
result
|
5256
5253
|
end
|
5257
5254
|
|
5258
5255
|
def _reduce_326(val, _values, result)
|
5259
5256
|
(_, line), expr, _, body, _ = val
|
5260
5257
|
result = new_case expr, body, line
|
5261
|
-
|
5258
|
+
|
5262
5259
|
result
|
5263
5260
|
end
|
5264
5261
|
|
5265
5262
|
def _reduce_327(val, _values, result)
|
5266
5263
|
(_, line), _, body, _ = val
|
5267
5264
|
result = new_case nil, body, line
|
5268
|
-
|
5265
|
+
|
5269
5266
|
result
|
5270
5267
|
end
|
5271
5268
|
|
5272
5269
|
def _reduce_328(val, _values, result)
|
5273
5270
|
_, var, _, iter, body, _ = val
|
5274
5271
|
result = new_for iter, var, body
|
5275
|
-
|
5272
|
+
|
5276
5273
|
result
|
5277
5274
|
end
|
5278
5275
|
|
5279
5276
|
def _reduce_329(val, _values, result)
|
5280
5277
|
result = self.lexer.lineno
|
5281
|
-
|
5278
|
+
|
5282
5279
|
result
|
5283
5280
|
end
|
5284
5281
|
|
@@ -5288,7 +5285,7 @@ def _reduce_330(val, _values, result)
|
|
5288
5285
|
yyerror "class definition in method body"
|
5289
5286
|
end
|
5290
5287
|
self.env.extend
|
5291
|
-
|
5288
|
+
|
5292
5289
|
result
|
5293
5290
|
end
|
5294
5291
|
|
@@ -5296,20 +5293,20 @@ def _reduce_331(val, _values, result)
|
|
5296
5293
|
result = new_class val
|
5297
5294
|
self.env.unextend
|
5298
5295
|
self.lexer.comments # we don't care about comments in the body
|
5299
|
-
|
5296
|
+
|
5300
5297
|
result
|
5301
5298
|
end
|
5302
5299
|
|
5303
5300
|
def _reduce_332(val, _values, result)
|
5304
5301
|
result = self.lexer.lineno
|
5305
|
-
|
5302
|
+
|
5306
5303
|
result
|
5307
5304
|
end
|
5308
5305
|
|
5309
5306
|
def _reduce_333(val, _values, result)
|
5310
5307
|
result = self.in_def
|
5311
5308
|
self.in_def = false
|
5312
|
-
|
5309
|
+
|
5313
5310
|
result
|
5314
5311
|
end
|
5315
5312
|
|
@@ -5317,7 +5314,7 @@ def _reduce_334(val, _values, result)
|
|
5317
5314
|
result = self.in_single
|
5318
5315
|
self.in_single = 0
|
5319
5316
|
self.env.extend
|
5320
|
-
|
5317
|
+
|
5321
5318
|
result
|
5322
5319
|
end
|
5323
5320
|
|
@@ -5325,13 +5322,13 @@ def _reduce_335(val, _values, result)
|
|
5325
5322
|
result = new_sclass val
|
5326
5323
|
self.env.unextend
|
5327
5324
|
self.lexer.comments # we don't care about comments in the body
|
5328
|
-
|
5325
|
+
|
5329
5326
|
result
|
5330
5327
|
end
|
5331
5328
|
|
5332
5329
|
def _reduce_336(val, _values, result)
|
5333
5330
|
result = self.lexer.lineno
|
5334
|
-
|
5331
|
+
|
5335
5332
|
result
|
5336
5333
|
end
|
5337
5334
|
|
@@ -5341,7 +5338,7 @@ def _reduce_337(val, _values, result)
|
|
5341
5338
|
self.in_def or self.in_single > 0
|
5342
5339
|
|
5343
5340
|
self.env.extend
|
5344
|
-
|
5341
|
+
|
5345
5342
|
result
|
5346
5343
|
end
|
5347
5344
|
|
@@ -5349,7 +5346,7 @@ def _reduce_338(val, _values, result)
|
|
5349
5346
|
result = new_module val
|
5350
5347
|
self.env.unextend
|
5351
5348
|
self.lexer.comments # we don't care about comments in the body
|
5352
|
-
|
5349
|
+
|
5353
5350
|
result
|
5354
5351
|
end
|
5355
5352
|
|
@@ -5362,12 +5359,12 @@ def _reduce_339(val, _values, result)
|
|
5362
5359
|
# TODO: local->cmdargs = cmdarg_stack;
|
5363
5360
|
# TODO: port local_push_gen and local_pop_gen
|
5364
5361
|
lexer.cmdarg.stack.replace [false]
|
5365
|
-
|
5362
|
+
|
5366
5363
|
result
|
5367
5364
|
end
|
5368
5365
|
|
5369
5366
|
def _reduce_340(val, _values, result)
|
5370
|
-
result = lexer.lineno
|
5367
|
+
result = lexer.lineno
|
5371
5368
|
result
|
5372
5369
|
end
|
5373
5370
|
|
@@ -5380,14 +5377,14 @@ def _reduce_341(val, _values, result)
|
|
5380
5377
|
self.env.unextend
|
5381
5378
|
self.in_def = in_def
|
5382
5379
|
self.lexer.comments # we don't care about comments in the body
|
5383
|
-
|
5380
|
+
|
5384
5381
|
result
|
5385
5382
|
end
|
5386
5383
|
|
5387
5384
|
def _reduce_342(val, _values, result)
|
5388
5385
|
self.comments.push self.lexer.comments
|
5389
5386
|
lexer.lex_state = EXPR_FNAME
|
5390
|
-
|
5387
|
+
|
5391
5388
|
result
|
5392
5389
|
end
|
5393
5390
|
|
@@ -5397,7 +5394,7 @@ def _reduce_343(val, _values, result)
|
|
5397
5394
|
lexer.lex_state = EXPR_ENDFN # force for args
|
5398
5395
|
result = [lexer.lineno, self.lexer.cmdarg.stack.dup]
|
5399
5396
|
lexer.cmdarg.stack.replace [false]
|
5400
|
-
|
5397
|
+
|
5401
5398
|
result
|
5402
5399
|
end
|
5403
5400
|
|
@@ -5410,41 +5407,41 @@ def _reduce_344(val, _values, result)
|
|
5410
5407
|
self.env.unextend
|
5411
5408
|
self.in_single -= 1
|
5412
5409
|
self.lexer.comments # we don't care about comments in the body
|
5413
|
-
|
5410
|
+
|
5414
5411
|
result
|
5415
5412
|
end
|
5416
5413
|
|
5417
5414
|
def _reduce_345(val, _values, result)
|
5418
5415
|
(_, line), = val
|
5419
5416
|
result = s(:break).line line
|
5420
|
-
|
5417
|
+
|
5421
5418
|
result
|
5422
5419
|
end
|
5423
5420
|
|
5424
5421
|
def _reduce_346(val, _values, result)
|
5425
5422
|
(_, line), = val
|
5426
5423
|
result = s(:next).line line
|
5427
|
-
|
5424
|
+
|
5428
5425
|
result
|
5429
5426
|
end
|
5430
5427
|
|
5431
5428
|
def _reduce_347(val, _values, result)
|
5432
5429
|
(_, line), = val
|
5433
5430
|
result = s(:redo).line line
|
5434
|
-
|
5431
|
+
|
5435
5432
|
result
|
5436
5433
|
end
|
5437
5434
|
|
5438
5435
|
def _reduce_348(val, _values, result)
|
5439
5436
|
(_, line), = val
|
5440
5437
|
result = s(:retry).line line
|
5441
|
-
|
5438
|
+
|
5442
5439
|
result
|
5443
5440
|
end
|
5444
5441
|
|
5445
5442
|
def _reduce_349(val, _values, result)
|
5446
5443
|
result = value_expr(val[0])
|
5447
|
-
|
5444
|
+
|
5448
5445
|
result
|
5449
5446
|
end
|
5450
5447
|
|
@@ -5502,7 +5499,7 @@ def _reduce_375(val, _values, result)
|
|
5502
5499
|
(_, line), c, _, t, rest = val
|
5503
5500
|
|
5504
5501
|
result = s(:if, c, t, rest).line line
|
5505
|
-
|
5502
|
+
|
5506
5503
|
result
|
5507
5504
|
end
|
5508
5505
|
|
@@ -5510,7 +5507,7 @@ end
|
|
5510
5507
|
|
5511
5508
|
def _reduce_377(val, _values, result)
|
5512
5509
|
result = val[1]
|
5513
|
-
|
5510
|
+
|
5514
5511
|
result
|
5515
5512
|
end
|
5516
5513
|
|
@@ -5518,7 +5515,7 @@ end
|
|
5518
5515
|
|
5519
5516
|
def _reduce_379(val, _values, result)
|
5520
5517
|
val[0].delete_at 1 if val[0][1].nil? # HACK
|
5521
|
-
|
5518
|
+
|
5522
5519
|
result
|
5523
5520
|
end
|
5524
5521
|
|
@@ -5526,7 +5523,7 @@ end
|
|
5526
5523
|
|
5527
5524
|
def _reduce_381(val, _values, result)
|
5528
5525
|
result = val[1]
|
5529
|
-
|
5526
|
+
|
5530
5527
|
result
|
5531
5528
|
end
|
5532
5529
|
|
@@ -5534,13 +5531,13 @@ def _reduce_382(val, _values, result)
|
|
5534
5531
|
sym, = val
|
5535
5532
|
|
5536
5533
|
result = s(:array, sym).line lexer.lineno
|
5537
|
-
|
5534
|
+
|
5538
5535
|
result
|
5539
5536
|
end
|
5540
5537
|
|
5541
5538
|
def _reduce_383(val, _values, result)
|
5542
5539
|
result = list_append val[0], val[2]
|
5543
|
-
|
5540
|
+
|
5544
5541
|
result
|
5545
5542
|
end
|
5546
5543
|
|
@@ -5548,7 +5545,7 @@ def _reduce_384(val, _values, result)
|
|
5548
5545
|
args, = val
|
5549
5546
|
|
5550
5547
|
result = block_var args
|
5551
|
-
|
5548
|
+
|
5552
5549
|
result
|
5553
5550
|
end
|
5554
5551
|
|
@@ -5556,7 +5553,7 @@ def _reduce_385(val, _values, result)
|
|
5556
5553
|
args, _, _, splat = val
|
5557
5554
|
|
5558
5555
|
result = block_var args, "*#{splat}".to_sym
|
5559
|
-
|
5556
|
+
|
5560
5557
|
result
|
5561
5558
|
end
|
5562
5559
|
|
@@ -5564,7 +5561,7 @@ def _reduce_386(val, _values, result)
|
|
5564
5561
|
args, _, _, splat, _, args2 = val
|
5565
5562
|
|
5566
5563
|
result = block_var args, "*#{splat}".to_sym, args2
|
5567
|
-
|
5564
|
+
|
5568
5565
|
result
|
5569
5566
|
end
|
5570
5567
|
|
@@ -5572,7 +5569,7 @@ def _reduce_387(val, _values, result)
|
|
5572
5569
|
args, _, _ = val
|
5573
5570
|
|
5574
5571
|
result = block_var args, :*
|
5575
|
-
|
5572
|
+
|
5576
5573
|
result
|
5577
5574
|
end
|
5578
5575
|
|
@@ -5580,7 +5577,7 @@ def _reduce_388(val, _values, result)
|
|
5580
5577
|
args, _, _, _, args2 = val
|
5581
5578
|
|
5582
5579
|
result = block_var args, :*, args2
|
5583
|
-
|
5580
|
+
|
5584
5581
|
result
|
5585
5582
|
end
|
5586
5583
|
|
@@ -5588,7 +5585,7 @@ def _reduce_389(val, _values, result)
|
|
5588
5585
|
_, splat = val
|
5589
5586
|
|
5590
5587
|
result = block_var :"*#{splat}"
|
5591
|
-
|
5588
|
+
|
5592
5589
|
result
|
5593
5590
|
end
|
5594
5591
|
|
@@ -5596,13 +5593,13 @@ def _reduce_390(val, _values, result)
|
|
5596
5593
|
_, splat, _, args = val
|
5597
5594
|
|
5598
5595
|
result = block_var :"*#{splat}", args
|
5599
|
-
|
5596
|
+
|
5600
5597
|
result
|
5601
5598
|
end
|
5602
5599
|
|
5603
5600
|
def _reduce_391(val, _values, result)
|
5604
5601
|
result = block_var :*
|
5605
|
-
|
5602
|
+
|
5606
5603
|
result
|
5607
5604
|
end
|
5608
5605
|
|
@@ -5610,25 +5607,25 @@ def _reduce_392(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
|
|
5617
5614
|
def _reduce_393(val, _values, result)
|
5618
5615
|
result = call_args val
|
5619
|
-
|
5616
|
+
|
5620
5617
|
result
|
5621
5618
|
end
|
5622
5619
|
|
5623
5620
|
def _reduce_394(val, _values, result)
|
5624
5621
|
result = call_args val
|
5625
|
-
|
5622
|
+
|
5626
5623
|
result
|
5627
5624
|
end
|
5628
5625
|
|
5629
5626
|
def _reduce_395(val, _values, result)
|
5630
5627
|
result = call_args val
|
5631
|
-
|
5628
|
+
|
5632
5629
|
result
|
5633
5630
|
end
|
5634
5631
|
|
@@ -5636,13 +5633,13 @@ def _reduce_396(val, _values, result)
|
|
5636
5633
|
line = lexer.lineno
|
5637
5634
|
result = call_args val # TODO: push line down
|
5638
5635
|
result.line line
|
5639
|
-
|
5636
|
+
|
5640
5637
|
result
|
5641
5638
|
end
|
5642
5639
|
|
5643
5640
|
def _reduce_397(val, _values, result)
|
5644
5641
|
result = args val
|
5645
|
-
|
5642
|
+
|
5646
5643
|
result
|
5647
5644
|
end
|
5648
5645
|
|
@@ -5650,122 +5647,122 @@ end
|
|
5650
5647
|
|
5651
5648
|
def _reduce_399(val, _values, result)
|
5652
5649
|
result = args val
|
5653
|
-
|
5650
|
+
|
5654
5651
|
result
|
5655
5652
|
end
|
5656
5653
|
|
5657
5654
|
def _reduce_400(val, _values, result)
|
5658
5655
|
result = args val
|
5659
|
-
|
5656
|
+
|
5660
5657
|
result
|
5661
5658
|
end
|
5662
5659
|
|
5663
5660
|
def _reduce_401(val, _values, result)
|
5664
5661
|
result = args val
|
5665
|
-
|
5662
|
+
|
5666
5663
|
result
|
5667
5664
|
end
|
5668
5665
|
|
5669
5666
|
def _reduce_402(val, _values, result)
|
5670
5667
|
result = args val
|
5671
|
-
|
5668
|
+
|
5672
5669
|
result
|
5673
5670
|
end
|
5674
5671
|
|
5675
5672
|
def _reduce_403(val, _values, result)
|
5676
5673
|
result = args val
|
5677
|
-
|
5674
|
+
|
5678
5675
|
result
|
5679
5676
|
end
|
5680
5677
|
|
5681
5678
|
def _reduce_404(val, _values, result)
|
5682
5679
|
result = args(val) << nil
|
5683
|
-
|
5680
|
+
|
5684
5681
|
result
|
5685
5682
|
end
|
5686
5683
|
|
5687
5684
|
def _reduce_405(val, _values, result)
|
5688
5685
|
result = args val
|
5689
|
-
|
5686
|
+
|
5690
5687
|
result
|
5691
5688
|
end
|
5692
5689
|
|
5693
5690
|
def _reduce_406(val, _values, result)
|
5694
5691
|
result = args val
|
5695
|
-
|
5692
|
+
|
5696
5693
|
result
|
5697
5694
|
end
|
5698
5695
|
|
5699
5696
|
def _reduce_407(val, _values, result)
|
5700
5697
|
result = args val
|
5701
|
-
|
5698
|
+
|
5702
5699
|
result
|
5703
5700
|
end
|
5704
5701
|
|
5705
5702
|
def _reduce_408(val, _values, result)
|
5706
5703
|
result = args val
|
5707
|
-
|
5704
|
+
|
5708
5705
|
result
|
5709
5706
|
end
|
5710
5707
|
|
5711
5708
|
def _reduce_409(val, _values, result)
|
5712
5709
|
result = args val
|
5713
|
-
|
5710
|
+
|
5714
5711
|
result
|
5715
5712
|
end
|
5716
5713
|
|
5717
5714
|
def _reduce_410(val, _values, result)
|
5718
5715
|
result = args val
|
5719
|
-
|
5716
|
+
|
5720
5717
|
result
|
5721
5718
|
end
|
5722
5719
|
|
5723
5720
|
def _reduce_411(val, _values, result)
|
5724
5721
|
result = args val
|
5725
|
-
|
5722
|
+
|
5726
5723
|
result
|
5727
5724
|
end
|
5728
5725
|
|
5729
5726
|
def _reduce_412(val, _values, result)
|
5730
5727
|
result = args val
|
5731
|
-
|
5728
|
+
|
5732
5729
|
result
|
5733
5730
|
end
|
5734
5731
|
|
5735
5732
|
def _reduce_413(val, _values, result)
|
5736
5733
|
result = args val
|
5737
|
-
|
5734
|
+
|
5738
5735
|
result
|
5739
5736
|
end
|
5740
5737
|
|
5741
5738
|
def _reduce_414(val, _values, result)
|
5742
|
-
result = 0
|
5739
|
+
result = 0
|
5743
5740
|
result
|
5744
5741
|
end
|
5745
5742
|
|
5746
5743
|
def _reduce_415(val, _values, result)
|
5747
5744
|
self.lexer.command_start = true
|
5748
|
-
|
5745
|
+
|
5749
5746
|
result
|
5750
5747
|
end
|
5751
5748
|
|
5752
5749
|
def _reduce_416(val, _values, result)
|
5753
5750
|
# TODO: current_arg = 0
|
5754
5751
|
result = args val
|
5755
|
-
|
5752
|
+
|
5756
5753
|
result
|
5757
5754
|
end
|
5758
5755
|
|
5759
5756
|
def _reduce_417(val, _values, result)
|
5760
5757
|
result = s(:args).line lexer.lineno
|
5761
|
-
|
5758
|
+
|
5762
5759
|
result
|
5763
5760
|
end
|
5764
5761
|
|
5765
5762
|
def _reduce_418(val, _values, result)
|
5766
5763
|
# TODO: current_arg = 0
|
5767
5764
|
result = args val
|
5768
|
-
|
5765
|
+
|
5769
5766
|
result
|
5770
5767
|
end
|
5771
5768
|
|
@@ -5773,19 +5770,19 @@ end
|
|
5773
5770
|
|
5774
5771
|
def _reduce_420(val, _values, result)
|
5775
5772
|
result = args val
|
5776
|
-
|
5773
|
+
|
5777
5774
|
result
|
5778
5775
|
end
|
5779
5776
|
|
5780
5777
|
def _reduce_421(val, _values, result)
|
5781
5778
|
result = args val
|
5782
|
-
|
5779
|
+
|
5783
5780
|
result
|
5784
5781
|
end
|
5785
5782
|
|
5786
5783
|
def _reduce_422(val, _values, result)
|
5787
5784
|
result = args val
|
5788
|
-
|
5785
|
+
|
5789
5786
|
result
|
5790
5787
|
end
|
5791
5788
|
|
@@ -5793,7 +5790,7 @@ def _reduce_423(val, _values, result)
|
|
5793
5790
|
id, = val
|
5794
5791
|
line = lexer.lineno
|
5795
5792
|
result = s(:shadow, id.to_sym).line line
|
5796
|
-
|
5793
|
+
|
5797
5794
|
result
|
5798
5795
|
end
|
5799
5796
|
|
@@ -5804,13 +5801,13 @@ def _reduce_425(val, _values, result)
|
|
5804
5801
|
result = [lexer.lineno, lexer.lpar_beg]
|
5805
5802
|
lexer.paren_nest += 1
|
5806
5803
|
lexer.lpar_beg = lexer.paren_nest
|
5807
|
-
|
5804
|
+
|
5808
5805
|
result
|
5809
5806
|
end
|
5810
5807
|
|
5811
5808
|
def _reduce_426(val, _values, result)
|
5812
5809
|
result = lexer.cmdarg.store(false)
|
5813
|
-
|
5810
|
+
|
5814
5811
|
result
|
5815
5812
|
end
|
5816
5813
|
|
@@ -5825,39 +5822,39 @@ def _reduce_427(val, _values, result)
|
|
5825
5822
|
result = new_iter call, args, body
|
5826
5823
|
result.line = line
|
5827
5824
|
self.env.unextend
|
5828
|
-
|
5825
|
+
|
5829
5826
|
result
|
5830
5827
|
end
|
5831
5828
|
|
5832
5829
|
def _reduce_428(val, _values, result)
|
5833
5830
|
result = args val
|
5834
|
-
|
5831
|
+
|
5835
5832
|
result
|
5836
5833
|
end
|
5837
5834
|
|
5838
5835
|
def _reduce_429(val, _values, result)
|
5839
5836
|
result = val[0]
|
5840
5837
|
result = 0 if result == s(:args)
|
5841
|
-
|
5838
|
+
|
5842
5839
|
result
|
5843
5840
|
end
|
5844
5841
|
|
5845
5842
|
def _reduce_430(val, _values, result)
|
5846
5843
|
result = val[1]
|
5847
|
-
|
5844
|
+
|
5848
5845
|
result
|
5849
5846
|
end
|
5850
5847
|
|
5851
5848
|
def _reduce_431(val, _values, result)
|
5852
5849
|
result = val[1]
|
5853
|
-
|
5850
|
+
|
5854
5851
|
result
|
5855
5852
|
end
|
5856
5853
|
|
5857
5854
|
def _reduce_432(val, _values, result)
|
5858
5855
|
(_, line), iter, _ = val
|
5859
5856
|
result = iter.line line
|
5860
|
-
|
5857
|
+
|
5861
5858
|
result
|
5862
5859
|
end
|
5863
5860
|
|
@@ -5875,13 +5872,13 @@ def _reduce_433(val, _values, result)
|
|
5875
5872
|
|
5876
5873
|
result = blk
|
5877
5874
|
result.insert 1, cmd
|
5878
|
-
|
5875
|
+
|
5879
5876
|
result
|
5880
5877
|
end
|
5881
5878
|
|
5882
5879
|
def _reduce_434(val, _values, result)
|
5883
5880
|
result = new_call val[0], val[2].to_sym, val[3]
|
5884
|
-
|
5881
|
+
|
5885
5882
|
result
|
5886
5883
|
end
|
5887
5884
|
|
@@ -5892,7 +5889,7 @@ def _reduce_435(val, _values, result)
|
|
5892
5889
|
iter2.insert 1, call
|
5893
5890
|
|
5894
5891
|
result = iter2
|
5895
|
-
|
5892
|
+
|
5896
5893
|
result
|
5897
5894
|
end
|
5898
5895
|
|
@@ -5903,13 +5900,13 @@ def _reduce_436(val, _values, result)
|
|
5903
5900
|
iter2.insert 1, call
|
5904
5901
|
|
5905
5902
|
result = iter2
|
5906
|
-
|
5903
|
+
|
5907
5904
|
result
|
5908
5905
|
end
|
5909
5906
|
|
5910
5907
|
def _reduce_437(val, _values, result)
|
5911
5908
|
result = self.lexer.lineno
|
5912
|
-
|
5909
|
+
|
5913
5910
|
result
|
5914
5911
|
end
|
5915
5912
|
|
@@ -5918,62 +5915,62 @@ def _reduce_438(val, _values, result)
|
|
5918
5915
|
|
5919
5916
|
result = call.concat args.sexp_body if args
|
5920
5917
|
result.line lineno
|
5921
|
-
|
5918
|
+
|
5922
5919
|
result
|
5923
5920
|
end
|
5924
5921
|
|
5925
5922
|
def _reduce_439(val, _values, result)
|
5926
5923
|
result = new_call val[0], val[2].to_sym, val[3], val[1]
|
5927
|
-
|
5924
|
+
|
5928
5925
|
result
|
5929
5926
|
end
|
5930
5927
|
|
5931
5928
|
def _reduce_440(val, _values, result)
|
5932
5929
|
result = new_call val[0], val[2].to_sym, val[3]
|
5933
|
-
|
5930
|
+
|
5934
5931
|
result
|
5935
5932
|
end
|
5936
5933
|
|
5937
5934
|
def _reduce_441(val, _values, result)
|
5938
5935
|
result = new_call val[0], val[2].to_sym
|
5939
|
-
|
5936
|
+
|
5940
5937
|
result
|
5941
5938
|
end
|
5942
5939
|
|
5943
5940
|
def _reduce_442(val, _values, result)
|
5944
5941
|
result = new_call val[0], :call, val[2], val[1]
|
5945
|
-
|
5942
|
+
|
5946
5943
|
result
|
5947
5944
|
end
|
5948
5945
|
|
5949
5946
|
def _reduce_443(val, _values, result)
|
5950
5947
|
result = new_call val[0], :call, val[2]
|
5951
|
-
|
5948
|
+
|
5952
5949
|
result
|
5953
5950
|
end
|
5954
5951
|
|
5955
5952
|
def _reduce_444(val, _values, result)
|
5956
5953
|
result = new_super val[1]
|
5957
|
-
|
5954
|
+
|
5958
5955
|
result
|
5959
5956
|
end
|
5960
5957
|
|
5961
5958
|
def _reduce_445(val, _values, result)
|
5962
5959
|
result = s(:zsuper).line lexer.lineno
|
5963
|
-
|
5960
|
+
|
5964
5961
|
result
|
5965
5962
|
end
|
5966
5963
|
|
5967
5964
|
def _reduce_446(val, _values, result)
|
5968
5965
|
result = new_aref val
|
5969
|
-
|
5966
|
+
|
5970
5967
|
result
|
5971
5968
|
end
|
5972
5969
|
|
5973
5970
|
def _reduce_447(val, _values, result)
|
5974
5971
|
self.env.extend :dynamic
|
5975
5972
|
result = self.lexer.lineno
|
5976
|
-
|
5973
|
+
|
5977
5974
|
result
|
5978
5975
|
end
|
5979
5976
|
|
@@ -5984,14 +5981,14 @@ def _reduce_448(val, _values, result)
|
|
5984
5981
|
result.line = line
|
5985
5982
|
|
5986
5983
|
self.env.unextend
|
5987
|
-
|
5984
|
+
|
5988
5985
|
result
|
5989
5986
|
end
|
5990
5987
|
|
5991
5988
|
def _reduce_449(val, _values, result)
|
5992
5989
|
self.env.extend :dynamic
|
5993
5990
|
result = self.lexer.lineno
|
5994
|
-
|
5991
|
+
|
5995
5992
|
result
|
5996
5993
|
end
|
5997
5994
|
|
@@ -6002,17 +5999,17 @@ def _reduce_450(val, _values, result)
|
|
6002
5999
|
result.line = line
|
6003
6000
|
|
6004
6001
|
self.env.unextend
|
6005
|
-
|
6002
|
+
|
6006
6003
|
result
|
6007
6004
|
end
|
6008
6005
|
|
6009
6006
|
def _reduce_451(val, _values, result)
|
6010
|
-
self.env.extend :dynamic; result = self.lexer.lineno
|
6007
|
+
self.env.extend :dynamic; result = self.lexer.lineno
|
6011
6008
|
result
|
6012
6009
|
end
|
6013
6010
|
|
6014
6011
|
def _reduce_452(val, _values, result)
|
6015
|
-
result = lexer.cmdarg.store(false)
|
6012
|
+
result = lexer.cmdarg.store(false)
|
6016
6013
|
result
|
6017
6014
|
end
|
6018
6015
|
|
@@ -6023,17 +6020,17 @@ def _reduce_453(val, _values, result)
|
|
6023
6020
|
self.env.unextend
|
6024
6021
|
lexer.cmdarg.restore cmdarg
|
6025
6022
|
lexer.cmdarg.pop # because of: cmdarg_stack >> 1 ?
|
6026
|
-
|
6023
|
+
|
6027
6024
|
result
|
6028
6025
|
end
|
6029
6026
|
|
6030
6027
|
def _reduce_454(val, _values, result)
|
6031
|
-
self.env.extend :dynamic; result = self.lexer.lineno
|
6028
|
+
self.env.extend :dynamic; result = self.lexer.lineno
|
6032
6029
|
result
|
6033
6030
|
end
|
6034
6031
|
|
6035
6032
|
def _reduce_455(val, _values, result)
|
6036
|
-
result = lexer.cmdarg.store(false)
|
6033
|
+
result = lexer.cmdarg.store(false)
|
6037
6034
|
result
|
6038
6035
|
end
|
6039
6036
|
|
@@ -6043,13 +6040,13 @@ def _reduce_456(val, _values, result)
|
|
6043
6040
|
result = new_do_body param, cmpstmt, line
|
6044
6041
|
self.env.unextend
|
6045
6042
|
lexer.cmdarg.restore cmdarg
|
6046
|
-
|
6043
|
+
|
6047
6044
|
result
|
6048
6045
|
end
|
6049
6046
|
|
6050
6047
|
def _reduce_457(val, _values, result)
|
6051
6048
|
result = self.lexer.lineno
|
6052
|
-
|
6049
|
+
|
6053
6050
|
result
|
6054
6051
|
end
|
6055
6052
|
|
@@ -6057,7 +6054,7 @@ def _reduce_458(val, _values, result)
|
|
6057
6054
|
result = new_when(val[2], val[4])
|
6058
6055
|
result.line = val[1]
|
6059
6056
|
result << val[5] if val[5]
|
6060
|
-
|
6057
|
+
|
6061
6058
|
result
|
6062
6059
|
end
|
6063
6060
|
|
@@ -6074,20 +6071,20 @@ def _reduce_461(val, _values, result)
|
|
6074
6071
|
|
6075
6072
|
result = new_resbody(klasses, body)
|
6076
6073
|
result << rest if rest # UGH, rewritten above
|
6077
|
-
|
6074
|
+
|
6078
6075
|
result
|
6079
6076
|
end
|
6080
6077
|
|
6081
6078
|
def _reduce_462(val, _values, result)
|
6082
6079
|
result = nil
|
6083
|
-
|
6080
|
+
|
6084
6081
|
result
|
6085
6082
|
end
|
6086
6083
|
|
6087
6084
|
def _reduce_463(val, _values, result)
|
6088
6085
|
arg, = val
|
6089
6086
|
result = s(:array, arg).line arg.line
|
6090
|
-
|
6087
|
+
|
6091
6088
|
result
|
6092
6089
|
end
|
6093
6090
|
|
@@ -6097,7 +6094,7 @@ end
|
|
6097
6094
|
|
6098
6095
|
def _reduce_466(val, _values, result)
|
6099
6096
|
result = val[1]
|
6100
|
-
|
6097
|
+
|
6101
6098
|
result
|
6102
6099
|
end
|
6103
6100
|
|
@@ -6107,7 +6104,7 @@ def _reduce_468(val, _values, result)
|
|
6107
6104
|
(_, line), body = val
|
6108
6105
|
|
6109
6106
|
result = body || s(:nil).line(line)
|
6110
|
-
|
6107
|
+
|
6111
6108
|
result
|
6112
6109
|
end
|
6113
6110
|
|
@@ -6117,7 +6114,7 @@ def _reduce_470(val, _values, result)
|
|
6117
6114
|
line = lexer.lineno
|
6118
6115
|
result = s(:lit, val[0])
|
6119
6116
|
result.line = line
|
6120
|
-
|
6117
|
+
|
6121
6118
|
result
|
6122
6119
|
end
|
6123
6120
|
|
@@ -6125,7 +6122,7 @@ def _reduce_471(val, _values, result)
|
|
6125
6122
|
line = lexer.lineno
|
6126
6123
|
result = s(:lit, val[0])
|
6127
6124
|
result.line = line
|
6128
|
-
|
6125
|
+
|
6129
6126
|
result
|
6130
6127
|
end
|
6131
6128
|
|
@@ -6135,13 +6132,13 @@ def _reduce_473(val, _values, result)
|
|
6135
6132
|
str, = val
|
6136
6133
|
str = s(:dstr, str.value) if str.sexp_type == :evstr
|
6137
6134
|
result = str
|
6138
|
-
|
6135
|
+
|
6139
6136
|
result
|
6140
6137
|
end
|
6141
6138
|
|
6142
6139
|
def _reduce_474(val, _values, result)
|
6143
6140
|
debug20 23, val, result
|
6144
|
-
|
6141
|
+
|
6145
6142
|
result
|
6146
6143
|
end
|
6147
6144
|
|
@@ -6149,7 +6146,7 @@ end
|
|
6149
6146
|
|
6150
6147
|
def _reduce_476(val, _values, result)
|
6151
6148
|
result = self.literal_concat val[0], val[1]
|
6152
|
-
|
6149
|
+
|
6153
6150
|
result
|
6154
6151
|
end
|
6155
6152
|
|
@@ -6159,50 +6156,50 @@ def _reduce_477(val, _values, result)
|
|
6159
6156
|
str = dedent str if func =~ RubyLexer::STR_FUNC_ICNTNT
|
6160
6157
|
|
6161
6158
|
result = str
|
6162
|
-
|
6159
|
+
|
6163
6160
|
result
|
6164
6161
|
end
|
6165
6162
|
|
6166
6163
|
def _reduce_478(val, _values, result)
|
6167
6164
|
result = new_string val
|
6168
|
-
|
6165
|
+
|
6169
6166
|
result
|
6170
6167
|
end
|
6171
6168
|
|
6172
6169
|
def _reduce_479(val, _values, result)
|
6173
6170
|
result = new_xstring val[1]
|
6174
6171
|
# TODO: dedent?!?! SERIOUSLY?!?
|
6175
|
-
|
6172
|
+
|
6176
6173
|
result
|
6177
6174
|
end
|
6178
6175
|
|
6179
6176
|
def _reduce_480(val, _values, result)
|
6180
6177
|
result = new_regexp val
|
6181
|
-
|
6178
|
+
|
6182
6179
|
result
|
6183
6180
|
end
|
6184
6181
|
|
6185
6182
|
def _reduce_481(val, _values, result)
|
6186
6183
|
result = s(:array).line lexer.lineno
|
6187
|
-
|
6184
|
+
|
6188
6185
|
result
|
6189
6186
|
end
|
6190
6187
|
|
6191
6188
|
def _reduce_482(val, _values, result)
|
6192
6189
|
result = val[1]
|
6193
|
-
|
6190
|
+
|
6194
6191
|
result
|
6195
6192
|
end
|
6196
6193
|
|
6197
6194
|
def _reduce_483(val, _values, result)
|
6198
6195
|
result = new_word_list
|
6199
|
-
|
6196
|
+
|
6200
6197
|
result
|
6201
6198
|
end
|
6202
6199
|
|
6203
6200
|
def _reduce_484(val, _values, result)
|
6204
6201
|
result = val[0].dup << new_word_list_entry(val)
|
6205
|
-
|
6202
|
+
|
6206
6203
|
result
|
6207
6204
|
end
|
6208
6205
|
|
@@ -6210,18 +6207,18 @@ end
|
|
6210
6207
|
|
6211
6208
|
def _reduce_486(val, _values, result)
|
6212
6209
|
result = self.literal_concat val[0], val[1]
|
6213
|
-
|
6210
|
+
|
6214
6211
|
result
|
6215
6212
|
end
|
6216
6213
|
|
6217
6214
|
def _reduce_487(val, _values, result)
|
6218
6215
|
result = s(:array).line lexer.lineno
|
6219
|
-
|
6216
|
+
|
6220
6217
|
result
|
6221
6218
|
end
|
6222
6219
|
|
6223
6220
|
def _reduce_488(val, _values, result)
|
6224
|
-
result = lexer.lineno
|
6221
|
+
result = lexer.lineno
|
6225
6222
|
result
|
6226
6223
|
end
|
6227
6224
|
|
@@ -6229,113 +6226,113 @@ def _reduce_489(val, _values, result)
|
|
6229
6226
|
_, line, list, _, = val
|
6230
6227
|
list.line = line
|
6231
6228
|
result = list
|
6232
|
-
|
6229
|
+
|
6233
6230
|
result
|
6234
6231
|
end
|
6235
6232
|
|
6236
6233
|
def _reduce_490(val, _values, result)
|
6237
6234
|
result = new_symbol_list.line lexer.lineno
|
6238
|
-
|
6235
|
+
|
6239
6236
|
result
|
6240
6237
|
end
|
6241
6238
|
|
6242
6239
|
def _reduce_491(val, _values, result)
|
6243
6240
|
list, * = val
|
6244
6241
|
result = list.dup << new_symbol_list_entry(val)
|
6245
|
-
|
6242
|
+
|
6246
6243
|
result
|
6247
6244
|
end
|
6248
6245
|
|
6249
6246
|
def _reduce_492(val, _values, result)
|
6250
6247
|
result = s(:array).line lexer.lineno
|
6251
|
-
|
6248
|
+
|
6252
6249
|
result
|
6253
6250
|
end
|
6254
6251
|
|
6255
6252
|
def _reduce_493(val, _values, result)
|
6256
6253
|
result = val[1]
|
6257
|
-
|
6254
|
+
|
6258
6255
|
result
|
6259
6256
|
end
|
6260
6257
|
|
6261
6258
|
def _reduce_494(val, _values, result)
|
6262
6259
|
result = s(:array).line lexer.lineno # FIX
|
6263
|
-
|
6260
|
+
|
6264
6261
|
result
|
6265
6262
|
end
|
6266
6263
|
|
6267
6264
|
def _reduce_495(val, _values, result)
|
6268
6265
|
result = val[1]
|
6269
|
-
|
6266
|
+
|
6270
6267
|
result
|
6271
6268
|
end
|
6272
6269
|
|
6273
6270
|
def _reduce_496(val, _values, result)
|
6274
6271
|
result = new_qword_list
|
6275
|
-
|
6272
|
+
|
6276
6273
|
result
|
6277
6274
|
end
|
6278
6275
|
|
6279
6276
|
def _reduce_497(val, _values, result)
|
6280
6277
|
result = val[0].dup << new_qword_list_entry(val)
|
6281
|
-
|
6278
|
+
|
6282
6279
|
result
|
6283
6280
|
end
|
6284
6281
|
|
6285
6282
|
def _reduce_498(val, _values, result)
|
6286
6283
|
result = new_qsym_list
|
6287
|
-
|
6284
|
+
|
6288
6285
|
result
|
6289
6286
|
end
|
6290
6287
|
|
6291
6288
|
def _reduce_499(val, _values, result)
|
6292
6289
|
result = val[0].dup << new_qsym_list_entry(val)
|
6293
|
-
|
6290
|
+
|
6294
6291
|
result
|
6295
6292
|
end
|
6296
6293
|
|
6297
6294
|
def _reduce_500(val, _values, result)
|
6298
6295
|
result = s(:str, "").line lexer.lineno
|
6299
|
-
|
6296
|
+
|
6300
6297
|
result
|
6301
6298
|
end
|
6302
6299
|
|
6303
6300
|
def _reduce_501(val, _values, result)
|
6304
6301
|
v1, v2 = val
|
6305
6302
|
result = literal_concat v1, v2
|
6306
|
-
|
6303
|
+
|
6307
6304
|
result
|
6308
6305
|
end
|
6309
6306
|
|
6310
6307
|
def _reduce_502(val, _values, result)
|
6311
6308
|
result = nil
|
6312
|
-
|
6309
|
+
|
6313
6310
|
result
|
6314
6311
|
end
|
6315
6312
|
|
6316
6313
|
def _reduce_503(val, _values, result)
|
6317
6314
|
v1, v2 = val
|
6318
6315
|
result = literal_concat v1, v2
|
6319
|
-
|
6316
|
+
|
6320
6317
|
result
|
6321
6318
|
end
|
6322
6319
|
|
6323
6320
|
def _reduce_504(val, _values, result)
|
6324
6321
|
result = nil
|
6325
|
-
|
6322
|
+
|
6326
6323
|
result
|
6327
6324
|
end
|
6328
6325
|
|
6329
6326
|
def _reduce_505(val, _values, result)
|
6330
6327
|
v1, v2 = val
|
6331
6328
|
result = literal_concat v1, v2
|
6332
|
-
|
6329
|
+
|
6333
6330
|
result
|
6334
6331
|
end
|
6335
6332
|
|
6336
6333
|
def _reduce_506(val, _values, result)
|
6337
6334
|
result = new_string val
|
6338
|
-
|
6335
|
+
|
6339
6336
|
result
|
6340
6337
|
end
|
6341
6338
|
|
@@ -6344,7 +6341,7 @@ def _reduce_507(val, _values, result)
|
|
6344
6341
|
|
6345
6342
|
lexer.lex_strterm = nil
|
6346
6343
|
lexer.lex_state = EXPR_BEG
|
6347
|
-
|
6344
|
+
|
6348
6345
|
result
|
6349
6346
|
end
|
6350
6347
|
|
@@ -6352,7 +6349,7 @@ def _reduce_508(val, _values, result)
|
|
6352
6349
|
_, strterm, str = val
|
6353
6350
|
lexer.lex_strterm = strterm
|
6354
6351
|
result = s(:evstr, str).line str.line
|
6355
|
-
|
6352
|
+
|
6356
6353
|
result
|
6357
6354
|
end
|
6358
6355
|
|
@@ -6371,7 +6368,7 @@ def _reduce_509(val, _values, result)
|
|
6371
6368
|
lexer.string_nest = 0
|
6372
6369
|
|
6373
6370
|
lexer.lex_state = EXPR_BEG
|
6374
|
-
|
6371
|
+
|
6375
6372
|
result
|
6376
6373
|
end
|
6377
6374
|
|
@@ -6403,22 +6400,22 @@ def _reduce_510(val, _values, result)
|
|
6403
6400
|
debug20 25
|
6404
6401
|
raise "unknown string body: #{stmt.inspect}"
|
6405
6402
|
end
|
6406
|
-
|
6403
|
+
|
6407
6404
|
result
|
6408
6405
|
end
|
6409
6406
|
|
6410
6407
|
def _reduce_511(val, _values, result)
|
6411
|
-
result = s(:gvar, val[0].to_sym).line lexer.lineno
|
6408
|
+
result = s(:gvar, val[0].to_sym).line lexer.lineno
|
6412
6409
|
result
|
6413
6410
|
end
|
6414
6411
|
|
6415
6412
|
def _reduce_512(val, _values, result)
|
6416
|
-
result = s(:ivar, val[0].to_sym).line lexer.lineno
|
6413
|
+
result = s(:ivar, val[0].to_sym).line lexer.lineno
|
6417
6414
|
result
|
6418
6415
|
end
|
6419
6416
|
|
6420
6417
|
def _reduce_513(val, _values, result)
|
6421
|
-
result = s(:cvar, val[0].to_sym).line lexer.lineno
|
6418
|
+
result = s(:cvar, val[0].to_sym).line lexer.lineno
|
6422
6419
|
result
|
6423
6420
|
end
|
6424
6421
|
|
@@ -6427,13 +6424,13 @@ end
|
|
6427
6424
|
def _reduce_515(val, _values, result)
|
6428
6425
|
lexer.lex_state = EXPR_END
|
6429
6426
|
result = val[1].to_sym
|
6430
|
-
|
6427
|
+
|
6431
6428
|
result
|
6432
6429
|
end
|
6433
6430
|
|
6434
6431
|
def _reduce_516(val, _values, result)
|
6435
6432
|
result = val[0].to_sym
|
6436
|
-
|
6433
|
+
|
6437
6434
|
result
|
6438
6435
|
end
|
6439
6436
|
|
@@ -6462,7 +6459,7 @@ def _reduce_521(val, _values, result)
|
|
6462
6459
|
else
|
6463
6460
|
debug20 26, val, result
|
6464
6461
|
end
|
6465
|
-
|
6462
|
+
|
6466
6463
|
result
|
6467
6464
|
end
|
6468
6465
|
|
@@ -6470,7 +6467,7 @@ end
|
|
6470
6467
|
|
6471
6468
|
def _reduce_523(val, _values, result)
|
6472
6469
|
result = -val[1] # TODO: pt_testcase
|
6473
|
-
|
6470
|
+
|
6474
6471
|
result
|
6475
6472
|
end
|
6476
6473
|
|
@@ -6493,32 +6490,32 @@ end
|
|
6493
6490
|
# reduce 532 omitted
|
6494
6491
|
|
6495
6492
|
def _reduce_533(val, _values, result)
|
6496
|
-
result = s(:nil).line lexer.lineno
|
6493
|
+
result = s(:nil).line lexer.lineno
|
6497
6494
|
result
|
6498
6495
|
end
|
6499
6496
|
|
6500
6497
|
def _reduce_534(val, _values, result)
|
6501
|
-
result = s(:self).line lexer.lineno
|
6498
|
+
result = s(:self).line lexer.lineno
|
6502
6499
|
result
|
6503
6500
|
end
|
6504
6501
|
|
6505
6502
|
def _reduce_535(val, _values, result)
|
6506
|
-
result = s(:true).line lexer.lineno
|
6503
|
+
result = s(:true).line lexer.lineno
|
6507
6504
|
result
|
6508
6505
|
end
|
6509
6506
|
|
6510
6507
|
def _reduce_536(val, _values, result)
|
6511
|
-
result = s(:false).line lexer.lineno
|
6508
|
+
result = s(:false).line lexer.lineno
|
6512
6509
|
result
|
6513
6510
|
end
|
6514
6511
|
|
6515
6512
|
def _reduce_537(val, _values, result)
|
6516
|
-
result = s(:str, self.file).line lexer.lineno
|
6513
|
+
result = s(:str, self.file).line lexer.lineno
|
6517
6514
|
result
|
6518
6515
|
end
|
6519
6516
|
|
6520
6517
|
def _reduce_538(val, _values, result)
|
6521
|
-
result = s(:lit, lexer.lineno).line lexer.lineno
|
6518
|
+
result = s(:lit, lexer.lineno).line lexer.lineno
|
6522
6519
|
result
|
6523
6520
|
end
|
6524
6521
|
|
@@ -6530,63 +6527,63 @@ def _reduce_539(val, _values, result)
|
|
6530
6527
|
else
|
6531
6528
|
s(:str, "Unsupported!").line l
|
6532
6529
|
end
|
6533
|
-
|
6530
|
+
|
6534
6531
|
result
|
6535
6532
|
end
|
6536
6533
|
|
6537
6534
|
def _reduce_540(val, _values, result)
|
6538
6535
|
var = val[0]
|
6539
6536
|
result = Sexp === var ? var : self.gettable(var)
|
6540
|
-
|
6537
|
+
|
6541
6538
|
result
|
6542
6539
|
end
|
6543
6540
|
|
6544
6541
|
def _reduce_541(val, _values, result)
|
6545
6542
|
var = val[0]
|
6546
6543
|
result = Sexp === var ? var : self.gettable(var)
|
6547
|
-
|
6544
|
+
|
6548
6545
|
result
|
6549
6546
|
end
|
6550
6547
|
|
6551
6548
|
def _reduce_542(val, _values, result)
|
6552
6549
|
result = self.assignable val[0]
|
6553
|
-
|
6550
|
+
|
6554
6551
|
result
|
6555
6552
|
end
|
6556
6553
|
|
6557
6554
|
def _reduce_543(val, _values, result)
|
6558
6555
|
result = self.assignable val[0]
|
6559
6556
|
debug20 29, val, result
|
6560
|
-
|
6557
|
+
|
6561
6558
|
result
|
6562
6559
|
end
|
6563
6560
|
|
6564
6561
|
def _reduce_544(val, _values, result)
|
6565
|
-
result = s(:nth_ref, val[0]).line lexer.lineno
|
6562
|
+
result = s(:nth_ref, val[0]).line lexer.lineno
|
6566
6563
|
result
|
6567
6564
|
end
|
6568
6565
|
|
6569
6566
|
def _reduce_545(val, _values, result)
|
6570
|
-
result = s(:back_ref, val[0]).line lexer.lineno
|
6567
|
+
result = s(:back_ref, val[0]).line lexer.lineno
|
6571
6568
|
result
|
6572
6569
|
end
|
6573
6570
|
|
6574
6571
|
def _reduce_546(val, _values, result)
|
6575
6572
|
lexer.lex_state = EXPR_BEG
|
6576
6573
|
lexer.command_start = true
|
6577
|
-
|
6574
|
+
|
6578
6575
|
result
|
6579
6576
|
end
|
6580
6577
|
|
6581
6578
|
def _reduce_547(val, _values, result)
|
6582
6579
|
result = val[2]
|
6583
|
-
|
6580
|
+
|
6584
6581
|
result
|
6585
6582
|
end
|
6586
6583
|
|
6587
6584
|
def _reduce_548(val, _values, result)
|
6588
6585
|
result = nil
|
6589
|
-
|
6586
|
+
|
6590
6587
|
result
|
6591
6588
|
end
|
6592
6589
|
|
@@ -6594,7 +6591,7 @@ def _reduce_549(val, _values, result)
|
|
6594
6591
|
result = val[1]
|
6595
6592
|
self.lexer.lex_state = EXPR_BEG
|
6596
6593
|
self.lexer.command_start = true
|
6597
|
-
|
6594
|
+
|
6598
6595
|
result
|
6599
6596
|
end
|
6600
6597
|
|
@@ -6602,7 +6599,7 @@ def _reduce_550(val, _values, result)
|
|
6602
6599
|
result = self.in_kwarg
|
6603
6600
|
self.in_kwarg = true
|
6604
6601
|
self.lexer.lex_state |= EXPR_LABEL
|
6605
|
-
|
6602
|
+
|
6606
6603
|
result
|
6607
6604
|
end
|
6608
6605
|
|
@@ -6613,25 +6610,25 @@ def _reduce_551(val, _values, result)
|
|
6613
6610
|
result = args
|
6614
6611
|
lexer.lex_state = EXPR_BEG
|
6615
6612
|
lexer.command_start = true
|
6616
|
-
|
6613
|
+
|
6617
6614
|
result
|
6618
6615
|
end
|
6619
6616
|
|
6620
6617
|
def _reduce_552(val, _values, result)
|
6621
6618
|
result = args val
|
6622
|
-
|
6619
|
+
|
6623
6620
|
result
|
6624
6621
|
end
|
6625
6622
|
|
6626
6623
|
def _reduce_553(val, _values, result)
|
6627
6624
|
result = args val
|
6628
|
-
|
6625
|
+
|
6629
6626
|
result
|
6630
6627
|
end
|
6631
6628
|
|
6632
6629
|
def _reduce_554(val, _values, result)
|
6633
6630
|
result = args val
|
6634
|
-
|
6631
|
+
|
6635
6632
|
result
|
6636
6633
|
end
|
6637
6634
|
|
@@ -6639,127 +6636,127 @@ end
|
|
6639
6636
|
|
6640
6637
|
def _reduce_556(val, _values, result)
|
6641
6638
|
result = val[1]
|
6642
|
-
|
6639
|
+
|
6643
6640
|
result
|
6644
6641
|
end
|
6645
6642
|
|
6646
6643
|
def _reduce_557(val, _values, result)
|
6647
6644
|
result = nil
|
6648
|
-
|
6645
|
+
|
6649
6646
|
result
|
6650
6647
|
end
|
6651
6648
|
|
6652
6649
|
def _reduce_558(val, _values, result)
|
6653
6650
|
result = args val
|
6654
|
-
|
6651
|
+
|
6655
6652
|
result
|
6656
6653
|
end
|
6657
6654
|
|
6658
6655
|
def _reduce_559(val, _values, result)
|
6659
6656
|
result = args val
|
6660
|
-
|
6657
|
+
|
6661
6658
|
result
|
6662
6659
|
end
|
6663
6660
|
|
6664
6661
|
def _reduce_560(val, _values, result)
|
6665
6662
|
result = args val
|
6666
|
-
|
6663
|
+
|
6667
6664
|
result
|
6668
6665
|
end
|
6669
6666
|
|
6670
6667
|
def _reduce_561(val, _values, result)
|
6671
6668
|
result = args val
|
6672
|
-
|
6669
|
+
|
6673
6670
|
result
|
6674
6671
|
end
|
6675
6672
|
|
6676
6673
|
def _reduce_562(val, _values, result)
|
6677
6674
|
result = args val
|
6678
|
-
|
6675
|
+
|
6679
6676
|
result
|
6680
6677
|
end
|
6681
6678
|
|
6682
6679
|
def _reduce_563(val, _values, result)
|
6683
6680
|
result = args val
|
6684
|
-
|
6681
|
+
|
6685
6682
|
result
|
6686
6683
|
end
|
6687
6684
|
|
6688
6685
|
def _reduce_564(val, _values, result)
|
6689
6686
|
result = args val
|
6690
|
-
|
6687
|
+
|
6691
6688
|
result
|
6692
6689
|
end
|
6693
6690
|
|
6694
6691
|
def _reduce_565(val, _values, result)
|
6695
6692
|
result = args val
|
6696
|
-
|
6693
|
+
|
6697
6694
|
result
|
6698
6695
|
end
|
6699
6696
|
|
6700
6697
|
def _reduce_566(val, _values, result)
|
6701
6698
|
result = args val
|
6702
|
-
|
6699
|
+
|
6703
6700
|
result
|
6704
6701
|
end
|
6705
6702
|
|
6706
6703
|
def _reduce_567(val, _values, result)
|
6707
6704
|
result = args val
|
6708
|
-
|
6705
|
+
|
6709
6706
|
result
|
6710
6707
|
end
|
6711
6708
|
|
6712
6709
|
def _reduce_568(val, _values, result)
|
6713
6710
|
result = args val
|
6714
|
-
|
6711
|
+
|
6715
6712
|
result
|
6716
6713
|
end
|
6717
6714
|
|
6718
6715
|
def _reduce_569(val, _values, result)
|
6719
6716
|
result = args val
|
6720
|
-
|
6717
|
+
|
6721
6718
|
result
|
6722
6719
|
end
|
6723
6720
|
|
6724
6721
|
def _reduce_570(val, _values, result)
|
6725
6722
|
result = args val
|
6726
|
-
|
6723
|
+
|
6727
6724
|
result
|
6728
6725
|
end
|
6729
6726
|
|
6730
6727
|
def _reduce_571(val, _values, result)
|
6731
6728
|
result = args val
|
6732
|
-
|
6729
|
+
|
6733
6730
|
result
|
6734
6731
|
end
|
6735
6732
|
|
6736
6733
|
def _reduce_572(val, _values, result)
|
6737
6734
|
result = args val
|
6738
|
-
|
6735
|
+
|
6739
6736
|
result
|
6740
6737
|
end
|
6741
6738
|
|
6742
6739
|
def _reduce_573(val, _values, result)
|
6743
6740
|
yyerror "formal argument cannot be a constant"
|
6744
|
-
|
6741
|
+
|
6745
6742
|
result
|
6746
6743
|
end
|
6747
6744
|
|
6748
6745
|
def _reduce_574(val, _values, result)
|
6749
6746
|
yyerror "formal argument cannot be an instance variable"
|
6750
|
-
|
6747
|
+
|
6751
6748
|
result
|
6752
6749
|
end
|
6753
6750
|
|
6754
6751
|
def _reduce_575(val, _values, result)
|
6755
6752
|
yyerror "formal argument cannot be a global variable"
|
6756
|
-
|
6753
|
+
|
6757
6754
|
result
|
6758
6755
|
end
|
6759
6756
|
|
6760
6757
|
def _reduce_576(val, _values, result)
|
6761
6758
|
yyerror "formal argument cannot be a class variable"
|
6762
|
-
|
6759
|
+
|
6763
6760
|
result
|
6764
6761
|
end
|
6765
6762
|
|
@@ -6770,7 +6767,7 @@ def _reduce_578(val, _values, result)
|
|
6770
6767
|
self.env[identifier] = :lvar
|
6771
6768
|
|
6772
6769
|
result = identifier
|
6773
|
-
|
6770
|
+
|
6774
6771
|
result
|
6775
6772
|
end
|
6776
6773
|
|
@@ -6778,7 +6775,7 @@ end
|
|
6778
6775
|
|
6779
6776
|
def _reduce_580(val, _values, result)
|
6780
6777
|
result = val[1]
|
6781
|
-
|
6778
|
+
|
6782
6779
|
result
|
6783
6780
|
end
|
6784
6781
|
|
@@ -6794,7 +6791,7 @@ def _reduce_581(val, _values, result)
|
|
6794
6791
|
debug20 32
|
6795
6792
|
raise "Unknown f_arg type: #{val.inspect}"
|
6796
6793
|
end
|
6797
|
-
|
6794
|
+
|
6798
6795
|
result
|
6799
6796
|
end
|
6800
6797
|
|
@@ -6808,7 +6805,7 @@ def _reduce_582(val, _values, result)
|
|
6808
6805
|
end
|
6809
6806
|
|
6810
6807
|
result << item
|
6811
|
-
|
6808
|
+
|
6812
6809
|
result
|
6813
6810
|
end
|
6814
6811
|
|
@@ -6823,7 +6820,7 @@ def _reduce_584(val, _values, result)
|
|
6823
6820
|
|
6824
6821
|
kwarg = s(:kwarg, identifier, arg).line line
|
6825
6822
|
result = s(:array, kwarg).line line
|
6826
|
-
|
6823
|
+
|
6827
6824
|
result
|
6828
6825
|
end
|
6829
6826
|
|
@@ -6834,7 +6831,7 @@ def _reduce_585(val, _values, result)
|
|
6834
6831
|
self.env[id] = :lvar
|
6835
6832
|
|
6836
6833
|
result = s(:array, s(:kwarg, id).line(line)).line line
|
6837
|
-
|
6834
|
+
|
6838
6835
|
result
|
6839
6836
|
end
|
6840
6837
|
|
@@ -6845,7 +6842,7 @@ def _reduce_586(val, _values, result)
|
|
6845
6842
|
self.env[id] = :lvar
|
6846
6843
|
|
6847
6844
|
result = s(:array, s(:kwarg, id, expr).line(line)).line line
|
6848
|
-
|
6845
|
+
|
6849
6846
|
result
|
6850
6847
|
end
|
6851
6848
|
|
@@ -6856,7 +6853,7 @@ def _reduce_587(val, _values, result)
|
|
6856
6853
|
self.env[id] = :lvar
|
6857
6854
|
|
6858
6855
|
result = s(:array, s(:kwarg, id).line(line)).line line
|
6859
|
-
|
6856
|
+
|
6860
6857
|
result
|
6861
6858
|
end
|
6862
6859
|
|
@@ -6865,7 +6862,7 @@ end
|
|
6865
6862
|
def _reduce_589(val, _values, result)
|
6866
6863
|
list, _, item = val
|
6867
6864
|
result = list << item.last
|
6868
|
-
|
6865
|
+
|
6869
6866
|
result
|
6870
6867
|
end
|
6871
6868
|
|
@@ -6873,7 +6870,7 @@ end
|
|
6873
6870
|
|
6874
6871
|
def _reduce_591(val, _values, result)
|
6875
6872
|
result = args val
|
6876
|
-
|
6873
|
+
|
6877
6874
|
result
|
6878
6875
|
end
|
6879
6876
|
|
@@ -6885,33 +6882,33 @@ def _reduce_594(val, _values, result)
|
|
6885
6882
|
name = val[1].to_sym
|
6886
6883
|
self.assignable name
|
6887
6884
|
result = :"**#{name}"
|
6888
|
-
|
6885
|
+
|
6889
6886
|
result
|
6890
6887
|
end
|
6891
6888
|
|
6892
6889
|
def _reduce_595(val, _values, result)
|
6893
6890
|
result = :"**"
|
6894
|
-
|
6891
|
+
|
6895
6892
|
result
|
6896
6893
|
end
|
6897
6894
|
|
6898
6895
|
def _reduce_596(val, _values, result)
|
6899
6896
|
result = self.assignable val[0], val[2]
|
6900
6897
|
# TODO: detect duplicate names
|
6901
|
-
|
6898
|
+
|
6902
6899
|
result
|
6903
6900
|
end
|
6904
6901
|
|
6905
6902
|
def _reduce_597(val, _values, result)
|
6906
6903
|
result = self.assignable val[0], val[2]
|
6907
|
-
|
6904
|
+
|
6908
6905
|
result
|
6909
6906
|
end
|
6910
6907
|
|
6911
6908
|
def _reduce_598(val, _values, result)
|
6912
6909
|
optblk, = val
|
6913
6910
|
result = s(:block, optblk).line optblk.line
|
6914
|
-
|
6911
|
+
|
6915
6912
|
result
|
6916
6913
|
end
|
6917
6914
|
|
@@ -6919,20 +6916,20 @@ def _reduce_599(val, _values, result)
|
|
6919
6916
|
optarg, _, optblk = val
|
6920
6917
|
result = optarg
|
6921
6918
|
result << optblk
|
6922
|
-
|
6919
|
+
|
6923
6920
|
result
|
6924
6921
|
end
|
6925
6922
|
|
6926
6923
|
def _reduce_600(val, _values, result)
|
6927
6924
|
opt, = val
|
6928
6925
|
result = s(:block, opt).line opt.line
|
6929
|
-
|
6926
|
+
|
6930
6927
|
result
|
6931
6928
|
end
|
6932
6929
|
|
6933
6930
|
def _reduce_601(val, _values, result)
|
6934
6931
|
result = self.block_append val[0], val[2]
|
6935
|
-
|
6932
|
+
|
6936
6933
|
result
|
6937
6934
|
end
|
6938
6935
|
|
@@ -6945,7 +6942,7 @@ def _reduce_604(val, _values, result)
|
|
6945
6942
|
name = val[1].to_sym
|
6946
6943
|
self.assignable name
|
6947
6944
|
result = :"*#{name}"
|
6948
|
-
|
6945
|
+
|
6949
6946
|
result
|
6950
6947
|
end
|
6951
6948
|
|
@@ -6953,7 +6950,7 @@ def _reduce_605(val, _values, result)
|
|
6953
6950
|
name = :"*"
|
6954
6951
|
self.env[name] = :lvar
|
6955
6952
|
result = name
|
6956
|
-
|
6953
|
+
|
6957
6954
|
result
|
6958
6955
|
end
|
6959
6956
|
|
@@ -6966,19 +6963,19 @@ def _reduce_608(val, _values, result)
|
|
6966
6963
|
|
6967
6964
|
self.env[identifier] = :lvar
|
6968
6965
|
result = "&#{identifier}".to_sym
|
6969
|
-
|
6966
|
+
|
6970
6967
|
result
|
6971
6968
|
end
|
6972
6969
|
|
6973
6970
|
def _reduce_609(val, _values, result)
|
6974
6971
|
result = val[1]
|
6975
|
-
|
6972
|
+
|
6976
6973
|
result
|
6977
6974
|
end
|
6978
6975
|
|
6979
6976
|
def _reduce_610(val, _values, result)
|
6980
6977
|
result = nil
|
6981
|
-
|
6978
|
+
|
6982
6979
|
result
|
6983
6980
|
end
|
6984
6981
|
|
@@ -6986,7 +6983,7 @@ end
|
|
6986
6983
|
|
6987
6984
|
def _reduce_612(val, _values, result)
|
6988
6985
|
lexer.lex_state = EXPR_BEG
|
6989
|
-
|
6986
|
+
|
6990
6987
|
result
|
6991
6988
|
end
|
6992
6989
|
|
@@ -6994,13 +6991,13 @@ def _reduce_613(val, _values, result)
|
|
6994
6991
|
result = val[2]
|
6995
6992
|
yyerror "Can't define single method for literals." if
|
6996
6993
|
result.sexp_type == :lit
|
6997
|
-
|
6994
|
+
|
6998
6995
|
result
|
6999
6996
|
end
|
7000
6997
|
|
7001
6998
|
def _reduce_614(val, _values, result)
|
7002
6999
|
result = s(:array).line lexer.lineno
|
7003
|
-
|
7000
|
+
|
7004
7001
|
result
|
7005
7002
|
end
|
7006
7003
|
|
@@ -7014,14 +7011,14 @@ def _reduce_617(val, _values, result)
|
|
7014
7011
|
list.push(*more) unless more.empty?
|
7015
7012
|
result = list
|
7016
7013
|
result.sexp_type = :hash
|
7017
|
-
|
7014
|
+
|
7018
7015
|
result
|
7019
7016
|
end
|
7020
7017
|
|
7021
7018
|
def _reduce_618(val, _values, result)
|
7022
7019
|
v1, _, v2 = val
|
7023
7020
|
result = s(:array, v1, v2).line v1.line
|
7024
|
-
|
7021
|
+
|
7025
7022
|
result
|
7026
7023
|
end
|
7027
7024
|
|
@@ -7030,7 +7027,7 @@ def _reduce_619(val, _values, result)
|
|
7030
7027
|
|
7031
7028
|
lit = s(:lit, label.to_sym).line line
|
7032
7029
|
result = s(:array, lit, arg).line line
|
7033
|
-
|
7030
|
+
|
7034
7031
|
result
|
7035
7032
|
end
|
7036
7033
|
|
@@ -7038,7 +7035,7 @@ def _reduce_620(val, _values, result)
|
|
7038
7035
|
_, arg = val
|
7039
7036
|
line = arg.line
|
7040
7037
|
result = s(:array, s(:kwsplat, arg).line(line)).line line
|
7041
|
-
|
7038
|
+
|
7042
7039
|
result
|
7043
7040
|
end
|
7044
7041
|
|
@@ -7091,7 +7088,7 @@ end
|
|
7091
7088
|
# reduce 644 omitted
|
7092
7089
|
|
7093
7090
|
def _reduce_645(val, _values, result)
|
7094
|
-
yyerrok
|
7091
|
+
yyerrok
|
7095
7092
|
result
|
7096
7093
|
end
|
7097
7094
|
|
@@ -7100,12 +7097,12 @@ end
|
|
7100
7097
|
# reduce 647 omitted
|
7101
7098
|
|
7102
7099
|
def _reduce_648(val, _values, result)
|
7103
|
-
yyerrok
|
7100
|
+
yyerrok
|
7104
7101
|
result
|
7105
7102
|
end
|
7106
7103
|
|
7107
7104
|
def _reduce_649(val, _values, result)
|
7108
|
-
result = nil;
|
7105
|
+
result = nil;
|
7109
7106
|
result
|
7110
7107
|
end
|
7111
7108
|
|