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