racc 1.4.15-java → 1.4.16-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/COPYING +22 -515
- data/Manifest.txt +3 -9
- data/README.ja.rdoc +3 -4
- data/README.rdoc +4 -4
- data/Rakefile +13 -55
- data/bin/racc +2 -4
- data/ext/racc/{cparse.c → cparse/cparse.c} +64 -31
- data/ext/racc/cparse/extconf.rb +8 -0
- data/lib/racc/cparse-jruby.jar +0 -0
- data/lib/racc/exception.rb +3 -5
- data/lib/racc/grammar.rb +5 -7
- data/lib/racc/grammarfileparser.rb +4 -3
- data/lib/racc/info.rb +4 -6
- data/lib/racc/iset.rb +2 -2
- data/lib/racc/logfilegenerator.rb +2 -2
- data/lib/racc/parser-text.rb +14 -11
- data/lib/racc/parser.rb +14 -11
- data/lib/racc/parserfilegenerator.rb +5 -7
- data/lib/racc/state.rb +11 -13
- data/test/assets/intp.y +4 -4
- data/test/assets/mailp.y +27 -27
- data/test/assets/mof.y +12 -12
- data/test/assets/nullbug2.y +2 -2
- data/test/assets/recv.y +20 -20
- data/test/assets/syntax.y +1 -1
- data/test/assets/twowaysql.y +1 -1
- data/test/helper.rb +65 -54
- data/test/regress/cadenza +60 -60
- data/test/regress/cast +8 -8
- data/test/regress/csspool +167 -167
- data/test/regress/edtf +115 -115
- data/test/regress/huia +75 -75
- data/test/regress/journey +12 -12
- data/test/regress/liquor +54 -54
- data/test/regress/machete +37 -37
- data/test/regress/mediacloth +83 -83
- data/test/regress/mof +60 -60
- data/test/regress/namae +29 -29
- data/test/regress/nasl +174 -174
- data/test/regress/nokogiri-css +59 -59
- data/test/regress/opal +352 -352
- data/test/regress/php_serialization +20 -20
- data/test/regress/riml +261 -261
- data/test/regress/ruby18 +353 -353
- data/test/regress/ruby22 +433 -433
- data/test/regress/tp_plus +125 -125
- data/test/regress/twowaysql +30 -30
- data/test/test_chk_y.rb +1 -0
- data/test/test_racc_command.rb +5 -24
- data/test/test_scan_y.rb +1 -0
- data/test/testscanner.rb +1 -1
- metadata +8 -75
- data/ext/racc/depend +0 -1
- data/ext/racc/extconf.rb +0 -7
- data/test/assets/bibtex.y +0 -141
- data/test/assets/rdblockparser.y +0 -576
- data/test/assets/rdinlineparser.y +0 -561
- data/test/regress/bibtex +0 -474
- data/test/regress/rdblockparser +0 -1061
- data/test/regress/rdinlineparser +0 -1243
data/test/regress/huia
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.pre.1
|
4
|
+
# from Racc grammar file "".
|
5
5
|
#
|
6
6
|
|
7
7
|
require 'racc/parser.rb'
|
@@ -750,28 +750,28 @@ Racc_debug_parser = false
|
|
750
750
|
|
751
751
|
module_eval(<<'.,.,', 'huia.y', 44)
|
752
752
|
def _reduce_2(val, _values, result)
|
753
|
-
return scope
|
753
|
+
return scope
|
754
754
|
result
|
755
755
|
end
|
756
756
|
.,.,
|
757
757
|
|
758
758
|
module_eval(<<'.,.,', 'huia.y', 46)
|
759
759
|
def _reduce_3(val, _values, result)
|
760
|
-
return scope.append val[0]
|
760
|
+
return scope.append val[0]
|
761
761
|
result
|
762
762
|
end
|
763
763
|
.,.,
|
764
764
|
|
765
765
|
module_eval(<<'.,.,', 'huia.y', 47)
|
766
766
|
def _reduce_4(val, _values, result)
|
767
|
-
return scope.append val[0]
|
767
|
+
return scope.append val[0]
|
768
768
|
result
|
769
769
|
end
|
770
770
|
.,.,
|
771
771
|
|
772
772
|
module_eval(<<'.,.,', 'huia.y', 48)
|
773
773
|
def _reduce_5(val, _values, result)
|
774
|
-
return scope
|
774
|
+
return scope
|
775
775
|
result
|
776
776
|
end
|
777
777
|
.,.,
|
@@ -810,14 +810,14 @@ module_eval(<<'.,.,', 'huia.y', 48)
|
|
810
810
|
|
811
811
|
module_eval(<<'.,.,', 'huia.y', 66)
|
812
812
|
def _reduce_22(val, _values, result)
|
813
|
-
return n(:Return, val[1])
|
813
|
+
return n(:Return, val[1])
|
814
814
|
result
|
815
815
|
end
|
816
816
|
.,.,
|
817
817
|
|
818
818
|
module_eval(<<'.,.,', 'huia.y', 67)
|
819
819
|
def _reduce_23(val, _values, result)
|
820
|
-
return n(:Return, n(:Nil))
|
820
|
+
return n(:Return, n(:Nil))
|
821
821
|
result
|
822
822
|
end
|
823
823
|
.,.,
|
@@ -828,28 +828,28 @@ module_eval(<<'.,.,', 'huia.y', 67)
|
|
828
828
|
|
829
829
|
module_eval(<<'.,.,', 'huia.y', 72)
|
830
830
|
def _reduce_26(val, _values, result)
|
831
|
-
return n :Array
|
831
|
+
return n :Array
|
832
832
|
result
|
833
833
|
end
|
834
834
|
.,.,
|
835
835
|
|
836
836
|
module_eval(<<'.,.,', 'huia.y', 74)
|
837
837
|
def _reduce_27(val, _values, result)
|
838
|
-
return val[1]
|
838
|
+
return val[1]
|
839
839
|
result
|
840
840
|
end
|
841
841
|
.,.,
|
842
842
|
|
843
843
|
module_eval(<<'.,.,', 'huia.y', 75)
|
844
844
|
def _reduce_28(val, _values, result)
|
845
|
-
return n :Array, [val[0]]
|
845
|
+
return n :Array, [val[0]]
|
846
846
|
result
|
847
847
|
end
|
848
848
|
.,.,
|
849
849
|
|
850
850
|
module_eval(<<'.,.,', 'huia.y', 76)
|
851
851
|
def _reduce_29(val, _values, result)
|
852
|
-
val[0].append(val[2]); return val[0]
|
852
|
+
val[0].append(val[2]); return val[0]
|
853
853
|
result
|
854
854
|
end
|
855
855
|
.,.,
|
@@ -860,42 +860,42 @@ module_eval(<<'.,.,', 'huia.y', 76)
|
|
860
860
|
|
861
861
|
module_eval(<<'.,.,', 'huia.y', 80)
|
862
862
|
def _reduce_32(val, _values, result)
|
863
|
-
return n :Hash
|
863
|
+
return n :Hash
|
864
864
|
result
|
865
865
|
end
|
866
866
|
.,.,
|
867
867
|
|
868
868
|
module_eval(<<'.,.,', 'huia.y', 81)
|
869
869
|
def _reduce_33(val, _values, result)
|
870
|
-
return val[1]
|
870
|
+
return val[1]
|
871
871
|
result
|
872
872
|
end
|
873
873
|
.,.,
|
874
874
|
|
875
875
|
module_eval(<<'.,.,', 'huia.y', 82)
|
876
876
|
def _reduce_34(val, _values, result)
|
877
|
-
return n :Hash, val[0]
|
877
|
+
return n :Hash, val[0]
|
878
878
|
result
|
879
879
|
end
|
880
880
|
.,.,
|
881
881
|
|
882
882
|
module_eval(<<'.,.,', 'huia.y', 83)
|
883
883
|
def _reduce_35(val, _values, result)
|
884
|
-
val[0].append(val[2]); return val[0]
|
884
|
+
val[0].append(val[2]); return val[0]
|
885
885
|
result
|
886
886
|
end
|
887
887
|
.,.,
|
888
888
|
|
889
889
|
module_eval(<<'.,.,', 'huia.y', 84)
|
890
890
|
def _reduce_36(val, _values, result)
|
891
|
-
return n :HashItem, val[0], val[2]
|
891
|
+
return n :HashItem, val[0], val[2]
|
892
892
|
result
|
893
893
|
end
|
894
894
|
.,.,
|
895
895
|
|
896
896
|
module_eval(<<'.,.,', 'huia.y', 86)
|
897
897
|
def _reduce_37(val, _values, result)
|
898
|
-
return constant val[0]
|
898
|
+
return constant val[0]
|
899
899
|
result
|
900
900
|
end
|
901
901
|
.,.,
|
@@ -908,49 +908,49 @@ module_eval(<<'.,.,', 'huia.y', 86)
|
|
908
908
|
|
909
909
|
module_eval(<<'.,.,', 'huia.y', 91)
|
910
910
|
def _reduce_41(val, _values, result)
|
911
|
-
return val[0]
|
911
|
+
return val[0]
|
912
912
|
result
|
913
913
|
end
|
914
914
|
.,.,
|
915
915
|
|
916
916
|
module_eval(<<'.,.,', 'huia.y', 92)
|
917
917
|
def _reduce_42(val, _values, result)
|
918
|
-
return val[0].append(val[1])
|
918
|
+
return val[0].append(val[1])
|
919
919
|
result
|
920
920
|
end
|
921
921
|
.,.,
|
922
922
|
|
923
923
|
module_eval(<<'.,.,', 'huia.y', 93)
|
924
924
|
def _reduce_43(val, _values, result)
|
925
|
-
return val[0]
|
925
|
+
return val[0]
|
926
926
|
result
|
927
927
|
end
|
928
928
|
.,.,
|
929
929
|
|
930
930
|
module_eval(<<'.,.,', 'huia.y', 94)
|
931
931
|
def _reduce_44(val, _values, result)
|
932
|
-
return pop_scope
|
932
|
+
return pop_scope
|
933
933
|
result
|
934
934
|
end
|
935
935
|
.,.,
|
936
936
|
|
937
937
|
module_eval(<<'.,.,', 'huia.y', 97)
|
938
938
|
def _reduce_45(val, _values, result)
|
939
|
-
return val[0]
|
939
|
+
return val[0]
|
940
940
|
result
|
941
941
|
end
|
942
942
|
.,.,
|
943
943
|
|
944
944
|
module_eval(<<'.,.,', 'huia.y', 98)
|
945
945
|
def _reduce_46(val, _values, result)
|
946
|
-
return push_scope
|
946
|
+
return push_scope
|
947
947
|
result
|
948
948
|
end
|
949
949
|
.,.,
|
950
950
|
|
951
951
|
module_eval(<<'.,.,', 'huia.y', 99)
|
952
952
|
def _reduce_47(val, _values, result)
|
953
|
-
return push_scope
|
953
|
+
return push_scope
|
954
954
|
result
|
955
955
|
end
|
956
956
|
.,.,
|
@@ -965,21 +965,21 @@ module_eval(<<'.,.,', 'huia.y', 99)
|
|
965
965
|
|
966
966
|
module_eval(<<'.,.,', 'huia.y', 105)
|
967
967
|
def _reduce_52(val, _values, result)
|
968
|
-
return scope.add_argument val[0]
|
968
|
+
return scope.add_argument val[0]
|
969
969
|
result
|
970
970
|
end
|
971
971
|
.,.,
|
972
972
|
|
973
973
|
module_eval(<<'.,.,', 'huia.y', 106)
|
974
974
|
def _reduce_53(val, _values, result)
|
975
|
-
return n :Assignment, val[0], val[2]
|
975
|
+
return n :Assignment, val[0], val[2]
|
976
976
|
result
|
977
977
|
end
|
978
978
|
.,.,
|
979
979
|
|
980
980
|
module_eval(<<'.,.,', 'huia.y', 107)
|
981
981
|
def _reduce_54(val, _values, result)
|
982
|
-
return n :Variable, val[0]
|
982
|
+
return n :Variable, val[0]
|
983
983
|
result
|
984
984
|
end
|
985
985
|
.,.,
|
@@ -992,35 +992,35 @@ module_eval(<<'.,.,', 'huia.y', 107)
|
|
992
992
|
|
993
993
|
module_eval(<<'.,.,', 'huia.y', 112)
|
994
994
|
def _reduce_58(val, _values, result)
|
995
|
-
return n :MethodCall, val[0], val[2]
|
995
|
+
return n :MethodCall, val[0], val[2]
|
996
996
|
result
|
997
997
|
end
|
998
998
|
.,.,
|
999
999
|
|
1000
1000
|
module_eval(<<'.,.,', 'huia.y', 113)
|
1001
1001
|
def _reduce_59(val, _values, result)
|
1002
|
-
return n :MethodCall, val[0], n(:CallSignature, val[2])
|
1002
|
+
return n :MethodCall, val[0], n(:CallSignature, val[2])
|
1003
1003
|
result
|
1004
1004
|
end
|
1005
1005
|
.,.,
|
1006
1006
|
|
1007
1007
|
module_eval(<<'.,.,', 'huia.y', 114)
|
1008
1008
|
def _reduce_60(val, _values, result)
|
1009
|
-
return n :MethodCall, scope_instance, val[0]
|
1009
|
+
return n :MethodCall, scope_instance, val[0]
|
1010
1010
|
result
|
1011
1011
|
end
|
1012
1012
|
.,.,
|
1013
1013
|
|
1014
1014
|
module_eval(<<'.,.,', 'huia.y', 116)
|
1015
1015
|
def _reduce_61(val, _values, result)
|
1016
|
-
return n :MethodCall, this_closure, val[1]
|
1016
|
+
return n :MethodCall, this_closure, val[1]
|
1017
1017
|
result
|
1018
1018
|
end
|
1019
1019
|
.,.,
|
1020
1020
|
|
1021
1021
|
module_eval(<<'.,.,', 'huia.y', 117)
|
1022
1022
|
def _reduce_62(val, _values, result)
|
1023
|
-
return n :MethodCall, this_closure, n(:CallSignature, val[1])
|
1023
|
+
return n :MethodCall, this_closure, n(:CallSignature, val[1])
|
1024
1024
|
result
|
1025
1025
|
end
|
1026
1026
|
.,.,
|
@@ -1031,14 +1031,14 @@ module_eval(<<'.,.,', 'huia.y', 117)
|
|
1031
1031
|
|
1032
1032
|
module_eval(<<'.,.,', 'huia.y', 121)
|
1033
1033
|
def _reduce_65(val, _values, result)
|
1034
|
-
return n :CallSignature, val[0]
|
1034
|
+
return n :CallSignature, val[0]
|
1035
1035
|
result
|
1036
1036
|
end
|
1037
1037
|
.,.,
|
1038
1038
|
|
1039
1039
|
module_eval(<<'.,.,', 'huia.y', 122)
|
1040
1040
|
def _reduce_66(val, _values, result)
|
1041
|
-
return n :CallSignature, val[0], [val[1]]
|
1041
|
+
return n :CallSignature, val[0], [val[1]]
|
1042
1042
|
result
|
1043
1043
|
end
|
1044
1044
|
.,.,
|
@@ -1057,28 +1057,28 @@ module_eval(<<'.,.,', 'huia.y', 122)
|
|
1057
1057
|
|
1058
1058
|
module_eval(<<'.,.,', 'huia.y', 129)
|
1059
1059
|
def _reduce_73(val, _values, result)
|
1060
|
-
return val[0]
|
1060
|
+
return val[0]
|
1061
1061
|
result
|
1062
1062
|
end
|
1063
1063
|
.,.,
|
1064
1064
|
|
1065
1065
|
module_eval(<<'.,.,', 'huia.y', 130)
|
1066
1066
|
def _reduce_74(val, _values, result)
|
1067
|
-
return val[0].concat_signature val[1]
|
1067
|
+
return val[0].concat_signature val[1]
|
1068
1068
|
result
|
1069
1069
|
end
|
1070
1070
|
.,.,
|
1071
1071
|
|
1072
1072
|
module_eval(<<'.,.,', 'huia.y', 132)
|
1073
1073
|
def _reduce_75(val, _values, result)
|
1074
|
-
return n :Expression, val[1]
|
1074
|
+
return n :Expression, val[1]
|
1075
1075
|
result
|
1076
1076
|
end
|
1077
1077
|
.,.,
|
1078
1078
|
|
1079
1079
|
module_eval(<<'.,.,', 'huia.y', 134)
|
1080
1080
|
def _reduce_76(val, _values, result)
|
1081
|
-
return allocate_local val[0]
|
1081
|
+
return allocate_local val[0]
|
1082
1082
|
result
|
1083
1083
|
end
|
1084
1084
|
.,.,
|
@@ -1115,105 +1115,105 @@ module_eval(<<'.,.,', 'huia.y', 134)
|
|
1115
1115
|
|
1116
1116
|
module_eval(<<'.,.,', 'huia.y', 152)
|
1117
1117
|
def _reduce_92(val, _values, result)
|
1118
|
-
return allocate_local_assignment val[0], val[2]
|
1118
|
+
return allocate_local_assignment val[0], val[2]
|
1119
1119
|
result
|
1120
1120
|
end
|
1121
1121
|
.,.,
|
1122
1122
|
|
1123
1123
|
module_eval(<<'.,.,', 'huia.y', 153)
|
1124
1124
|
def _reduce_93(val, _values, result)
|
1125
|
-
return binary val[0], val[2], 'plus:'
|
1125
|
+
return binary val[0], val[2], 'plus:'
|
1126
1126
|
result
|
1127
1127
|
end
|
1128
1128
|
.,.,
|
1129
1129
|
|
1130
1130
|
module_eval(<<'.,.,', 'huia.y', 154)
|
1131
1131
|
def _reduce_94(val, _values, result)
|
1132
|
-
return binary val[0], val[2], 'minus:'
|
1132
|
+
return binary val[0], val[2], 'minus:'
|
1133
1133
|
result
|
1134
1134
|
end
|
1135
1135
|
.,.,
|
1136
1136
|
|
1137
1137
|
module_eval(<<'.,.,', 'huia.y', 155)
|
1138
1138
|
def _reduce_95(val, _values, result)
|
1139
|
-
return binary val[0], val[2], 'multiplyBy:'
|
1139
|
+
return binary val[0], val[2], 'multiplyBy:'
|
1140
1140
|
result
|
1141
1141
|
end
|
1142
1142
|
.,.,
|
1143
1143
|
|
1144
1144
|
module_eval(<<'.,.,', 'huia.y', 156)
|
1145
1145
|
def _reduce_96(val, _values, result)
|
1146
|
-
return binary val[0], val[2], 'divideBy:'
|
1146
|
+
return binary val[0], val[2], 'divideBy:'
|
1147
1147
|
result
|
1148
1148
|
end
|
1149
1149
|
.,.,
|
1150
1150
|
|
1151
1151
|
module_eval(<<'.,.,', 'huia.y', 157)
|
1152
1152
|
def _reduce_97(val, _values, result)
|
1153
|
-
return binary val[0], val[2], 'toThePowerOf:'
|
1153
|
+
return binary val[0], val[2], 'toThePowerOf:'
|
1154
1154
|
result
|
1155
1155
|
end
|
1156
1156
|
.,.,
|
1157
1157
|
|
1158
1158
|
module_eval(<<'.,.,', 'huia.y', 158)
|
1159
1159
|
def _reduce_98(val, _values, result)
|
1160
|
-
return binary val[0], val[2], 'moduloOf:'
|
1160
|
+
return binary val[0], val[2], 'moduloOf:'
|
1161
1161
|
result
|
1162
1162
|
end
|
1163
1163
|
.,.,
|
1164
1164
|
|
1165
1165
|
module_eval(<<'.,.,', 'huia.y', 159)
|
1166
1166
|
def _reduce_99(val, _values, result)
|
1167
|
-
return binary val[0], val[2], 'isEqualTo:'
|
1167
|
+
return binary val[0], val[2], 'isEqualTo:'
|
1168
1168
|
result
|
1169
1169
|
end
|
1170
1170
|
.,.,
|
1171
1171
|
|
1172
1172
|
module_eval(<<'.,.,', 'huia.y', 160)
|
1173
1173
|
def _reduce_100(val, _values, result)
|
1174
|
-
return binary val[0], val[2], 'isNotEqualTo:'
|
1174
|
+
return binary val[0], val[2], 'isNotEqualTo:'
|
1175
1175
|
result
|
1176
1176
|
end
|
1177
1177
|
.,.,
|
1178
1178
|
|
1179
1179
|
module_eval(<<'.,.,', 'huia.y', 161)
|
1180
1180
|
def _reduce_101(val, _values, result)
|
1181
|
-
return binary val[0], val[2], 'logicalOr:'
|
1181
|
+
return binary val[0], val[2], 'logicalOr:'
|
1182
1182
|
result
|
1183
1183
|
end
|
1184
1184
|
.,.,
|
1185
1185
|
|
1186
1186
|
module_eval(<<'.,.,', 'huia.y', 162)
|
1187
1187
|
def _reduce_102(val, _values, result)
|
1188
|
-
return binary val[0], val[2], 'logicalAnd:'
|
1188
|
+
return binary val[0], val[2], 'logicalAnd:'
|
1189
1189
|
result
|
1190
1190
|
end
|
1191
1191
|
.,.,
|
1192
1192
|
|
1193
1193
|
module_eval(<<'.,.,', 'huia.y', 163)
|
1194
1194
|
def _reduce_103(val, _values, result)
|
1195
|
-
return binary val[0], val[2], 'isGreaterThan:'
|
1195
|
+
return binary val[0], val[2], 'isGreaterThan:'
|
1196
1196
|
result
|
1197
1197
|
end
|
1198
1198
|
.,.,
|
1199
1199
|
|
1200
1200
|
module_eval(<<'.,.,', 'huia.y', 164)
|
1201
1201
|
def _reduce_104(val, _values, result)
|
1202
|
-
return binary val[0], val[2], 'isLessThan:'
|
1202
|
+
return binary val[0], val[2], 'isLessThan:'
|
1203
1203
|
result
|
1204
1204
|
end
|
1205
1205
|
.,.,
|
1206
1206
|
|
1207
1207
|
module_eval(<<'.,.,', 'huia.y', 165)
|
1208
1208
|
def _reduce_105(val, _values, result)
|
1209
|
-
return binary val[0], val[2], 'isGreaterOrEqualTo:'
|
1209
|
+
return binary val[0], val[2], 'isGreaterOrEqualTo:'
|
1210
1210
|
result
|
1211
1211
|
end
|
1212
1212
|
.,.,
|
1213
1213
|
|
1214
1214
|
module_eval(<<'.,.,', 'huia.y', 166)
|
1215
1215
|
def _reduce_106(val, _values, result)
|
1216
|
-
return binary val[0], val[2], 'isLessOrEqualTo:'
|
1216
|
+
return binary val[0], val[2], 'isLessOrEqualTo:'
|
1217
1217
|
result
|
1218
1218
|
end
|
1219
1219
|
.,.,
|
@@ -1228,28 +1228,28 @@ module_eval(<<'.,.,', 'huia.y', 166)
|
|
1228
1228
|
|
1229
1229
|
module_eval(<<'.,.,', 'huia.y', 173)
|
1230
1230
|
def _reduce_111(val, _values, result)
|
1231
|
-
return unary val[1], 'unaryNot'
|
1231
|
+
return unary val[1], 'unaryNot'
|
1232
1232
|
result
|
1233
1233
|
end
|
1234
1234
|
.,.,
|
1235
1235
|
|
1236
1236
|
module_eval(<<'.,.,', 'huia.y', 174)
|
1237
1237
|
def _reduce_112(val, _values, result)
|
1238
|
-
return unary val[1], 'unaryPlus'
|
1238
|
+
return unary val[1], 'unaryPlus'
|
1239
1239
|
result
|
1240
1240
|
end
|
1241
1241
|
.,.,
|
1242
1242
|
|
1243
1243
|
module_eval(<<'.,.,', 'huia.y', 175)
|
1244
1244
|
def _reduce_113(val, _values, result)
|
1245
|
-
return unary val[1], 'unaryMinus'
|
1245
|
+
return unary val[1], 'unaryMinus'
|
1246
1246
|
result
|
1247
1247
|
end
|
1248
1248
|
.,.,
|
1249
1249
|
|
1250
1250
|
module_eval(<<'.,.,', 'huia.y', 176)
|
1251
1251
|
def _reduce_114(val, _values, result)
|
1252
|
-
return unary val[1], 'unaryComplement'
|
1252
|
+
return unary val[1], 'unaryComplement'
|
1253
1253
|
result
|
1254
1254
|
end
|
1255
1255
|
.,.,
|
@@ -1270,49 +1270,49 @@ module_eval(<<'.,.,', 'huia.y', 176)
|
|
1270
1270
|
|
1271
1271
|
module_eval(<<'.,.,', 'huia.y', 186)
|
1272
1272
|
def _reduce_122(val, _values, result)
|
1273
|
-
return n :Float, val[0]
|
1273
|
+
return n :Float, val[0]
|
1274
1274
|
result
|
1275
1275
|
end
|
1276
1276
|
.,.,
|
1277
1277
|
|
1278
1278
|
module_eval(<<'.,.,', 'huia.y', 187)
|
1279
1279
|
def _reduce_123(val, _values, result)
|
1280
|
-
return n :Integer, val[0]
|
1280
|
+
return n :Integer, val[0]
|
1281
1281
|
result
|
1282
1282
|
end
|
1283
1283
|
.,.,
|
1284
1284
|
|
1285
1285
|
module_eval(<<'.,.,', 'huia.y', 188)
|
1286
1286
|
def _reduce_124(val, _values, result)
|
1287
|
-
return n :Nil
|
1287
|
+
return n :Nil
|
1288
1288
|
result
|
1289
1289
|
end
|
1290
1290
|
.,.,
|
1291
1291
|
|
1292
1292
|
module_eval(<<'.,.,', 'huia.y', 189)
|
1293
1293
|
def _reduce_125(val, _values, result)
|
1294
|
-
return n :True
|
1294
|
+
return n :True
|
1295
1295
|
result
|
1296
1296
|
end
|
1297
1297
|
.,.,
|
1298
1298
|
|
1299
1299
|
module_eval(<<'.,.,', 'huia.y', 190)
|
1300
1300
|
def _reduce_126(val, _values, result)
|
1301
|
-
return n :False
|
1301
|
+
return n :False
|
1302
1302
|
result
|
1303
1303
|
end
|
1304
1304
|
.,.,
|
1305
1305
|
|
1306
1306
|
module_eval(<<'.,.,', 'huia.y', 191)
|
1307
1307
|
def _reduce_127(val, _values, result)
|
1308
|
-
return n :Self
|
1308
|
+
return n :Self
|
1309
1309
|
result
|
1310
1310
|
end
|
1311
1311
|
.,.,
|
1312
1312
|
|
1313
1313
|
module_eval(<<'.,.,', 'huia.y', 193)
|
1314
1314
|
def _reduce_128(val, _values, result)
|
1315
|
-
return n :String, val[0]
|
1315
|
+
return n :String, val[0]
|
1316
1316
|
result
|
1317
1317
|
end
|
1318
1318
|
.,.,
|
@@ -1323,63 +1323,63 @@ module_eval(<<'.,.,', 'huia.y', 193)
|
|
1323
1323
|
|
1324
1324
|
module_eval(<<'.,.,', 'huia.y', 197)
|
1325
1325
|
def _reduce_131(val, _values, result)
|
1326
|
-
return val[1]
|
1326
|
+
return val[1]
|
1327
1327
|
result
|
1328
1328
|
end
|
1329
1329
|
.,.,
|
1330
1330
|
|
1331
1331
|
module_eval(<<'.,.,', 'huia.y', 198)
|
1332
1332
|
def _reduce_132(val, _values, result)
|
1333
|
-
return val[1]
|
1333
|
+
return val[1]
|
1334
1334
|
result
|
1335
1335
|
end
|
1336
1336
|
.,.,
|
1337
1337
|
|
1338
1338
|
module_eval(<<'.,.,', 'huia.y', 199)
|
1339
1339
|
def _reduce_133(val, _values, result)
|
1340
|
-
return n :InterpolatedString, val[0]
|
1340
|
+
return n :InterpolatedString, val[0]
|
1341
1341
|
result
|
1342
1342
|
end
|
1343
1343
|
.,.,
|
1344
1344
|
|
1345
1345
|
module_eval(<<'.,.,', 'huia.y', 200)
|
1346
1346
|
def _reduce_134(val, _values, result)
|
1347
|
-
val[0].append(val[1]); return val[0]
|
1347
|
+
val[0].append(val[1]); return val[0]
|
1348
1348
|
result
|
1349
1349
|
end
|
1350
1350
|
.,.,
|
1351
1351
|
|
1352
1352
|
module_eval(<<'.,.,', 'huia.y', 201)
|
1353
1353
|
def _reduce_135(val, _values, result)
|
1354
|
-
return val[0]
|
1354
|
+
return val[0]
|
1355
1355
|
result
|
1356
1356
|
end
|
1357
1357
|
.,.,
|
1358
1358
|
|
1359
1359
|
module_eval(<<'.,.,', 'huia.y', 202)
|
1360
1360
|
def _reduce_136(val, _values, result)
|
1361
|
-
return to_string(val[0])
|
1361
|
+
return to_string(val[0])
|
1362
1362
|
result
|
1363
1363
|
end
|
1364
1364
|
.,.,
|
1365
1365
|
|
1366
1366
|
module_eval(<<'.,.,', 'huia.y', 203)
|
1367
1367
|
def _reduce_137(val, _values, result)
|
1368
|
-
return n :String, ''
|
1368
|
+
return n :String, ''
|
1369
1369
|
result
|
1370
1370
|
end
|
1371
1371
|
.,.,
|
1372
1372
|
|
1373
1373
|
module_eval(<<'.,.,', 'huia.y', 205)
|
1374
1374
|
def _reduce_138(val, _values, result)
|
1375
|
-
return n :String, val[0]
|
1375
|
+
return n :String, val[0]
|
1376
1376
|
result
|
1377
1377
|
end
|
1378
1378
|
.,.,
|
1379
1379
|
|
1380
1380
|
module_eval(<<'.,.,', 'huia.y', 206)
|
1381
1381
|
def _reduce_139(val, _values, result)
|
1382
|
-
val[0].append(val[1]); return val[0]
|
1382
|
+
val[0].append(val[1]); return val[0]
|
1383
1383
|
result
|
1384
1384
|
end
|
1385
1385
|
.,.,
|
@@ -1389,4 +1389,4 @@ def _reduce_none(val, _values, result)
|
|
1389
1389
|
end
|
1390
1390
|
|
1391
1391
|
end # class Parser
|
1392
|
-
|
1392
|
+
end # module Huia
|