dagon 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/dagon +2 -2
- data/bin/dspec +2 -2
- data/bin/idgr +2 -2
- data/build/parser.rb +64 -64
- data/dagon.gemspec +3 -3
- data/dagon/parser.y +1 -1
- metadata +2 -3
data/bin/dagon
CHANGED
data/bin/dspec
CHANGED
data/bin/idgr
CHANGED
data/build/parser.rb
CHANGED
@@ -11,7 +11,7 @@ require 'racc/parser.rb'
|
|
11
11
|
string_node literal_node var_ref_node if_node assignment_node while_node
|
12
12
|
class_definition_node instance_init_node block_node hash_node array_node
|
13
13
|
unary_function_call_node constant_ref_node instance_var_ref_node
|
14
|
-
).each { |node|
|
14
|
+
).each { |node| require "ast/#{node}" }
|
15
15
|
|
16
16
|
module Dagon
|
17
17
|
class Parser < Racc::Parser
|
@@ -540,35 +540,35 @@ Racc_debug_parser = true
|
|
540
540
|
|
541
541
|
module_eval(<<'.,.,', 'parser.y', 11)
|
542
542
|
def _reduce_1(val, _values, result)
|
543
|
-
result = []
|
543
|
+
result = []
|
544
544
|
result
|
545
545
|
end
|
546
546
|
.,.,
|
547
547
|
|
548
548
|
module_eval(<<'.,.,', 'parser.y', 12)
|
549
549
|
def _reduce_2(val, _values, result)
|
550
|
-
result = AST::RootNode.new(val[0])
|
550
|
+
result = AST::RootNode.new(val[0])
|
551
551
|
result
|
552
552
|
end
|
553
553
|
.,.,
|
554
554
|
|
555
555
|
module_eval(<<'.,.,', 'parser.y', 14)
|
556
556
|
def _reduce_3(val, _values, result)
|
557
|
-
result = val[1]
|
557
|
+
result = val[1]
|
558
558
|
result
|
559
559
|
end
|
560
560
|
.,.,
|
561
561
|
|
562
562
|
module_eval(<<'.,.,', 'parser.y', 16)
|
563
563
|
def _reduce_4(val, _values, result)
|
564
|
-
result.push val[1]
|
564
|
+
result.push val[1]
|
565
565
|
result
|
566
566
|
end
|
567
567
|
.,.,
|
568
568
|
|
569
569
|
module_eval(<<'.,.,', 'parser.y', 17)
|
570
570
|
def _reduce_5(val, _values, result)
|
571
|
-
result = [val[0]]
|
571
|
+
result = [val[0]]
|
572
572
|
result
|
573
573
|
end
|
574
574
|
.,.,
|
@@ -587,112 +587,112 @@ module_eval(<<'.,.,', 'parser.y', 17)
|
|
587
587
|
|
588
588
|
module_eval(<<'.,.,', 'parser.y', 26)
|
589
589
|
def _reduce_12(val, _values, result)
|
590
|
-
result = AST::WhileNode.new(@filename, nil, val[1], val[2])
|
590
|
+
result = AST::WhileNode.new(@filename, nil, val[1], val[2])
|
591
591
|
result
|
592
592
|
end
|
593
593
|
.,.,
|
594
594
|
|
595
595
|
module_eval(<<'.,.,', 'parser.y', 28)
|
596
596
|
def _reduce_13(val, _values, result)
|
597
|
-
result = AST::IfNode.new(@filename, nil, val[1], val[2], val[3])
|
597
|
+
result = AST::IfNode.new(@filename, nil, val[1], val[2], val[3])
|
598
598
|
result
|
599
599
|
end
|
600
600
|
.,.,
|
601
601
|
|
602
602
|
module_eval(<<'.,.,', 'parser.y', 29)
|
603
603
|
def _reduce_14(val, _values, result)
|
604
|
-
result = nil
|
604
|
+
result = nil
|
605
605
|
result
|
606
606
|
end
|
607
607
|
.,.,
|
608
608
|
|
609
609
|
module_eval(<<'.,.,', 'parser.y', 30)
|
610
610
|
def _reduce_15(val, _values, result)
|
611
|
-
result = [AST::IfNode.new(@filename, nil, val[1], val[2], val[3])]
|
611
|
+
result = [AST::IfNode.new(@filename, nil, val[1], val[2], val[3])]
|
612
612
|
result
|
613
613
|
end
|
614
614
|
.,.,
|
615
615
|
|
616
616
|
module_eval(<<'.,.,', 'parser.y', 31)
|
617
617
|
def _reduce_16(val, _values, result)
|
618
|
-
result = val[1]
|
618
|
+
result = val[1]
|
619
619
|
result
|
620
620
|
end
|
621
621
|
.,.,
|
622
622
|
|
623
623
|
module_eval(<<'.,.,', 'parser.y', 33)
|
624
624
|
def _reduce_17(val, _values, result)
|
625
|
-
result = AST::ClassDefinitionNode.new(@filename, nil, val[0].data, val[2])
|
625
|
+
result = AST::ClassDefinitionNode.new(@filename, nil, val[0].data, val[2])
|
626
626
|
result
|
627
627
|
end
|
628
628
|
.,.,
|
629
629
|
|
630
630
|
module_eval(<<'.,.,', 'parser.y', 36)
|
631
631
|
def _reduce_18(val, _values, result)
|
632
|
-
result = AST::AssignmentNode.new(@filename, nil, val[0].variable_name, val[2])
|
632
|
+
result = AST::AssignmentNode.new(@filename, nil, val[0].variable_name, val[2])
|
633
633
|
result
|
634
634
|
end
|
635
635
|
.,.,
|
636
636
|
|
637
637
|
module_eval(<<'.,.,', 'parser.y', 37)
|
638
638
|
def _reduce_19(val, _values, result)
|
639
|
-
result = AST::AssignmentNode.new(@filename, nil, "@#{val[1].variable_name}", val[3])
|
639
|
+
result = AST::AssignmentNode.new(@filename, nil, "@#{val[1].variable_name}", val[3])
|
640
640
|
result
|
641
641
|
end
|
642
642
|
.,.,
|
643
643
|
|
644
644
|
module_eval(<<'.,.,', 'parser.y', 39)
|
645
645
|
def _reduce_20(val, _values, result)
|
646
|
-
result = call_on_object(val[0], '-', val[2])
|
646
|
+
result = call_on_object(val[0], '-', val[2])
|
647
647
|
result
|
648
648
|
end
|
649
649
|
.,.,
|
650
650
|
|
651
651
|
module_eval(<<'.,.,', 'parser.y', 40)
|
652
652
|
def _reduce_21(val, _values, result)
|
653
|
-
result = call_on_object(val[0], '+', val[2])
|
653
|
+
result = call_on_object(val[0], '+', val[2])
|
654
654
|
result
|
655
655
|
end
|
656
656
|
.,.,
|
657
657
|
|
658
658
|
module_eval(<<'.,.,', 'parser.y', 41)
|
659
659
|
def _reduce_22(val, _values, result)
|
660
|
-
result = call_on_object(val[0], '*', val[2])
|
660
|
+
result = call_on_object(val[0], '*', val[2])
|
661
661
|
result
|
662
662
|
end
|
663
663
|
.,.,
|
664
664
|
|
665
665
|
module_eval(<<'.,.,', 'parser.y', 42)
|
666
666
|
def _reduce_23(val, _values, result)
|
667
|
-
result = call_on_object(val[0], '/', val[2])
|
667
|
+
result = call_on_object(val[0], '/', val[2])
|
668
668
|
result
|
669
669
|
end
|
670
670
|
.,.,
|
671
671
|
|
672
672
|
module_eval(<<'.,.,', 'parser.y', 43)
|
673
673
|
def _reduce_24(val, _values, result)
|
674
|
-
result = call_on_object(val[0], '&&', val[2])
|
674
|
+
result = call_on_object(val[0], '&&', val[2])
|
675
675
|
result
|
676
676
|
end
|
677
677
|
.,.,
|
678
678
|
|
679
679
|
module_eval(<<'.,.,', 'parser.y', 44)
|
680
680
|
def _reduce_25(val, _values, result)
|
681
|
-
result = call_on_object(val[0], '||', val[2])
|
681
|
+
result = call_on_object(val[0], '||', val[2])
|
682
682
|
result
|
683
683
|
end
|
684
684
|
.,.,
|
685
685
|
|
686
686
|
module_eval(<<'.,.,', 'parser.y', 45)
|
687
687
|
def _reduce_26(val, _values, result)
|
688
|
-
result = call_on_object(val[0], '^', val[2])
|
688
|
+
result = call_on_object(val[0], '^', val[2])
|
689
689
|
result
|
690
690
|
end
|
691
691
|
.,.,
|
692
692
|
|
693
693
|
module_eval(<<'.,.,', 'parser.y', 46)
|
694
694
|
def _reduce_27(val, _values, result)
|
695
|
-
result = call_on_object(val[0], '**', val[2])
|
695
|
+
result = call_on_object(val[0], '**', val[2])
|
696
696
|
result
|
697
697
|
end
|
698
698
|
.,.,
|
@@ -701,49 +701,49 @@ module_eval(<<'.,.,', 'parser.y', 46)
|
|
701
701
|
|
702
702
|
module_eval(<<'.,.,', 'parser.y', 49)
|
703
703
|
def _reduce_29(val, _values, result)
|
704
|
-
result = AST::UnaryFunctionCallNode.new(@filename, nil, val[1], "!")
|
704
|
+
result = AST::UnaryFunctionCallNode.new(@filename, nil, val[1], "!")
|
705
705
|
result
|
706
706
|
end
|
707
707
|
.,.,
|
708
708
|
|
709
709
|
module_eval(<<'.,.,', 'parser.y', 51)
|
710
710
|
def _reduce_30(val, _values, result)
|
711
|
-
result = call_on_object(val[0], '>', val[2])
|
711
|
+
result = call_on_object(val[0], '>', val[2])
|
712
712
|
result
|
713
713
|
end
|
714
714
|
.,.,
|
715
715
|
|
716
716
|
module_eval(<<'.,.,', 'parser.y', 52)
|
717
717
|
def _reduce_31(val, _values, result)
|
718
|
-
result = call_on_object(val[0], '<', val[2])
|
718
|
+
result = call_on_object(val[0], '<', val[2])
|
719
719
|
result
|
720
720
|
end
|
721
721
|
.,.,
|
722
722
|
|
723
723
|
module_eval(<<'.,.,', 'parser.y', 53)
|
724
724
|
def _reduce_32(val, _values, result)
|
725
|
-
result = call_on_object(val[0], '<=', val[2])
|
725
|
+
result = call_on_object(val[0], '<=', val[2])
|
726
726
|
result
|
727
727
|
end
|
728
728
|
.,.,
|
729
729
|
|
730
730
|
module_eval(<<'.,.,', 'parser.y', 54)
|
731
731
|
def _reduce_33(val, _values, result)
|
732
|
-
result = call_on_object(val[0], '>=', val[2])
|
732
|
+
result = call_on_object(val[0], '>=', val[2])
|
733
733
|
result
|
734
734
|
end
|
735
735
|
.,.,
|
736
736
|
|
737
737
|
module_eval(<<'.,.,', 'parser.y', 55)
|
738
738
|
def _reduce_34(val, _values, result)
|
739
|
-
result = call_on_object(val[0], '=', val[2])
|
739
|
+
result = call_on_object(val[0], '=', val[2])
|
740
740
|
result
|
741
741
|
end
|
742
742
|
.,.,
|
743
743
|
|
744
744
|
module_eval(<<'.,.,', 'parser.y', 56)
|
745
745
|
def _reduce_35(val, _values, result)
|
746
|
-
result = call_on_object(val[0], '!=', val[2])
|
746
|
+
result = call_on_object(val[0], '!=', val[2])
|
747
747
|
result
|
748
748
|
end
|
749
749
|
.,.,
|
@@ -754,105 +754,105 @@ module_eval(<<'.,.,', 'parser.y', 56)
|
|
754
754
|
|
755
755
|
module_eval(<<'.,.,', 'parser.y', 60)
|
756
756
|
def _reduce_38(val, _values, result)
|
757
|
-
result = AST::HashNode.new(@filename, nil, val[1])
|
757
|
+
result = AST::HashNode.new(@filename, nil, val[1])
|
758
758
|
result
|
759
759
|
end
|
760
760
|
.,.,
|
761
761
|
|
762
762
|
module_eval(<<'.,.,', 'parser.y', 61)
|
763
763
|
def _reduce_39(val, _values, result)
|
764
|
-
result = []
|
764
|
+
result = []
|
765
765
|
result
|
766
766
|
end
|
767
767
|
.,.,
|
768
768
|
|
769
769
|
module_eval(<<'.,.,', 'parser.y', 62)
|
770
770
|
def _reduce_40(val, _values, result)
|
771
|
-
result = val
|
771
|
+
result = val
|
772
772
|
result
|
773
773
|
end
|
774
774
|
.,.,
|
775
775
|
|
776
776
|
module_eval(<<'.,.,', 'parser.y', 63)
|
777
777
|
def _reduce_41(val, _values, result)
|
778
|
-
result << val
|
778
|
+
result << val
|
779
779
|
result
|
780
780
|
end
|
781
781
|
.,.,
|
782
782
|
|
783
783
|
module_eval(<<'.,.,', 'parser.y', 64)
|
784
784
|
def _reduce_42(val, _values, result)
|
785
|
-
result = val[0]
|
785
|
+
result = val[0]
|
786
786
|
result
|
787
787
|
end
|
788
788
|
.,.,
|
789
789
|
|
790
790
|
module_eval(<<'.,.,', 'parser.y', 66)
|
791
791
|
def _reduce_43(val, _values, result)
|
792
|
-
result = AST::ArrayNode.new(@filename, nil, val[1])
|
792
|
+
result = AST::ArrayNode.new(@filename, nil, val[1])
|
793
793
|
result
|
794
794
|
end
|
795
795
|
.,.,
|
796
796
|
|
797
797
|
module_eval(<<'.,.,', 'parser.y', 67)
|
798
798
|
def _reduce_44(val, _values, result)
|
799
|
-
result = []
|
799
|
+
result = []
|
800
800
|
result
|
801
801
|
end
|
802
802
|
.,.,
|
803
803
|
|
804
804
|
module_eval(<<'.,.,', 'parser.y', 68)
|
805
805
|
def _reduce_45(val, _values, result)
|
806
|
-
result = val
|
806
|
+
result = val
|
807
807
|
result
|
808
808
|
end
|
809
809
|
.,.,
|
810
810
|
|
811
811
|
module_eval(<<'.,.,', 'parser.y', 69)
|
812
812
|
def _reduce_46(val, _values, result)
|
813
|
-
result.push val[2]
|
813
|
+
result.push val[2]
|
814
814
|
result
|
815
815
|
end
|
816
816
|
.,.,
|
817
817
|
|
818
818
|
module_eval(<<'.,.,', 'parser.y', 70)
|
819
819
|
def _reduce_47(val, _values, result)
|
820
|
-
result = val[0]
|
820
|
+
result = val[0]
|
821
821
|
result
|
822
822
|
end
|
823
823
|
.,.,
|
824
824
|
|
825
825
|
module_eval(<<'.,.,', 'parser.y', 71)
|
826
826
|
def _reduce_48(val, _values, result)
|
827
|
-
result = val[0]
|
827
|
+
result = val[0]
|
828
828
|
result
|
829
829
|
end
|
830
830
|
.,.,
|
831
831
|
|
832
832
|
module_eval(<<'.,.,', 'parser.y', 74)
|
833
833
|
def _reduce_49(val, _values, result)
|
834
|
-
result = AST::VarRefNode.new(@filename, nil, val[0].data)
|
834
|
+
result = AST::VarRefNode.new(@filename, nil, val[0].data)
|
835
835
|
result
|
836
836
|
end
|
837
837
|
.,.,
|
838
838
|
|
839
839
|
module_eval(<<'.,.,', 'parser.y', 76)
|
840
840
|
def _reduce_50(val, _values, result)
|
841
|
-
result = AST::InstanceVarRefNode.new(@filename, nil, "@#{val[1].data}")
|
841
|
+
result = AST::InstanceVarRefNode.new(@filename, nil, "@#{val[1].data}")
|
842
842
|
result
|
843
843
|
end
|
844
844
|
.,.,
|
845
845
|
|
846
846
|
module_eval(<<'.,.,', 'parser.y', 77)
|
847
847
|
def _reduce_51(val, _values, result)
|
848
|
-
result = AST::VarRefNode.new(@filename, nil, val[0].data)
|
848
|
+
result = AST::VarRefNode.new(@filename, nil, val[0].data)
|
849
849
|
result
|
850
850
|
end
|
851
851
|
.,.,
|
852
852
|
|
853
853
|
module_eval(<<'.,.,', 'parser.y', 78)
|
854
854
|
def _reduce_52(val, _values, result)
|
855
|
-
result = AST::ConstantRefNode.new(@filename, nil, val[0].data)
|
855
|
+
result = AST::ConstantRefNode.new(@filename, nil, val[0].data)
|
856
856
|
result
|
857
857
|
end
|
858
858
|
.,.,
|
@@ -869,140 +869,140 @@ module_eval(<<'.,.,', 'parser.y', 78)
|
|
869
869
|
|
870
870
|
module_eval(<<'.,.,', 'parser.y', 85)
|
871
871
|
def _reduce_58(val, _values, result)
|
872
|
-
result = AST::LiteralNode.new(@filename, nil, val[0].data.to_f)
|
872
|
+
result = AST::LiteralNode.new(@filename, nil, val[0].data.to_f)
|
873
873
|
result
|
874
874
|
end
|
875
875
|
.,.,
|
876
876
|
|
877
877
|
module_eval(<<'.,.,', 'parser.y', 86)
|
878
878
|
def _reduce_59(val, _values, result)
|
879
|
-
result = AST::LiteralNode.new(@filename, nil, val[0].data.to_i)
|
879
|
+
result = AST::LiteralNode.new(@filename, nil, val[0].data.to_i)
|
880
880
|
result
|
881
881
|
end
|
882
882
|
.,.,
|
883
883
|
|
884
884
|
module_eval(<<'.,.,', 'parser.y', 87)
|
885
885
|
def _reduce_60(val, _values, result)
|
886
|
-
result = AST::StringNode.new(@filename, nil, val[0].data)
|
886
|
+
result = AST::StringNode.new(@filename, nil, val[0].data)
|
887
887
|
result
|
888
888
|
end
|
889
889
|
.,.,
|
890
890
|
|
891
891
|
module_eval(<<'.,.,', 'parser.y', 88)
|
892
892
|
def _reduce_61(val, _values, result)
|
893
|
-
result = AST::LiteralNode.new(@filename, nil, true)
|
893
|
+
result = AST::LiteralNode.new(@filename, nil, true)
|
894
894
|
result
|
895
895
|
end
|
896
896
|
.,.,
|
897
897
|
|
898
898
|
module_eval(<<'.,.,', 'parser.y', 89)
|
899
899
|
def _reduce_62(val, _values, result)
|
900
|
-
result = AST::LiteralNode.new(@filename, nil, false)
|
900
|
+
result = AST::LiteralNode.new(@filename, nil, false)
|
901
901
|
result
|
902
902
|
end
|
903
903
|
.,.,
|
904
904
|
|
905
905
|
module_eval(<<'.,.,', 'parser.y', 90)
|
906
906
|
def _reduce_63(val, _values, result)
|
907
|
-
result = AST::LiteralNode.new(@filename, nil, nil)
|
907
|
+
result = AST::LiteralNode.new(@filename, nil, nil)
|
908
908
|
result
|
909
909
|
end
|
910
910
|
.,.,
|
911
911
|
|
912
912
|
module_eval(<<'.,.,', 'parser.y', 93)
|
913
913
|
def _reduce_64(val, _values, result)
|
914
|
-
result = AST::FunctionDefinitionNode.new(@filename, nil, val[0].variable_name, AST::Function.new(@filename, nil, [], val[2]))
|
914
|
+
result = AST::FunctionDefinitionNode.new(@filename, nil, val[0].variable_name, AST::Function.new(@filename, nil, [], val[2]))
|
915
915
|
result
|
916
916
|
end
|
917
917
|
.,.,
|
918
918
|
|
919
919
|
module_eval(<<'.,.,', 'parser.y', 94)
|
920
920
|
def _reduce_65(val, _values, result)
|
921
|
-
result = AST::FunctionDefinitionNode.new(@filename, nil, val[0].variable_name, AST::Function.new(@filename, nil, val[2], val[5]))
|
921
|
+
result = AST::FunctionDefinitionNode.new(@filename, nil, val[0].variable_name, AST::Function.new(@filename, nil, val[2], val[5]))
|
922
922
|
result
|
923
923
|
end
|
924
924
|
.,.,
|
925
925
|
|
926
926
|
module_eval(<<'.,.,', 'parser.y', 96)
|
927
927
|
def _reduce_66(val, _values, result)
|
928
|
-
result = AST::FunctionCallNode.new(@filename, nil, val[0], val[2].variable_name, [], val[3])
|
928
|
+
result = AST::FunctionCallNode.new(@filename, nil, val[0], val[2].variable_name, [], val[3])
|
929
929
|
result
|
930
930
|
end
|
931
931
|
.,.,
|
932
932
|
|
933
933
|
module_eval(<<'.,.,', 'parser.y', 97)
|
934
934
|
def _reduce_67(val, _values, result)
|
935
|
-
result = AST::FunctionCallNode.new(@filename, nil, val[0], val[2].variable_name, val[4], val[6])
|
935
|
+
result = AST::FunctionCallNode.new(@filename, nil, val[0], val[2].variable_name, val[4], val[6])
|
936
936
|
result
|
937
937
|
end
|
938
938
|
.,.,
|
939
939
|
|
940
940
|
module_eval(<<'.,.,', 'parser.y', 98)
|
941
941
|
def _reduce_68(val, _values, result)
|
942
|
-
result = AST::FunctionCallNode.new(@filename, nil, nil, val[0].variable_name, val[2], val[4])
|
942
|
+
result = AST::FunctionCallNode.new(@filename, nil, nil, val[0].variable_name, val[2], val[4])
|
943
943
|
result
|
944
944
|
end
|
945
945
|
.,.,
|
946
946
|
|
947
947
|
module_eval(<<'.,.,', 'parser.y', 99)
|
948
948
|
def _reduce_69(val, _values, result)
|
949
|
-
result = AST::FunctionCallNode.new(@filename, nil, val[0], '[]', [val[2]], nil)
|
949
|
+
result = AST::FunctionCallNode.new(@filename, nil, val[0], '[]', [val[2]], nil)
|
950
950
|
result
|
951
951
|
end
|
952
952
|
.,.,
|
953
953
|
|
954
954
|
module_eval(<<'.,.,', 'parser.y', 101)
|
955
955
|
def _reduce_70(val, _values, result)
|
956
|
-
result = AST::InstanceInitNode.new(@filename, nil, val[0].data, val[2], val[4])
|
956
|
+
result = AST::InstanceInitNode.new(@filename, nil, val[0].data, val[2], val[4])
|
957
957
|
result
|
958
958
|
end
|
959
959
|
.,.,
|
960
960
|
|
961
961
|
module_eval(<<'.,.,', 'parser.y', 103)
|
962
962
|
def _reduce_71(val, _values, result)
|
963
|
-
result = AST::BlockNode.new(@filename, nil, val[4], val[2])
|
963
|
+
result = AST::BlockNode.new(@filename, nil, val[4], val[2])
|
964
964
|
result
|
965
965
|
end
|
966
966
|
.,.,
|
967
967
|
|
968
968
|
module_eval(<<'.,.,', 'parser.y', 104)
|
969
969
|
def _reduce_72(val, _values, result)
|
970
|
-
result = AST::BlockNode.new(@filename, nil, val[1], [])
|
970
|
+
result = AST::BlockNode.new(@filename, nil, val[1], [])
|
971
971
|
result
|
972
972
|
end
|
973
973
|
.,.,
|
974
974
|
|
975
975
|
module_eval(<<'.,.,', 'parser.y', 106)
|
976
976
|
def _reduce_73(val, _values, result)
|
977
|
-
result = AST::BlockNode.new(@filename, nil, [val[5]], val[2])
|
977
|
+
result = AST::BlockNode.new(@filename, nil, [val[5]], val[2])
|
978
978
|
result
|
979
979
|
end
|
980
980
|
.,.,
|
981
981
|
|
982
982
|
module_eval(<<'.,.,', 'parser.y', 107)
|
983
983
|
def _reduce_74(val, _values, result)
|
984
|
-
result = AST::BlockNode.new(@filename, nil, [val[2]], [])
|
984
|
+
result = AST::BlockNode.new(@filename, nil, [val[2]], [])
|
985
985
|
result
|
986
986
|
end
|
987
987
|
.,.,
|
988
988
|
|
989
989
|
module_eval(<<'.,.,', 'parser.y', 108)
|
990
990
|
def _reduce_75(val, _values, result)
|
991
|
-
result = nil
|
991
|
+
result = nil
|
992
992
|
result
|
993
993
|
end
|
994
994
|
.,.,
|
995
995
|
|
996
996
|
module_eval(<<'.,.,', 'parser.y', 109)
|
997
997
|
def _reduce_76(val, _values, result)
|
998
|
-
result = val[0]
|
998
|
+
result = val[0]
|
999
999
|
result
|
1000
1000
|
end
|
1001
1001
|
.,.,
|
1002
1002
|
|
1003
1003
|
module_eval(<<'.,.,', 'parser.y', 110)
|
1004
1004
|
def _reduce_77(val, _values, result)
|
1005
|
-
result = val[0]
|
1005
|
+
result = val[0]
|
1006
1006
|
result
|
1007
1007
|
end
|
1008
1008
|
.,.,
|
data/dagon.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "dagon"
|
5
|
-
gem.version = "0.1.
|
5
|
+
gem.version = "0.1.2"
|
6
6
|
gem.authors = ["Caleb Thompson", "Matt Mongeau"]
|
7
7
|
gem.email = ["cjaysson@gmail.com", "halogenandtoast@gmail.com"]
|
8
8
|
gem.description = "The Dagon programming language: whitespace, enumerators, blocks, One Way"
|
@@ -10,8 +10,8 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.homepage = "https://github.com/calebthompson/dagon"
|
11
11
|
|
12
12
|
gem.files = `git ls-files`.split($/)
|
13
|
-
gem.executables = gem.files.grep(%r{^bin/(dagon|
|
14
|
-
gem.require_paths = %w{
|
13
|
+
gem.executables = gem.files.grep(%r{^bin/(dagon|idgr)}).map{ |f| File.basename(f) }
|
14
|
+
gem.require_paths = %w{. dagon}
|
15
15
|
|
16
16
|
gem.add_development_dependency 'rake'
|
17
17
|
gem.add_development_dependency 'racc'
|
data/dagon/parser.y
CHANGED
@@ -116,7 +116,7 @@ rule
|
|
116
116
|
string_node literal_node var_ref_node if_node assignment_node while_node
|
117
117
|
class_definition_node instance_init_node block_node hash_node array_node
|
118
118
|
unary_function_call_node constant_ref_node instance_var_ref_node
|
119
|
-
).each { |node|
|
119
|
+
).each { |node| require "ast/#{node}" }
|
120
120
|
|
121
121
|
---- inner
|
122
122
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: dagon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Caleb Thompson
|
@@ -67,7 +67,6 @@ email:
|
|
67
67
|
- halogenandtoast@gmail.com
|
68
68
|
executables:
|
69
69
|
- dagon
|
70
|
-
- dspec
|
71
70
|
- idgr
|
72
71
|
extensions: []
|
73
72
|
extra_rdoc_files: []
|
@@ -156,7 +155,7 @@ licenses: []
|
|
156
155
|
post_install_message:
|
157
156
|
rdoc_options: []
|
158
157
|
require_paths:
|
159
|
-
-
|
158
|
+
- .
|
160
159
|
- dagon
|
161
160
|
required_ruby_version: !ruby/object:Gem::Requirement
|
162
161
|
none: false
|