racc 1.4.15-java → 1.4.16-java
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
- 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/cast
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'
|
@@ -2491,14 +2491,14 @@ module_eval(<<'.,.,', 'cast.y', 269)
|
|
2491
2491
|
|
2492
2492
|
module_eval(<<'.,.,', 'cast.y', 273)
|
2493
2493
|
def _reduce_135(val, _values, result)
|
2494
|
-
result = add_type_quals(Pointer.new_at(val[0].pos), val[1][1])
|
2494
|
+
result = add_type_quals(Pointer.new_at(val[0].pos), val[1][1])
|
2495
2495
|
result
|
2496
2496
|
end
|
2497
2497
|
.,.,
|
2498
2498
|
|
2499
2499
|
module_eval(<<'.,.,', 'cast.y', 274)
|
2500
2500
|
def _reduce_136(val, _values, result)
|
2501
|
-
result = Pointer.new_at(val[0].pos)
|
2501
|
+
result = Pointer.new_at(val[0].pos)
|
2502
2502
|
result
|
2503
2503
|
end
|
2504
2504
|
.,.,
|
@@ -2604,7 +2604,7 @@ module_eval(<<'.,.,', 'cast.y', 307)
|
|
2604
2604
|
|
2605
2605
|
module_eval(<<'.,.,', 'cast.y', 308)
|
2606
2606
|
def _reduce_151(val, _values, result)
|
2607
|
-
result = make_direct_type(val[0][0], val[0][1])
|
2607
|
+
result = make_direct_type(val[0][0], val[0][1])
|
2608
2608
|
result
|
2609
2609
|
end
|
2610
2610
|
.,.,
|
@@ -3356,7 +3356,7 @@ module_eval(<<'.,.,', 'cast.y', 507)
|
|
3356
3356
|
result = Comma.new_at(val[0].pos, NodeArray[val[0], val[2]])
|
3357
3357
|
end
|
3358
3358
|
end
|
3359
|
-
|
3359
|
+
|
3360
3360
|
result
|
3361
3361
|
end
|
3362
3362
|
.,.,
|
@@ -3412,7 +3412,7 @@ module_eval(<<'.,.,', 'cast.y', 559)
|
|
3412
3412
|
|
3413
3413
|
module_eval(<<'.,.,', 'cast.y', 560)
|
3414
3414
|
def _reduce_264(val, _values, result)
|
3415
|
-
result = val[0].val; result.pos = val[0].pos
|
3415
|
+
result = val[0].val; result.pos = val[0].pos
|
3416
3416
|
result
|
3417
3417
|
end
|
3418
3418
|
.,.,
|
@@ -3422,4 +3422,4 @@ def _reduce_none(val, _values, result)
|
|
3422
3422
|
end
|
3423
3423
|
|
3424
3424
|
end # class Parser
|
3425
|
-
|
3425
|
+
end # module C
|
data/test/regress/csspool
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'
|
@@ -866,14 +866,14 @@ Racc_debug_parser = false
|
|
866
866
|
|
867
867
|
module_eval(<<'.,.,', 'csspool.y', 26)
|
868
868
|
def _reduce_1(val, _values, result)
|
869
|
-
@handler.start_document
|
869
|
+
@handler.start_document
|
870
870
|
result
|
871
871
|
end
|
872
872
|
.,.,
|
873
873
|
|
874
874
|
module_eval(<<'.,.,', 'csspool.y', 28)
|
875
875
|
def _reduce_2(val, _values, result)
|
876
|
-
@handler.end_document
|
876
|
+
@handler.end_document
|
877
877
|
result
|
878
878
|
end
|
879
879
|
.,.,
|
@@ -896,7 +896,7 @@ module_eval(<<'.,.,', 'csspool.y', 28)
|
|
896
896
|
|
897
897
|
module_eval(<<'.,.,', 'csspool.y', 41)
|
898
898
|
def _reduce_11(val, _values, result)
|
899
|
-
@handler.charset interpret_string(val[1]), {}
|
899
|
+
@handler.charset interpret_string(val[1]), {}
|
900
900
|
result
|
901
901
|
end
|
902
902
|
.,.,
|
@@ -904,7 +904,7 @@ module_eval(<<'.,.,', 'csspool.y', 41)
|
|
904
904
|
module_eval(<<'.,.,', 'csspool.y', 45)
|
905
905
|
def _reduce_12(val, _values, result)
|
906
906
|
@handler.import_style val[2], val[1]
|
907
|
-
|
907
|
+
|
908
908
|
result
|
909
909
|
end
|
910
910
|
.,.,
|
@@ -912,7 +912,7 @@ module_eval(<<'.,.,', 'csspool.y', 45)
|
|
912
912
|
module_eval(<<'.,.,', 'csspool.y', 48)
|
913
913
|
def _reduce_13(val, _values, result)
|
914
914
|
@handler.import_style [], val[1]
|
915
|
-
|
915
|
+
|
916
916
|
result
|
917
917
|
end
|
918
918
|
.,.,
|
@@ -921,14 +921,14 @@ module_eval(<<'.,.,', 'csspool.y', 48)
|
|
921
921
|
|
922
922
|
module_eval(<<'.,.,', 'csspool.y', 53)
|
923
923
|
def _reduce_15(val, _values, result)
|
924
|
-
result = Terms::String.new interpret_string val.first
|
924
|
+
result = Terms::String.new interpret_string val.first
|
925
925
|
result
|
926
926
|
end
|
927
927
|
.,.,
|
928
928
|
|
929
929
|
module_eval(<<'.,.,', 'csspool.y', 54)
|
930
930
|
def _reduce_16(val, _values, result)
|
931
|
-
result = Terms::URI.new interpret_uri val.first
|
931
|
+
result = Terms::URI.new interpret_uri val.first
|
932
932
|
result
|
933
933
|
end
|
934
934
|
.,.,
|
@@ -936,7 +936,7 @@ module_eval(<<'.,.,', 'csspool.y', 54)
|
|
936
936
|
module_eval(<<'.,.,', 'csspool.y', 58)
|
937
937
|
def _reduce_17(val, _values, result)
|
938
938
|
@handler.namespace val[1], val[2]
|
939
|
-
|
939
|
+
|
940
940
|
result
|
941
941
|
end
|
942
942
|
.,.,
|
@@ -944,7 +944,7 @@ module_eval(<<'.,.,', 'csspool.y', 58)
|
|
944
944
|
module_eval(<<'.,.,', 'csspool.y', 61)
|
945
945
|
def _reduce_18(val, _values, result)
|
946
946
|
@handler.namespace nil, val[1]
|
947
|
-
|
947
|
+
|
948
948
|
result
|
949
949
|
end
|
950
950
|
.,.,
|
@@ -952,7 +952,7 @@ module_eval(<<'.,.,', 'csspool.y', 61)
|
|
952
952
|
module_eval(<<'.,.,', 'csspool.y', 66)
|
953
953
|
def _reduce_19(val, _values, result)
|
954
954
|
result = val[0] << MediaType.new(val[2])
|
955
|
-
|
955
|
+
|
956
956
|
result
|
957
957
|
end
|
958
958
|
.,.,
|
@@ -960,112 +960,112 @@ module_eval(<<'.,.,', 'csspool.y', 66)
|
|
960
960
|
module_eval(<<'.,.,', 'csspool.y', 69)
|
961
961
|
def _reduce_20(val, _values, result)
|
962
962
|
result = [MediaType.new(val[0])]
|
963
|
-
|
963
|
+
|
964
964
|
result
|
965
965
|
end
|
966
966
|
.,.,
|
967
967
|
|
968
968
|
module_eval(<<'.,.,', 'csspool.y', 73)
|
969
969
|
def _reduce_21(val, _values, result)
|
970
|
-
result = MediaQueryList.new([ val[0] ])
|
970
|
+
result = MediaQueryList.new([ val[0] ])
|
971
971
|
result
|
972
972
|
end
|
973
973
|
.,.,
|
974
974
|
|
975
975
|
module_eval(<<'.,.,', 'csspool.y', 74)
|
976
976
|
def _reduce_22(val, _values, result)
|
977
|
-
result = val[0] << val[2]
|
977
|
+
result = val[0] << val[2]
|
978
978
|
result
|
979
979
|
end
|
980
980
|
.,.,
|
981
981
|
|
982
982
|
module_eval(<<'.,.,', 'csspool.y', 75)
|
983
983
|
def _reduce_23(val, _values, result)
|
984
|
-
result = MediaQueryList.new
|
984
|
+
result = MediaQueryList.new
|
985
985
|
result
|
986
986
|
end
|
987
987
|
.,.,
|
988
988
|
|
989
989
|
module_eval(<<'.,.,', 'csspool.y', 78)
|
990
990
|
def _reduce_24(val, _values, result)
|
991
|
-
result = MediaQuery.new(val[0], val[1], val[2])
|
991
|
+
result = MediaQuery.new(val[0], val[1], val[2])
|
992
992
|
result
|
993
993
|
end
|
994
994
|
.,.,
|
995
995
|
|
996
996
|
module_eval(<<'.,.,', 'csspool.y', 79)
|
997
997
|
def _reduce_25(val, _values, result)
|
998
|
-
result = MediaQuery.new(nil, val[0], val[1])
|
998
|
+
result = MediaQuery.new(nil, val[0], val[1])
|
999
999
|
result
|
1000
1000
|
end
|
1001
1001
|
.,.,
|
1002
1002
|
|
1003
1003
|
module_eval(<<'.,.,', 'csspool.y', 82)
|
1004
1004
|
def _reduce_26(val, _values, result)
|
1005
|
-
result = :only
|
1005
|
+
result = :only
|
1006
1006
|
result
|
1007
1007
|
end
|
1008
1008
|
.,.,
|
1009
1009
|
|
1010
1010
|
module_eval(<<'.,.,', 'csspool.y', 83)
|
1011
1011
|
def _reduce_27(val, _values, result)
|
1012
|
-
result = :not
|
1012
|
+
result = :not
|
1013
1013
|
result
|
1014
1014
|
end
|
1015
1015
|
.,.,
|
1016
1016
|
|
1017
1017
|
module_eval(<<'.,.,', 'csspool.y', 84)
|
1018
1018
|
def _reduce_28(val, _values, result)
|
1019
|
-
result = nil
|
1019
|
+
result = nil
|
1020
1020
|
result
|
1021
1021
|
end
|
1022
1022
|
.,.,
|
1023
1023
|
|
1024
1024
|
module_eval(<<'.,.,', 'csspool.y', 87)
|
1025
1025
|
def _reduce_29(val, _values, result)
|
1026
|
-
result = MediaType.new(val[0])
|
1026
|
+
result = MediaType.new(val[0])
|
1027
1027
|
result
|
1028
1028
|
end
|
1029
1029
|
.,.,
|
1030
1030
|
|
1031
1031
|
module_eval(<<'.,.,', 'csspool.y', 90)
|
1032
1032
|
def _reduce_30(val, _values, result)
|
1033
|
-
result = MediaType.new(val[2])
|
1033
|
+
result = MediaType.new(val[2])
|
1034
1034
|
result
|
1035
1035
|
end
|
1036
1036
|
.,.,
|
1037
1037
|
|
1038
1038
|
module_eval(<<'.,.,', 'csspool.y', 91)
|
1039
1039
|
def _reduce_31(val, _values, result)
|
1040
|
-
result = MediaFeature.new(val[2], val[6][0])
|
1040
|
+
result = MediaFeature.new(val[2], val[6][0])
|
1041
1041
|
result
|
1042
1042
|
end
|
1043
1043
|
.,.,
|
1044
1044
|
|
1045
1045
|
module_eval(<<'.,.,', 'csspool.y', 94)
|
1046
1046
|
def _reduce_32(val, _values, result)
|
1047
|
-
result = val[0]
|
1047
|
+
result = val[0]
|
1048
1048
|
result
|
1049
1049
|
end
|
1050
1050
|
.,.,
|
1051
1051
|
|
1052
1052
|
module_eval(<<'.,.,', 'csspool.y', 95)
|
1053
1053
|
def _reduce_33(val, _values, result)
|
1054
|
-
result = nil
|
1054
|
+
result = nil
|
1055
1055
|
result
|
1056
1056
|
end
|
1057
1057
|
.,.,
|
1058
1058
|
|
1059
1059
|
module_eval(<<'.,.,', 'csspool.y', 98)
|
1060
1060
|
def _reduce_34(val, _values, result)
|
1061
|
-
result = val[0] << val[2]
|
1061
|
+
result = val[0] << val[2]
|
1062
1062
|
result
|
1063
1063
|
end
|
1064
1064
|
.,.,
|
1065
1065
|
|
1066
1066
|
module_eval(<<'.,.,', 'csspool.y', 99)
|
1067
1067
|
def _reduce_35(val, _values, result)
|
1068
|
-
result = []
|
1068
|
+
result = []
|
1069
1069
|
result
|
1070
1070
|
end
|
1071
1071
|
.,.,
|
@@ -1075,7 +1075,7 @@ module_eval(<<'.,.,', 'csspool.y', 103)
|
|
1075
1075
|
unit = val.first.gsub(/[\s\d.]/, '')
|
1076
1076
|
number = numeric(val.first)
|
1077
1077
|
result = Terms::Resolution.new(number, unit)
|
1078
|
-
|
1078
|
+
|
1079
1079
|
result
|
1080
1080
|
end
|
1081
1081
|
.,.,
|
@@ -1108,7 +1108,7 @@ module_eval(<<'.,.,', 'csspool.y', 103)
|
|
1108
1108
|
|
1109
1109
|
module_eval(<<'.,.,', 'csspool.y', 128)
|
1110
1110
|
def _reduce_50(val, _values, result)
|
1111
|
-
@handler.end_media val.first
|
1111
|
+
@handler.end_media val.first
|
1112
1112
|
result
|
1113
1113
|
end
|
1114
1114
|
.,.,
|
@@ -1117,21 +1117,21 @@ module_eval(<<'.,.,', 'csspool.y', 132)
|
|
1117
1117
|
def _reduce_51(val, _values, result)
|
1118
1118
|
result = val[1]
|
1119
1119
|
@handler.start_media result
|
1120
|
-
|
1120
|
+
|
1121
1121
|
result
|
1122
1122
|
end
|
1123
1123
|
.,.,
|
1124
1124
|
|
1125
1125
|
module_eval(<<'.,.,', 'csspool.y', 137)
|
1126
1126
|
def _reduce_52(val, _values, result)
|
1127
|
-
@handler.end_document_query(before_pos(val), after_pos(val))
|
1127
|
+
@handler.end_document_query(before_pos(val), after_pos(val))
|
1128
1128
|
result
|
1129
1129
|
end
|
1130
1130
|
.,.,
|
1131
1131
|
|
1132
1132
|
module_eval(<<'.,.,', 'csspool.y', 138)
|
1133
1133
|
def _reduce_53(val, _values, result)
|
1134
|
-
@handler.end_document_query(before_pos(val), after_pos(val))
|
1134
|
+
@handler.end_document_query(before_pos(val), after_pos(val))
|
1135
1135
|
result
|
1136
1136
|
end
|
1137
1137
|
.,.,
|
@@ -1139,7 +1139,7 @@ module_eval(<<'.,.,', 'csspool.y', 138)
|
|
1139
1139
|
module_eval(<<'.,.,', 'csspool.y', 142)
|
1140
1140
|
def _reduce_54(val, _values, result)
|
1141
1141
|
@handler.start_document_query(val[1], after_pos(val))
|
1142
|
-
|
1142
|
+
|
1143
1143
|
result
|
1144
1144
|
end
|
1145
1145
|
.,.,
|
@@ -1147,7 +1147,7 @@ module_eval(<<'.,.,', 'csspool.y', 142)
|
|
1147
1147
|
module_eval(<<'.,.,', 'csspool.y', 147)
|
1148
1148
|
def _reduce_55(val, _values, result)
|
1149
1149
|
@handler.node_start_pos = before_pos(val)
|
1150
|
-
|
1150
|
+
|
1151
1151
|
result
|
1152
1152
|
end
|
1153
1153
|
.,.,
|
@@ -1155,7 +1155,7 @@ module_eval(<<'.,.,', 'csspool.y', 147)
|
|
1155
1155
|
module_eval(<<'.,.,', 'csspool.y', 152)
|
1156
1156
|
def _reduce_56(val, _values, result)
|
1157
1157
|
result = [val[0], val[2]].flatten
|
1158
|
-
|
1158
|
+
|
1159
1159
|
result
|
1160
1160
|
end
|
1161
1161
|
.,.,
|
@@ -1163,7 +1163,7 @@ module_eval(<<'.,.,', 'csspool.y', 152)
|
|
1163
1163
|
module_eval(<<'.,.,', 'csspool.y', 155)
|
1164
1164
|
def _reduce_57(val, _values, result)
|
1165
1165
|
result = val
|
1166
|
-
|
1166
|
+
|
1167
1167
|
result
|
1168
1168
|
end
|
1169
1169
|
.,.,
|
@@ -1176,14 +1176,14 @@ module_eval(<<'.,.,', 'csspool.y', 155)
|
|
1176
1176
|
|
1177
1177
|
module_eval(<<'.,.,', 'csspool.y', 164)
|
1178
1178
|
def _reduce_61(val, _values, result)
|
1179
|
-
@handler.end_supports
|
1179
|
+
@handler.end_supports
|
1180
1180
|
result
|
1181
1181
|
end
|
1182
1182
|
.,.,
|
1183
1183
|
|
1184
1184
|
module_eval(<<'.,.,', 'csspool.y', 165)
|
1185
1185
|
def _reduce_62(val, _values, result)
|
1186
|
-
@handler.end_supports
|
1186
|
+
@handler.end_supports
|
1187
1187
|
result
|
1188
1188
|
end
|
1189
1189
|
.,.,
|
@@ -1191,70 +1191,70 @@ module_eval(<<'.,.,', 'csspool.y', 165)
|
|
1191
1191
|
module_eval(<<'.,.,', 'csspool.y', 169)
|
1192
1192
|
def _reduce_63(val, _values, result)
|
1193
1193
|
@handler.start_supports val[1]
|
1194
|
-
|
1194
|
+
|
1195
1195
|
result
|
1196
1196
|
end
|
1197
1197
|
.,.,
|
1198
1198
|
|
1199
1199
|
module_eval(<<'.,.,', 'csspool.y', 173)
|
1200
1200
|
def _reduce_64(val, _values, result)
|
1201
|
-
result = val.join('')
|
1201
|
+
result = val.join('')
|
1202
1202
|
result
|
1203
1203
|
end
|
1204
1204
|
.,.,
|
1205
1205
|
|
1206
1206
|
module_eval(<<'.,.,', 'csspool.y', 174)
|
1207
1207
|
def _reduce_65(val, _values, result)
|
1208
|
-
result = val.join('')
|
1208
|
+
result = val.join('')
|
1209
1209
|
result
|
1210
1210
|
end
|
1211
1211
|
.,.,
|
1212
1212
|
|
1213
1213
|
module_eval(<<'.,.,', 'csspool.y', 175)
|
1214
1214
|
def _reduce_66(val, _values, result)
|
1215
|
-
result = val.join('')
|
1215
|
+
result = val.join('')
|
1216
1216
|
result
|
1217
1217
|
end
|
1218
1218
|
.,.,
|
1219
1219
|
|
1220
1220
|
module_eval(<<'.,.,', 'csspool.y', 178)
|
1221
1221
|
def _reduce_67(val, _values, result)
|
1222
|
-
result = val.join('')
|
1222
|
+
result = val.join('')
|
1223
1223
|
result
|
1224
1224
|
end
|
1225
1225
|
.,.,
|
1226
1226
|
|
1227
1227
|
module_eval(<<'.,.,', 'csspool.y', 179)
|
1228
1228
|
def _reduce_68(val, _values, result)
|
1229
|
-
result = val.join('')
|
1229
|
+
result = val.join('')
|
1230
1230
|
result
|
1231
1231
|
end
|
1232
1232
|
.,.,
|
1233
1233
|
|
1234
1234
|
module_eval(<<'.,.,', 'csspool.y', 180)
|
1235
1235
|
def _reduce_69(val, _values, result)
|
1236
|
-
result = val.join('')
|
1236
|
+
result = val.join('')
|
1237
1237
|
result
|
1238
1238
|
end
|
1239
1239
|
.,.,
|
1240
1240
|
|
1241
1241
|
module_eval(<<'.,.,', 'csspool.y', 183)
|
1242
1242
|
def _reduce_70(val, _values, result)
|
1243
|
-
result = val.join('')
|
1243
|
+
result = val.join('')
|
1244
1244
|
result
|
1245
1245
|
end
|
1246
1246
|
.,.,
|
1247
1247
|
|
1248
1248
|
module_eval(<<'.,.,', 'csspool.y', 184)
|
1249
1249
|
def _reduce_71(val, _values, result)
|
1250
|
-
result = val.join('')
|
1250
|
+
result = val.join('')
|
1251
1251
|
result
|
1252
1252
|
end
|
1253
1253
|
.,.,
|
1254
1254
|
|
1255
1255
|
module_eval(<<'.,.,', 'csspool.y', 187)
|
1256
1256
|
def _reduce_72(val, _values, result)
|
1257
|
-
result = val.join('')
|
1257
|
+
result = val.join('')
|
1258
1258
|
result
|
1259
1259
|
end
|
1260
1260
|
.,.,
|
@@ -1265,42 +1265,42 @@ module_eval(<<'.,.,', 'csspool.y', 187)
|
|
1265
1265
|
|
1266
1266
|
module_eval(<<'.,.,', 'csspool.y', 194)
|
1267
1267
|
def _reduce_75(val, _values, result)
|
1268
|
-
result = val.join('')
|
1268
|
+
result = val.join('')
|
1269
1269
|
result
|
1270
1270
|
end
|
1271
1271
|
.,.,
|
1272
1272
|
|
1273
1273
|
module_eval(<<'.,.,', 'csspool.y', 195)
|
1274
1274
|
def _reduce_76(val, _values, result)
|
1275
|
-
result = val.join('')
|
1275
|
+
result = val.join('')
|
1276
1276
|
result
|
1277
1277
|
end
|
1278
1278
|
.,.,
|
1279
1279
|
|
1280
1280
|
module_eval(<<'.,.,', 'csspool.y', 198)
|
1281
1281
|
def _reduce_77(val, _values, result)
|
1282
|
-
result = val.join('')
|
1282
|
+
result = val.join('')
|
1283
1283
|
result
|
1284
1284
|
end
|
1285
1285
|
.,.,
|
1286
1286
|
|
1287
1287
|
module_eval(<<'.,.,', 'csspool.y', 199)
|
1288
1288
|
def _reduce_78(val, _values, result)
|
1289
|
-
result = val.join('')
|
1289
|
+
result = val.join('')
|
1290
1290
|
result
|
1291
1291
|
end
|
1292
1292
|
.,.,
|
1293
1293
|
|
1294
1294
|
module_eval(<<'.,.,', 'csspool.y', 202)
|
1295
1295
|
def _reduce_79(val, _values, result)
|
1296
|
-
result = val.join('')
|
1296
|
+
result = val.join('')
|
1297
1297
|
result
|
1298
1298
|
end
|
1299
1299
|
.,.,
|
1300
1300
|
|
1301
1301
|
module_eval(<<'.,.,', 'csspool.y', 203)
|
1302
1302
|
def _reduce_80(val, _values, result)
|
1303
|
-
result = val.join('')
|
1303
|
+
result = val.join('')
|
1304
1304
|
result
|
1305
1305
|
end
|
1306
1306
|
.,.,
|
@@ -1312,7 +1312,7 @@ module_eval(<<'.,.,', 'csspool.y', 203)
|
|
1312
1312
|
module_eval(<<'.,.,', 'csspool.y', 211)
|
1313
1313
|
def _reduce_83(val, _values, result)
|
1314
1314
|
@handler.start_keyframes_rule val[1]
|
1315
|
-
|
1315
|
+
|
1316
1316
|
result
|
1317
1317
|
end
|
1318
1318
|
.,.,
|
@@ -1323,14 +1323,14 @@ module_eval(<<'.,.,', 'csspool.y', 211)
|
|
1323
1323
|
|
1324
1324
|
module_eval(<<'.,.,', 'csspool.y', 219)
|
1325
1325
|
def _reduce_86(val, _values, result)
|
1326
|
-
@handler.end_keyframes_block
|
1326
|
+
@handler.end_keyframes_block
|
1327
1327
|
result
|
1328
1328
|
end
|
1329
1329
|
.,.,
|
1330
1330
|
|
1331
1331
|
module_eval(<<'.,.,', 'csspool.y', 220)
|
1332
1332
|
def _reduce_87(val, _values, result)
|
1333
|
-
@handler.end_keyframes_block
|
1333
|
+
@handler.end_keyframes_block
|
1334
1334
|
result
|
1335
1335
|
end
|
1336
1336
|
.,.,
|
@@ -1338,7 +1338,7 @@ module_eval(<<'.,.,', 'csspool.y', 220)
|
|
1338
1338
|
module_eval(<<'.,.,', 'csspool.y', 224)
|
1339
1339
|
def _reduce_88(val, _values, result)
|
1340
1340
|
@handler.start_keyframes_block val[0]
|
1341
|
-
|
1341
|
+
|
1342
1342
|
result
|
1343
1343
|
end
|
1344
1344
|
.,.,
|
@@ -1348,7 +1348,7 @@ module_eval(<<'.,.,', 'csspool.y', 224)
|
|
1348
1348
|
module_eval(<<'.,.,', 'csspool.y', 229)
|
1349
1349
|
def _reduce_90(val, _values, result)
|
1350
1350
|
result = val[0] + ', ' + val[2]
|
1351
|
-
|
1351
|
+
|
1352
1352
|
result
|
1353
1353
|
end
|
1354
1354
|
.,.,
|
@@ -1359,21 +1359,21 @@ module_eval(<<'.,.,', 'csspool.y', 229)
|
|
1359
1359
|
|
1360
1360
|
module_eval(<<'.,.,', 'csspool.y', 235)
|
1361
1361
|
def _reduce_93(val, _values, result)
|
1362
|
-
result = val[0].strip
|
1362
|
+
result = val[0].strip
|
1363
1363
|
result
|
1364
1364
|
end
|
1365
1365
|
.,.,
|
1366
1366
|
|
1367
1367
|
module_eval(<<'.,.,', 'csspool.y', 238)
|
1368
1368
|
def _reduce_94(val, _values, result)
|
1369
|
-
@handler.end_fontface_rule
|
1369
|
+
@handler.end_fontface_rule
|
1370
1370
|
result
|
1371
1371
|
end
|
1372
1372
|
.,.,
|
1373
1373
|
|
1374
1374
|
module_eval(<<'.,.,', 'csspool.y', 239)
|
1375
1375
|
def _reduce_95(val, _values, result)
|
1376
|
-
@handler.end_fontface_rule
|
1376
|
+
@handler.end_fontface_rule
|
1377
1377
|
result
|
1378
1378
|
end
|
1379
1379
|
.,.,
|
@@ -1381,7 +1381,7 @@ module_eval(<<'.,.,', 'csspool.y', 239)
|
|
1381
1381
|
module_eval(<<'.,.,', 'csspool.y', 243)
|
1382
1382
|
def _reduce_96(val, _values, result)
|
1383
1383
|
@handler.start_fontface_rule
|
1384
|
-
|
1384
|
+
|
1385
1385
|
result
|
1386
1386
|
end
|
1387
1387
|
.,.,
|
@@ -1389,7 +1389,7 @@ module_eval(<<'.,.,', 'csspool.y', 243)
|
|
1389
1389
|
module_eval(<<'.,.,', 'csspool.y', 248)
|
1390
1390
|
def _reduce_97(val, _values, result)
|
1391
1391
|
@handler.end_selector val.first
|
1392
|
-
|
1392
|
+
|
1393
1393
|
result
|
1394
1394
|
end
|
1395
1395
|
.,.,
|
@@ -1397,7 +1397,7 @@ module_eval(<<'.,.,', 'csspool.y', 248)
|
|
1397
1397
|
module_eval(<<'.,.,', 'csspool.y', 251)
|
1398
1398
|
def _reduce_98(val, _values, result)
|
1399
1399
|
@handler.end_selector val.first
|
1400
|
-
|
1400
|
+
|
1401
1401
|
result
|
1402
1402
|
end
|
1403
1403
|
.,.,
|
@@ -1406,14 +1406,14 @@ module_eval(<<'.,.,', 'csspool.y', 256)
|
|
1406
1406
|
def _reduce_99(val, _values, result)
|
1407
1407
|
start = @handler.start_selector([])
|
1408
1408
|
@handler.end_selector(start)
|
1409
|
-
|
1409
|
+
|
1410
1410
|
result
|
1411
1411
|
end
|
1412
1412
|
.,.,
|
1413
1413
|
|
1414
1414
|
module_eval(<<'.,.,', 'csspool.y', 261)
|
1415
1415
|
def _reduce_100(val, _values, result)
|
1416
|
-
result = val.last
|
1416
|
+
result = val.last
|
1417
1417
|
result
|
1418
1418
|
end
|
1419
1419
|
.,.,
|
@@ -1421,7 +1421,7 @@ module_eval(<<'.,.,', 'csspool.y', 261)
|
|
1421
1421
|
module_eval(<<'.,.,', 'csspool.y', 263)
|
1422
1422
|
def _reduce_101(val, _values, result)
|
1423
1423
|
@handler.start_selector val.first
|
1424
|
-
|
1424
|
+
|
1425
1425
|
result
|
1426
1426
|
end
|
1427
1427
|
.,.,
|
@@ -1430,7 +1430,7 @@ module_eval(<<'.,.,', 'csspool.y', 269)
|
|
1430
1430
|
def _reduce_102(val, _values, result)
|
1431
1431
|
sel = Selector.new(val.first, {})
|
1432
1432
|
result = [sel].concat(val[2])
|
1433
|
-
|
1433
|
+
|
1434
1434
|
result
|
1435
1435
|
end
|
1436
1436
|
.,.,
|
@@ -1438,7 +1438,7 @@ module_eval(<<'.,.,', 'csspool.y', 269)
|
|
1438
1438
|
module_eval(<<'.,.,', 'csspool.y', 274)
|
1439
1439
|
def _reduce_103(val, _values, result)
|
1440
1440
|
result = [Selector.new(val.first, {})]
|
1441
|
-
|
1441
|
+
|
1442
1442
|
result
|
1443
1443
|
end
|
1444
1444
|
.,.,
|
@@ -1448,7 +1448,7 @@ module_eval(<<'.,.,', 'csspool.y', 280)
|
|
1448
1448
|
val.flatten!
|
1449
1449
|
val[2].combinator = val.delete_at 1
|
1450
1450
|
result = val
|
1451
|
-
|
1451
|
+
|
1452
1452
|
result
|
1453
1453
|
end
|
1454
1454
|
.,.,
|
@@ -1457,28 +1457,28 @@ module_eval(<<'.,.,', 'csspool.y', 280)
|
|
1457
1457
|
|
1458
1458
|
module_eval(<<'.,.,', 'csspool.y', 287)
|
1459
1459
|
def _reduce_106(val, _values, result)
|
1460
|
-
result = :s
|
1460
|
+
result = :s
|
1461
1461
|
result
|
1462
1462
|
end
|
1463
1463
|
.,.,
|
1464
1464
|
|
1465
1465
|
module_eval(<<'.,.,', 'csspool.y', 288)
|
1466
1466
|
def _reduce_107(val, _values, result)
|
1467
|
-
result = :>
|
1467
|
+
result = :>
|
1468
1468
|
result
|
1469
1469
|
end
|
1470
1470
|
.,.,
|
1471
1471
|
|
1472
1472
|
module_eval(<<'.,.,', 'csspool.y', 289)
|
1473
1473
|
def _reduce_108(val, _values, result)
|
1474
|
-
result = :+
|
1474
|
+
result = :+
|
1475
1475
|
result
|
1476
1476
|
end
|
1477
1477
|
.,.,
|
1478
1478
|
|
1479
1479
|
module_eval(<<'.,.,', 'csspool.y', 290)
|
1480
1480
|
def _reduce_109(val, _values, result)
|
1481
|
-
result = :~
|
1481
|
+
result = :~
|
1482
1482
|
result
|
1483
1483
|
end
|
1484
1484
|
.,.,
|
@@ -1488,14 +1488,14 @@ module_eval(<<'.,.,', 'csspool.y', 294)
|
|
1488
1488
|
selector = val.first
|
1489
1489
|
selector.additional_selectors = val.last
|
1490
1490
|
result = [selector]
|
1491
|
-
|
1491
|
+
|
1492
1492
|
result
|
1493
1493
|
end
|
1494
1494
|
.,.,
|
1495
1495
|
|
1496
1496
|
module_eval(<<'.,.,', 'csspool.y', 298)
|
1497
1497
|
def _reduce_111(val, _values, result)
|
1498
|
-
result = val
|
1498
|
+
result = val
|
1499
1499
|
result
|
1500
1500
|
end
|
1501
1501
|
.,.,
|
@@ -1505,14 +1505,14 @@ module_eval(<<'.,.,', 'csspool.y', 301)
|
|
1505
1505
|
ss = Selectors::Simple.new nil, nil
|
1506
1506
|
ss.additional_selectors = val.flatten
|
1507
1507
|
result = [ss]
|
1508
|
-
|
1508
|
+
|
1509
1509
|
result
|
1510
1510
|
end
|
1511
1511
|
.,.,
|
1512
1512
|
|
1513
1513
|
module_eval(<<'.,.,', 'csspool.y', 307)
|
1514
1514
|
def _reduce_113(val, _values, result)
|
1515
|
-
result = [val[0], val[2]].flatten
|
1515
|
+
result = [val[0], val[2]].flatten
|
1516
1516
|
result
|
1517
1517
|
end
|
1518
1518
|
.,.,
|
@@ -1521,119 +1521,119 @@ module_eval(<<'.,.,', 'csspool.y', 307)
|
|
1521
1521
|
|
1522
1522
|
module_eval(<<'.,.,', 'csspool.y', 311)
|
1523
1523
|
def _reduce_115(val, _values, result)
|
1524
|
-
result = [interpret_identifier(val[0]), nil]
|
1524
|
+
result = [interpret_identifier(val[0]), nil]
|
1525
1525
|
result
|
1526
1526
|
end
|
1527
1527
|
.,.,
|
1528
1528
|
|
1529
1529
|
module_eval(<<'.,.,', 'csspool.y', 312)
|
1530
1530
|
def _reduce_116(val, _values, result)
|
1531
|
-
result = [interpret_identifier(val[2]), interpret_identifier(val[0])]
|
1531
|
+
result = [interpret_identifier(val[2]), interpret_identifier(val[0])]
|
1532
1532
|
result
|
1533
1533
|
end
|
1534
1534
|
.,.,
|
1535
1535
|
|
1536
1536
|
module_eval(<<'.,.,', 'csspool.y', 313)
|
1537
1537
|
def _reduce_117(val, _values, result)
|
1538
|
-
result = [interpret_identifier(val[1]), nil]
|
1538
|
+
result = [interpret_identifier(val[1]), nil]
|
1539
1539
|
result
|
1540
1540
|
end
|
1541
1541
|
.,.,
|
1542
1542
|
|
1543
1543
|
module_eval(<<'.,.,', 'csspool.y', 314)
|
1544
1544
|
def _reduce_118(val, _values, result)
|
1545
|
-
result = [interpret_identifier(val[2]), '*']
|
1545
|
+
result = [interpret_identifier(val[2]), '*']
|
1546
1546
|
result
|
1547
1547
|
end
|
1548
1548
|
.,.,
|
1549
1549
|
|
1550
1550
|
module_eval(<<'.,.,', 'csspool.y', 317)
|
1551
1551
|
def _reduce_119(val, _values, result)
|
1552
|
-
result = Selectors::Type.new val.first[0], nil, val.first[1]
|
1552
|
+
result = Selectors::Type.new val.first[0], nil, val.first[1]
|
1553
1553
|
result
|
1554
1554
|
end
|
1555
1555
|
.,.,
|
1556
1556
|
|
1557
1557
|
module_eval(<<'.,.,', 'csspool.y', 318)
|
1558
1558
|
def _reduce_120(val, _values, result)
|
1559
|
-
result = Selectors::Universal.new val.first
|
1559
|
+
result = Selectors::Universal.new val.first
|
1560
1560
|
result
|
1561
1561
|
end
|
1562
1562
|
.,.,
|
1563
1563
|
|
1564
1564
|
module_eval(<<'.,.,', 'csspool.y', 319)
|
1565
1565
|
def _reduce_121(val, _values, result)
|
1566
|
-
result = Selectors::Universal.new val[1]
|
1566
|
+
result = Selectors::Universal.new val[1]
|
1567
1567
|
result
|
1568
1568
|
end
|
1569
1569
|
.,.,
|
1570
1570
|
|
1571
1571
|
module_eval(<<'.,.,', 'csspool.y', 320)
|
1572
1572
|
def _reduce_122(val, _values, result)
|
1573
|
-
result = Selectors::Universal.new val[2], nil, val[0]
|
1573
|
+
result = Selectors::Universal.new val[2], nil, val[0]
|
1574
1574
|
result
|
1575
1575
|
end
|
1576
1576
|
.,.,
|
1577
1577
|
|
1578
1578
|
module_eval(<<'.,.,', 'csspool.y', 321)
|
1579
1579
|
def _reduce_123(val, _values, result)
|
1580
|
-
result = Selectors::Universal.new val[2], nil, interpret_identifier(val[0])
|
1580
|
+
result = Selectors::Universal.new val[2], nil, interpret_identifier(val[0])
|
1581
1581
|
result
|
1582
1582
|
end
|
1583
1583
|
.,.,
|
1584
1584
|
|
1585
1585
|
module_eval(<<'.,.,', 'csspool.y', 324)
|
1586
1586
|
def _reduce_124(val, _values, result)
|
1587
|
-
result = val
|
1587
|
+
result = val
|
1588
1588
|
result
|
1589
1589
|
end
|
1590
1590
|
.,.,
|
1591
1591
|
|
1592
1592
|
module_eval(<<'.,.,', 'csspool.y', 325)
|
1593
1593
|
def _reduce_125(val, _values, result)
|
1594
|
-
result = val
|
1594
|
+
result = val
|
1595
1595
|
result
|
1596
1596
|
end
|
1597
1597
|
.,.,
|
1598
1598
|
|
1599
1599
|
module_eval(<<'.,.,', 'csspool.y', 326)
|
1600
1600
|
def _reduce_126(val, _values, result)
|
1601
|
-
result = val
|
1601
|
+
result = val
|
1602
1602
|
result
|
1603
1603
|
end
|
1604
1604
|
.,.,
|
1605
1605
|
|
1606
1606
|
module_eval(<<'.,.,', 'csspool.y', 327)
|
1607
1607
|
def _reduce_127(val, _values, result)
|
1608
|
-
result = val
|
1608
|
+
result = val
|
1609
1609
|
result
|
1610
1610
|
end
|
1611
1611
|
.,.,
|
1612
1612
|
|
1613
1613
|
module_eval(<<'.,.,', 'csspool.y', 328)
|
1614
1614
|
def _reduce_128(val, _values, result)
|
1615
|
-
result = val.flatten
|
1615
|
+
result = val.flatten
|
1616
1616
|
result
|
1617
1617
|
end
|
1618
1618
|
.,.,
|
1619
1619
|
|
1620
1620
|
module_eval(<<'.,.,', 'csspool.y', 329)
|
1621
1621
|
def _reduce_129(val, _values, result)
|
1622
|
-
result = val.flatten
|
1622
|
+
result = val.flatten
|
1623
1623
|
result
|
1624
1624
|
end
|
1625
1625
|
.,.,
|
1626
1626
|
|
1627
1627
|
module_eval(<<'.,.,', 'csspool.y', 330)
|
1628
1628
|
def _reduce_130(val, _values, result)
|
1629
|
-
result = val.flatten
|
1629
|
+
result = val.flatten
|
1630
1630
|
result
|
1631
1631
|
end
|
1632
1632
|
.,.,
|
1633
1633
|
|
1634
1634
|
module_eval(<<'.,.,', 'csspool.y', 331)
|
1635
1635
|
def _reduce_131(val, _values, result)
|
1636
|
-
result = val.flatten
|
1636
|
+
result = val.flatten
|
1637
1637
|
result
|
1638
1638
|
end
|
1639
1639
|
.,.,
|
@@ -1641,7 +1641,7 @@ module_eval(<<'.,.,', 'csspool.y', 331)
|
|
1641
1641
|
module_eval(<<'.,.,', 'csspool.y', 335)
|
1642
1642
|
def _reduce_132(val, _values, result)
|
1643
1643
|
result = Selectors::Id.new interpret_identifier val.first.sub(/^#/, '')
|
1644
|
-
|
1644
|
+
|
1645
1645
|
result
|
1646
1646
|
end
|
1647
1647
|
.,.,
|
@@ -1649,7 +1649,7 @@ module_eval(<<'.,.,', 'csspool.y', 335)
|
|
1649
1649
|
module_eval(<<'.,.,', 'csspool.y', 339)
|
1650
1650
|
def _reduce_133(val, _values, result)
|
1651
1651
|
result = Selectors::Class.new interpret_identifier val.last
|
1652
|
-
|
1652
|
+
|
1653
1653
|
result
|
1654
1654
|
end
|
1655
1655
|
.,.,
|
@@ -1662,7 +1662,7 @@ module_eval(<<'.,.,', 'csspool.y', 344)
|
|
1662
1662
|
Selectors::Attribute::EQUALS,
|
1663
1663
|
val[1][1]
|
1664
1664
|
)
|
1665
|
-
|
1665
|
+
|
1666
1666
|
result
|
1667
1667
|
end
|
1668
1668
|
.,.,
|
@@ -1675,7 +1675,7 @@ module_eval(<<'.,.,', 'csspool.y', 352)
|
|
1675
1675
|
Selectors::Attribute::EQUALS,
|
1676
1676
|
val[1][1]
|
1677
1677
|
)
|
1678
|
-
|
1678
|
+
|
1679
1679
|
result
|
1680
1680
|
end
|
1681
1681
|
.,.,
|
@@ -1688,7 +1688,7 @@ module_eval(<<'.,.,', 'csspool.y', 360)
|
|
1688
1688
|
Selectors::Attribute::INCLUDES,
|
1689
1689
|
val[1][1]
|
1690
1690
|
)
|
1691
|
-
|
1691
|
+
|
1692
1692
|
result
|
1693
1693
|
end
|
1694
1694
|
.,.,
|
@@ -1701,7 +1701,7 @@ module_eval(<<'.,.,', 'csspool.y', 368)
|
|
1701
1701
|
Selectors::Attribute::INCLUDES,
|
1702
1702
|
val[1][1]
|
1703
1703
|
)
|
1704
|
-
|
1704
|
+
|
1705
1705
|
result
|
1706
1706
|
end
|
1707
1707
|
.,.,
|
@@ -1714,7 +1714,7 @@ module_eval(<<'.,.,', 'csspool.y', 376)
|
|
1714
1714
|
Selectors::Attribute::DASHMATCH,
|
1715
1715
|
val[1][1]
|
1716
1716
|
)
|
1717
|
-
|
1717
|
+
|
1718
1718
|
result
|
1719
1719
|
end
|
1720
1720
|
.,.,
|
@@ -1727,7 +1727,7 @@ module_eval(<<'.,.,', 'csspool.y', 384)
|
|
1727
1727
|
Selectors::Attribute::DASHMATCH,
|
1728
1728
|
val[1][1]
|
1729
1729
|
)
|
1730
|
-
|
1730
|
+
|
1731
1731
|
result
|
1732
1732
|
end
|
1733
1733
|
.,.,
|
@@ -1740,7 +1740,7 @@ module_eval(<<'.,.,', 'csspool.y', 392)
|
|
1740
1740
|
Selectors::Attribute::PREFIXMATCH,
|
1741
1741
|
val[1][1]
|
1742
1742
|
)
|
1743
|
-
|
1743
|
+
|
1744
1744
|
result
|
1745
1745
|
end
|
1746
1746
|
.,.,
|
@@ -1753,7 +1753,7 @@ module_eval(<<'.,.,', 'csspool.y', 400)
|
|
1753
1753
|
Selectors::Attribute::PREFIXMATCH,
|
1754
1754
|
val[1][1]
|
1755
1755
|
)
|
1756
|
-
|
1756
|
+
|
1757
1757
|
result
|
1758
1758
|
end
|
1759
1759
|
.,.,
|
@@ -1766,7 +1766,7 @@ module_eval(<<'.,.,', 'csspool.y', 408)
|
|
1766
1766
|
Selectors::Attribute::SUFFIXMATCH,
|
1767
1767
|
val[1][1]
|
1768
1768
|
)
|
1769
|
-
|
1769
|
+
|
1770
1770
|
result
|
1771
1771
|
end
|
1772
1772
|
.,.,
|
@@ -1779,7 +1779,7 @@ module_eval(<<'.,.,', 'csspool.y', 416)
|
|
1779
1779
|
Selectors::Attribute::SUFFIXMATCH,
|
1780
1780
|
val[1][1]
|
1781
1781
|
)
|
1782
|
-
|
1782
|
+
|
1783
1783
|
result
|
1784
1784
|
end
|
1785
1785
|
.,.,
|
@@ -1792,7 +1792,7 @@ module_eval(<<'.,.,', 'csspool.y', 424)
|
|
1792
1792
|
Selectors::Attribute::SUBSTRINGMATCH,
|
1793
1793
|
val[1][1]
|
1794
1794
|
)
|
1795
|
-
|
1795
|
+
|
1796
1796
|
result
|
1797
1797
|
end
|
1798
1798
|
.,.,
|
@@ -1805,7 +1805,7 @@ module_eval(<<'.,.,', 'csspool.y', 432)
|
|
1805
1805
|
Selectors::Attribute::SUBSTRINGMATCH,
|
1806
1806
|
val[1][1]
|
1807
1807
|
)
|
1808
|
-
|
1808
|
+
|
1809
1809
|
result
|
1810
1810
|
end
|
1811
1811
|
.,.,
|
@@ -1818,7 +1818,7 @@ module_eval(<<'.,.,', 'csspool.y', 440)
|
|
1818
1818
|
Selectors::Attribute::SET,
|
1819
1819
|
val[1][1]
|
1820
1820
|
)
|
1821
|
-
|
1821
|
+
|
1822
1822
|
result
|
1823
1823
|
end
|
1824
1824
|
.,.,
|
@@ -1826,7 +1826,7 @@ module_eval(<<'.,.,', 'csspool.y', 440)
|
|
1826
1826
|
module_eval(<<'.,.,', 'csspool.y', 450)
|
1827
1827
|
def _reduce_147(val, _values, result)
|
1828
1828
|
result = Selectors::pseudo interpret_identifier(val[1])
|
1829
|
-
|
1829
|
+
|
1830
1830
|
result
|
1831
1831
|
end
|
1832
1832
|
.,.,
|
@@ -1836,7 +1836,7 @@ module_eval(<<'.,.,', 'csspool.y', 453)
|
|
1836
1836
|
result = Selectors::PseudoElement.new(
|
1837
1837
|
interpret_identifier(val[2])
|
1838
1838
|
)
|
1839
|
-
|
1839
|
+
|
1840
1840
|
result
|
1841
1841
|
end
|
1842
1842
|
.,.,
|
@@ -1847,7 +1847,7 @@ module_eval(<<'.,.,', 'csspool.y', 458)
|
|
1847
1847
|
interpret_identifier(val[1].sub(/\($/, '')),
|
1848
1848
|
''
|
1849
1849
|
)
|
1850
|
-
|
1850
|
+
|
1851
1851
|
result
|
1852
1852
|
end
|
1853
1853
|
.,.,
|
@@ -1858,7 +1858,7 @@ module_eval(<<'.,.,', 'csspool.y', 464)
|
|
1858
1858
|
interpret_identifier(val[1].sub(/\($/, '')),
|
1859
1859
|
interpret_identifier(val[2])
|
1860
1860
|
)
|
1861
|
-
|
1861
|
+
|
1862
1862
|
result
|
1863
1863
|
end
|
1864
1864
|
.,.,
|
@@ -1869,7 +1869,7 @@ module_eval(<<'.,.,', 'csspool.y', 470)
|
|
1869
1869
|
'not',
|
1870
1870
|
val[2].first.to_s
|
1871
1871
|
)
|
1872
|
-
|
1872
|
+
|
1873
1873
|
result
|
1874
1874
|
end
|
1875
1875
|
.,.,
|
@@ -1880,7 +1880,7 @@ module_eval(<<'.,.,', 'csspool.y', 476)
|
|
1880
1880
|
interpret_identifier(val[1].sub(/\(.*/, '')),
|
1881
1881
|
interpret_identifier(val[1].sub(/.*\(/, '').sub(/\).*/, ''))
|
1882
1882
|
)
|
1883
|
-
|
1883
|
+
|
1884
1884
|
result
|
1885
1885
|
end
|
1886
1886
|
.,.,
|
@@ -1891,7 +1891,7 @@ module_eval(<<'.,.,', 'csspool.y', 482)
|
|
1891
1891
|
val[1].split('(').first.strip,
|
1892
1892
|
val[2].join(', ')
|
1893
1893
|
)
|
1894
|
-
|
1894
|
+
|
1895
1895
|
result
|
1896
1896
|
end
|
1897
1897
|
.,.,
|
@@ -1901,7 +1901,7 @@ module_eval(<<'.,.,', 'csspool.y', 488)
|
|
1901
1901
|
result = Selectors::PseudoElement.new(
|
1902
1902
|
interpret_identifier(val[1].sub(/\($/, ''))
|
1903
1903
|
)
|
1904
|
-
|
1904
|
+
|
1905
1905
|
result
|
1906
1906
|
end
|
1907
1907
|
.,.,
|
@@ -1911,7 +1911,7 @@ module_eval(<<'.,.,', 'csspool.y', 493)
|
|
1911
1911
|
result = Selectors::PseudoElement.new(
|
1912
1912
|
interpret_identifier(val[2].sub(/\($/, ''))
|
1913
1913
|
)
|
1914
|
-
|
1914
|
+
|
1915
1915
|
result
|
1916
1916
|
end
|
1917
1917
|
.,.,
|
@@ -1940,70 +1940,70 @@ module_eval(<<'.,.,', 'csspool.y', 493)
|
|
1940
1940
|
|
1941
1941
|
module_eval(<<'.,.,', 'csspool.y', 519)
|
1942
1942
|
def _reduce_167(val, _values, result)
|
1943
|
-
@handler.property val.first
|
1943
|
+
@handler.property val.first
|
1944
1944
|
result
|
1945
1945
|
end
|
1946
1946
|
.,.,
|
1947
1947
|
|
1948
1948
|
module_eval(<<'.,.,', 'csspool.y', 523)
|
1949
1949
|
def _reduce_168(val, _values, result)
|
1950
|
-
result = Declaration.new(val.first, val[2], val[3])
|
1950
|
+
result = Declaration.new(val.first, val[2], val[3])
|
1951
1951
|
result
|
1952
1952
|
end
|
1953
1953
|
.,.,
|
1954
1954
|
|
1955
1955
|
module_eval(<<'.,.,', 'csspool.y', 525)
|
1956
1956
|
def _reduce_169(val, _values, result)
|
1957
|
-
result = Declaration.new(val.first, val[3], val[4])
|
1957
|
+
result = Declaration.new(val.first, val[3], val[4])
|
1958
1958
|
result
|
1959
1959
|
end
|
1960
1960
|
.,.,
|
1961
1961
|
|
1962
1962
|
module_eval(<<'.,.,', 'csspool.y', 527)
|
1963
1963
|
def _reduce_170(val, _values, result)
|
1964
|
-
result = Declaration.new(val.first, val[3], val[4])
|
1964
|
+
result = Declaration.new(val.first, val[3], val[4])
|
1965
1965
|
result
|
1966
1966
|
end
|
1967
1967
|
.,.,
|
1968
1968
|
|
1969
1969
|
module_eval(<<'.,.,', 'csspool.y', 529)
|
1970
1970
|
def _reduce_171(val, _values, result)
|
1971
|
-
result = Declaration.new(val.first, val[4], val[5])
|
1971
|
+
result = Declaration.new(val.first, val[4], val[5])
|
1972
1972
|
result
|
1973
1973
|
end
|
1974
1974
|
.,.,
|
1975
1975
|
|
1976
1976
|
module_eval(<<'.,.,', 'csspool.y', 532)
|
1977
1977
|
def _reduce_172(val, _values, result)
|
1978
|
-
result = true
|
1978
|
+
result = true
|
1979
1979
|
result
|
1980
1980
|
end
|
1981
1981
|
.,.,
|
1982
1982
|
|
1983
1983
|
module_eval(<<'.,.,', 'csspool.y', 533)
|
1984
1984
|
def _reduce_173(val, _values, result)
|
1985
|
-
result = false
|
1985
|
+
result = false
|
1986
1986
|
result
|
1987
1987
|
end
|
1988
1988
|
.,.,
|
1989
1989
|
|
1990
1990
|
module_eval(<<'.,.,', 'csspool.y', 536)
|
1991
1991
|
def _reduce_174(val, _values, result)
|
1992
|
-
result = interpret_identifier val[0]
|
1992
|
+
result = interpret_identifier val[0]
|
1993
1993
|
result
|
1994
1994
|
end
|
1995
1995
|
.,.,
|
1996
1996
|
|
1997
1997
|
module_eval(<<'.,.,', 'csspool.y', 537)
|
1998
1998
|
def _reduce_175(val, _values, result)
|
1999
|
-
result = interpret_identifier val.join
|
1999
|
+
result = interpret_identifier val.join
|
2000
2000
|
result
|
2001
2001
|
end
|
2002
2002
|
.,.,
|
2003
2003
|
|
2004
2004
|
module_eval(<<'.,.,', 'csspool.y', 538)
|
2005
2005
|
def _reduce_176(val, _values, result)
|
2006
|
-
result = interpret_identifier val[0]
|
2006
|
+
result = interpret_identifier val[0]
|
2007
2007
|
result
|
2008
2008
|
end
|
2009
2009
|
.,.,
|
@@ -2018,21 +2018,21 @@ module_eval(<<'.,.,', 'csspool.y', 547)
|
|
2018
2018
|
def _reduce_180(val, _values, result)
|
2019
2019
|
result = [val.first, val.last].flatten
|
2020
2020
|
val.last.first.operator = val[1]
|
2021
|
-
|
2021
|
+
|
2022
2022
|
result
|
2023
2023
|
end
|
2024
2024
|
.,.,
|
2025
2025
|
|
2026
2026
|
module_eval(<<'.,.,', 'csspool.y', 550)
|
2027
2027
|
def _reduce_181(val, _values, result)
|
2028
|
-
result = val.flatten
|
2028
|
+
result = val.flatten
|
2029
2029
|
result
|
2030
2030
|
end
|
2031
2031
|
.,.,
|
2032
2032
|
|
2033
2033
|
module_eval(<<'.,.,', 'csspool.y', 551)
|
2034
2034
|
def _reduce_182(val, _values, result)
|
2035
|
-
result = val
|
2035
|
+
result = val
|
2036
2036
|
result
|
2037
2037
|
end
|
2038
2038
|
.,.,
|
@@ -2061,7 +2061,7 @@ module_eval(<<'.,.,', 'csspool.y', 551)
|
|
2061
2061
|
|
2062
2062
|
module_eval(<<'.,.,', 'csspool.y', 567)
|
2063
2063
|
def _reduce_194(val, _values, result)
|
2064
|
-
result = val.first
|
2064
|
+
result = val.first
|
2065
2065
|
result
|
2066
2066
|
end
|
2067
2067
|
.,.,
|
@@ -2074,7 +2074,7 @@ module_eval(<<'.,.,', 'csspool.y', 569)
|
|
2074
2074
|
else
|
2075
2075
|
result = Terms::Function.new name, val[1]
|
2076
2076
|
end
|
2077
|
-
|
2077
|
+
|
2078
2078
|
result
|
2079
2079
|
end
|
2080
2080
|
.,.,
|
@@ -2083,14 +2083,14 @@ module_eval(<<'.,.,', 'csspool.y', 577)
|
|
2083
2083
|
def _reduce_196(val, _values, result)
|
2084
2084
|
name = interpret_identifier val.first.sub(/\($/, '')
|
2085
2085
|
result = Terms::Function.new name
|
2086
|
-
|
2086
|
+
|
2087
2087
|
result
|
2088
2088
|
end
|
2089
2089
|
.,.,
|
2090
2090
|
|
2091
2091
|
module_eval(<<'.,.,', 'csspool.y', 582)
|
2092
2092
|
def _reduce_197(val, _values, result)
|
2093
|
-
result = val.first
|
2093
|
+
result = val.first
|
2094
2094
|
result
|
2095
2095
|
end
|
2096
2096
|
.,.,
|
@@ -2100,7 +2100,7 @@ module_eval(<<'.,.,', 'csspool.y', 584)
|
|
2100
2100
|
parts = val.first.split('(')
|
2101
2101
|
name = interpret_identifier parts.first
|
2102
2102
|
result = Terms::Function.new(name, [Terms::String.new(interpret_string_no_quote(parts.last))])
|
2103
|
-
|
2103
|
+
|
2104
2104
|
result
|
2105
2105
|
end
|
2106
2106
|
.,.,
|
@@ -2112,7 +2112,7 @@ module_eval(<<'.,.,', 'csspool.y', 584)
|
|
2112
2112
|
module_eval(<<'.,.,', 'csspool.y', 595)
|
2113
2113
|
def _reduce_201(val, _values, result)
|
2114
2114
|
result = Terms::Math.new(val.first.split('(').first, val[1])
|
2115
|
-
|
2115
|
+
|
2116
2116
|
result
|
2117
2117
|
end
|
2118
2118
|
.,.,
|
@@ -2121,14 +2121,14 @@ module_eval(<<'.,.,', 'csspool.y', 595)
|
|
2121
2121
|
|
2122
2122
|
module_eval(<<'.,.,', 'csspool.y', 601)
|
2123
2123
|
def _reduce_203(val, _values, result)
|
2124
|
-
val.insert(1, ' '); result = val.join('')
|
2124
|
+
val.insert(1, ' '); result = val.join('')
|
2125
2125
|
result
|
2126
2126
|
end
|
2127
2127
|
.,.,
|
2128
2128
|
|
2129
2129
|
module_eval(<<'.,.,', 'csspool.y', 602)
|
2130
2130
|
def _reduce_204(val, _values, result)
|
2131
|
-
val.insert(1, ' '); result = val.join('')
|
2131
|
+
val.insert(1, ' '); result = val.join('')
|
2132
2132
|
result
|
2133
2133
|
end
|
2134
2134
|
.,.,
|
@@ -2137,77 +2137,77 @@ module_eval(<<'.,.,', 'csspool.y', 602)
|
|
2137
2137
|
|
2138
2138
|
module_eval(<<'.,.,', 'csspool.y', 606)
|
2139
2139
|
def _reduce_206(val, _values, result)
|
2140
|
-
result = val.join('')
|
2140
|
+
result = val.join('')
|
2141
2141
|
result
|
2142
2142
|
end
|
2143
2143
|
.,.,
|
2144
2144
|
|
2145
2145
|
module_eval(<<'.,.,', 'csspool.y', 607)
|
2146
2146
|
def _reduce_207(val, _values, result)
|
2147
|
-
result = val.join('')
|
2147
|
+
result = val.join('')
|
2148
2148
|
result
|
2149
2149
|
end
|
2150
2150
|
.,.,
|
2151
2151
|
|
2152
2152
|
module_eval(<<'.,.,', 'csspool.y', 610)
|
2153
2153
|
def _reduce_208(val, _values, result)
|
2154
|
-
result = val.join('')
|
2154
|
+
result = val.join('')
|
2155
2155
|
result
|
2156
2156
|
end
|
2157
2157
|
.,.,
|
2158
2158
|
|
2159
2159
|
module_eval(<<'.,.,', 'csspool.y', 611)
|
2160
2160
|
def _reduce_209(val, _values, result)
|
2161
|
-
result = val.join('')
|
2161
|
+
result = val.join('')
|
2162
2162
|
result
|
2163
2163
|
end
|
2164
2164
|
.,.,
|
2165
2165
|
|
2166
2166
|
module_eval(<<'.,.,', 'csspool.y', 612)
|
2167
2167
|
def _reduce_210(val, _values, result)
|
2168
|
-
result = val.join('')
|
2168
|
+
result = val.join('')
|
2169
2169
|
result
|
2170
2170
|
end
|
2171
2171
|
.,.,
|
2172
2172
|
|
2173
2173
|
module_eval(<<'.,.,', 'csspool.y', 615)
|
2174
2174
|
def _reduce_211(val, _values, result)
|
2175
|
-
result = val.first
|
2175
|
+
result = val.first
|
2176
2176
|
result
|
2177
2177
|
end
|
2178
2178
|
.,.,
|
2179
2179
|
|
2180
2180
|
module_eval(<<'.,.,', 'csspool.y', 616)
|
2181
2181
|
def _reduce_212(val, _values, result)
|
2182
|
-
result = Terms::Hash.new val.first.sub(/^#/, '')
|
2182
|
+
result = Terms::Hash.new val.first.sub(/^#/, '')
|
2183
2183
|
result
|
2184
2184
|
end
|
2185
2185
|
.,.,
|
2186
2186
|
|
2187
2187
|
module_eval(<<'.,.,', 'csspool.y', 619)
|
2188
2188
|
def _reduce_213(val, _values, result)
|
2189
|
-
result = val.first
|
2189
|
+
result = val.first
|
2190
2190
|
result
|
2191
2191
|
end
|
2192
2192
|
.,.,
|
2193
2193
|
|
2194
2194
|
module_eval(<<'.,.,', 'csspool.y', 620)
|
2195
2195
|
def _reduce_214(val, _values, result)
|
2196
|
-
result = Terms::URI.new interpret_uri val.first
|
2196
|
+
result = Terms::URI.new interpret_uri val.first
|
2197
2197
|
result
|
2198
2198
|
end
|
2199
2199
|
.,.,
|
2200
2200
|
|
2201
2201
|
module_eval(<<'.,.,', 'csspool.y', 623)
|
2202
2202
|
def _reduce_215(val, _values, result)
|
2203
|
-
result = val.first
|
2203
|
+
result = val.first
|
2204
2204
|
result
|
2205
2205
|
end
|
2206
2206
|
.,.,
|
2207
2207
|
|
2208
2208
|
module_eval(<<'.,.,', 'csspool.y', 624)
|
2209
2209
|
def _reduce_216(val, _values, result)
|
2210
|
-
result = Terms::String.new interpret_string val.first
|
2210
|
+
result = Terms::String.new interpret_string val.first
|
2211
2211
|
result
|
2212
2212
|
end
|
2213
2213
|
.,.,
|
@@ -2216,7 +2216,7 @@ module_eval(<<'.,.,', 'csspool.y', 628)
|
|
2216
2216
|
def _reduce_217(val, _values, result)
|
2217
2217
|
result = val[1]
|
2218
2218
|
val[1].unary_operator = val.first
|
2219
|
-
|
2219
|
+
|
2220
2220
|
result
|
2221
2221
|
end
|
2222
2222
|
.,.,
|
@@ -2224,7 +2224,7 @@ module_eval(<<'.,.,', 'csspool.y', 628)
|
|
2224
2224
|
module_eval(<<'.,.,', 'csspool.y', 632)
|
2225
2225
|
def _reduce_218(val, _values, result)
|
2226
2226
|
result = Terms::Number.new numeric val.first
|
2227
|
-
|
2227
|
+
|
2228
2228
|
result
|
2229
2229
|
end
|
2230
2230
|
.,.,
|
@@ -2232,7 +2232,7 @@ module_eval(<<'.,.,', 'csspool.y', 632)
|
|
2232
2232
|
module_eval(<<'.,.,', 'csspool.y', 635)
|
2233
2233
|
def _reduce_219(val, _values, result)
|
2234
2234
|
result = Terms::Number.new numeric(val.first), nil, '%'
|
2235
|
-
|
2235
|
+
|
2236
2236
|
result
|
2237
2237
|
end
|
2238
2238
|
.,.,
|
@@ -2241,7 +2241,7 @@ module_eval(<<'.,.,', 'csspool.y', 638)
|
|
2241
2241
|
def _reduce_220(val, _values, result)
|
2242
2242
|
unit = val.first.gsub(/[\s\d.]/, '')
|
2243
2243
|
result = Terms::Number.new numeric(val.first), nil, unit
|
2244
|
-
|
2244
|
+
|
2245
2245
|
result
|
2246
2246
|
end
|
2247
2247
|
.,.,
|
@@ -2250,7 +2250,7 @@ module_eval(<<'.,.,', 'csspool.y', 642)
|
|
2250
2250
|
def _reduce_221(val, _values, result)
|
2251
2251
|
unit = val.first.gsub(/[\s\d.]/, '')
|
2252
2252
|
result = Terms::Number.new numeric(val.first), nil, unit
|
2253
|
-
|
2253
|
+
|
2254
2254
|
result
|
2255
2255
|
end
|
2256
2256
|
.,.,
|
@@ -2259,7 +2259,7 @@ module_eval(<<'.,.,', 'csspool.y', 646)
|
|
2259
2259
|
def _reduce_222(val, _values, result)
|
2260
2260
|
unit = val.first.gsub(/[\s\d.]/, '')
|
2261
2261
|
result = Terms::Number.new numeric(val.first), nil, unit
|
2262
|
-
|
2262
|
+
|
2263
2263
|
result
|
2264
2264
|
end
|
2265
2265
|
.,.,
|
@@ -2268,7 +2268,7 @@ module_eval(<<'.,.,', 'csspool.y', 650)
|
|
2268
2268
|
def _reduce_223(val, _values, result)
|
2269
2269
|
unit = val.first.gsub(/[\s\d.]/, '')
|
2270
2270
|
result = Terms::Number.new numeric(val.first), nil, unit
|
2271
|
-
|
2271
|
+
|
2272
2272
|
result
|
2273
2273
|
end
|
2274
2274
|
.,.,
|
@@ -2276,35 +2276,35 @@ module_eval(<<'.,.,', 'csspool.y', 650)
|
|
2276
2276
|
module_eval(<<'.,.,', 'csspool.y', 656)
|
2277
2277
|
def _reduce_224(val, _values, result)
|
2278
2278
|
result = Terms::Ratio.new(val[0], val[1])
|
2279
|
-
|
2279
|
+
|
2280
2280
|
result
|
2281
2281
|
end
|
2282
2282
|
.,.,
|
2283
2283
|
|
2284
2284
|
module_eval(<<'.,.,', 'csspool.y', 660)
|
2285
2285
|
def _reduce_225(val, _values, result)
|
2286
|
-
result = :minus
|
2286
|
+
result = :minus
|
2287
2287
|
result
|
2288
2288
|
end
|
2289
2289
|
.,.,
|
2290
2290
|
|
2291
2291
|
module_eval(<<'.,.,', 'csspool.y', 661)
|
2292
2292
|
def _reduce_226(val, _values, result)
|
2293
|
-
result = :plus
|
2293
|
+
result = :plus
|
2294
2294
|
result
|
2295
2295
|
end
|
2296
2296
|
.,.,
|
2297
2297
|
|
2298
2298
|
module_eval(<<'.,.,', 'csspool.y', 664)
|
2299
2299
|
def _reduce_227(val, _values, result)
|
2300
|
-
result = val.first
|
2300
|
+
result = val.first
|
2301
2301
|
result
|
2302
2302
|
end
|
2303
2303
|
.,.,
|
2304
2304
|
|
2305
2305
|
module_eval(<<'.,.,', 'csspool.y', 665)
|
2306
2306
|
def _reduce_228(val, _values, result)
|
2307
|
-
result = Terms::Ident.new interpret_identifier val.first
|
2307
|
+
result = Terms::Ident.new interpret_identifier val.first
|
2308
2308
|
result
|
2309
2309
|
end
|
2310
2310
|
.,.,
|
@@ -2314,5 +2314,5 @@ def _reduce_none(val, _values, result)
|
|
2314
2314
|
end
|
2315
2315
|
|
2316
2316
|
end # class Parser
|
2317
|
-
|
2318
|
-
|
2317
|
+
end # module CSS
|
2318
|
+
end # module CSSPool
|