CHECK_PARSE_EQ 149 test/cctest/test-regexp.cc CHECK_PARSE_EQ("abc", "'abc'"); CHECK_PARSE_EQ 150 test/cctest/test-regexp.cc CHECK_PARSE_EQ("", "%"); CHECK_PARSE_EQ 151 test/cctest/test-regexp.cc CHECK_PARSE_EQ("abc|def", "(| 'abc' 'def')"); CHECK_PARSE_EQ 152 test/cctest/test-regexp.cc CHECK_PARSE_EQ("abc|def|ghi", "(| 'abc' 'def' 'ghi')"); CHECK_PARSE_EQ 153 test/cctest/test-regexp.cc CHECK_PARSE_EQ("^xxx$", "(: @^i 'xxx' @$i)"); CHECK_PARSE_EQ 154 test/cctest/test-regexp.cc CHECK_PARSE_EQ("ab\\b\\d\\bcd", "(: 'ab' @b [0-9] @b 'cd')"); CHECK_PARSE_EQ 155 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\w|\\d", "(| [0-9 A-Z _ a-z] [0-9])"); CHECK_PARSE_EQ 156 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a*", "(# 0 - g 'a')"); CHECK_PARSE_EQ 157 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a*?", "(# 0 - n 'a')"); CHECK_PARSE_EQ 158 test/cctest/test-regexp.cc CHECK_PARSE_EQ("abc+", "(: 'ab' (# 1 - g 'c'))"); CHECK_PARSE_EQ 159 test/cctest/test-regexp.cc CHECK_PARSE_EQ("abc+?", "(: 'ab' (# 1 - n 'c'))"); CHECK_PARSE_EQ 160 test/cctest/test-regexp.cc CHECK_PARSE_EQ("xyz?", "(: 'xy' (# 0 1 g 'z'))"); CHECK_PARSE_EQ 161 test/cctest/test-regexp.cc CHECK_PARSE_EQ("xyz??", "(: 'xy' (# 0 1 n 'z'))"); CHECK_PARSE_EQ 162 test/cctest/test-regexp.cc CHECK_PARSE_EQ("xyz{0,1}", "(: 'xy' (# 0 1 g 'z'))"); CHECK_PARSE_EQ 163 test/cctest/test-regexp.cc CHECK_PARSE_EQ("xyz{0,1}?", "(: 'xy' (# 0 1 n 'z'))"); CHECK_PARSE_EQ 164 test/cctest/test-regexp.cc CHECK_PARSE_EQ("xyz{93}", "(: 'xy' (# 93 93 g 'z'))"); CHECK_PARSE_EQ 165 test/cctest/test-regexp.cc CHECK_PARSE_EQ("xyz{93}?", "(: 'xy' (# 93 93 n 'z'))"); CHECK_PARSE_EQ 166 test/cctest/test-regexp.cc CHECK_PARSE_EQ("xyz{1,32}", "(: 'xy' (# 1 32 g 'z'))"); CHECK_PARSE_EQ 167 test/cctest/test-regexp.cc CHECK_PARSE_EQ("xyz{1,32}?", "(: 'xy' (# 1 32 n 'z'))"); CHECK_PARSE_EQ 168 test/cctest/test-regexp.cc CHECK_PARSE_EQ("xyz{1,}", "(: 'xy' (# 1 - g 'z'))"); CHECK_PARSE_EQ 169 test/cctest/test-regexp.cc CHECK_PARSE_EQ("xyz{1,}?", "(: 'xy' (# 1 - n 'z'))"); CHECK_PARSE_EQ 170 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a\\fb\\nc\\rd\\te\\vf", "'a\\x0cb\\x0ac\\x0dd\\x09e\\x0bf'"); CHECK_PARSE_EQ 171 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a\\nb\\bc", "(: 'a\\x0ab' @b 'c')"); CHECK_PARSE_EQ 172 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(?:foo)", "'foo'"); CHECK_PARSE_EQ 173 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(?: foo )", "' foo '"); CHECK_PARSE_EQ 174 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(foo|bar|baz)", "(^ (| 'foo' 'bar' 'baz'))"); CHECK_PARSE_EQ 175 test/cctest/test-regexp.cc CHECK_PARSE_EQ("foo|(bar|baz)|quux", "(| 'foo' (^ (| 'bar' 'baz')) 'quux')"); CHECK_PARSE_EQ 176 test/cctest/test-regexp.cc CHECK_PARSE_EQ("foo(?=bar)baz", "(: 'foo' (-> + 'bar') 'baz')"); CHECK_PARSE_EQ 177 test/cctest/test-regexp.cc CHECK_PARSE_EQ("foo(?!bar)baz", "(: 'foo' (-> - 'bar') 'baz')"); CHECK_PARSE_EQ 178 test/cctest/test-regexp.cc CHECK_PARSE_EQ("()", "(^ %)"); CHECK_PARSE_EQ 179 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(?=)", "(-> + %)"); CHECK_PARSE_EQ 180 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[]", "^[\\x00-\\uffff]"); // Doesn't compile on windows CHECK_PARSE_EQ 181 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[^]", "[\\x00-\\uffff]"); // \uffff isn't in codepage 1252 CHECK_PARSE_EQ 182 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[x]", "[x]"); CHECK_PARSE_EQ 183 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[xyz]", "[x y z]"); CHECK_PARSE_EQ 184 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[a-zA-Z0-9]", "[a-z A-Z 0-9]"); CHECK_PARSE_EQ 185 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[-123]", "[- 1 2 3]"); CHECK_PARSE_EQ 186 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[^123]", "^[1 2 3]"); CHECK_PARSE_EQ 187 test/cctest/test-regexp.cc CHECK_PARSE_EQ("]", "']'"); CHECK_PARSE_EQ 188 test/cctest/test-regexp.cc CHECK_PARSE_EQ("}", "'}'"); CHECK_PARSE_EQ 189 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[a-b-c]", "[a-b - c]"); CHECK_PARSE_EQ 190 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\d]", "[0-9]"); CHECK_PARSE_EQ 191 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[x\\dz]", "[x 0-9 z]"); CHECK_PARSE_EQ 192 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\d-z]", "[0-9 - z]"); CHECK_PARSE_EQ 193 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\d-\\d]", "[0-9 - 0-9]"); CHECK_PARSE_EQ 194 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[z-\\d]", "[z - 0-9]"); CHECK_PARSE_EQ 196 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\cj\\cJ\\ci\\cI\\ck\\cK", CHECK_PARSE_EQ 198 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\c!", "'\\c!'"); CHECK_PARSE_EQ 199 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\c_", "'\\c_'"); CHECK_PARSE_EQ 200 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\c~", "'\\c~'"); CHECK_PARSE_EQ 201 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\c1", "'\\c1'"); CHECK_PARSE_EQ 203 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\c!]", "[\\ c !]"); CHECK_PARSE_EQ 204 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\c_]", "[\\x1f]"); CHECK_PARSE_EQ 205 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\c~]", "[\\ c ~]"); CHECK_PARSE_EQ 206 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\ca]", "[\\x01]"); CHECK_PARSE_EQ 207 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\cz]", "[\\x1a]"); CHECK_PARSE_EQ 208 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\cA]", "[\\x01]"); CHECK_PARSE_EQ 209 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\cZ]", "[\\x1a]"); CHECK_PARSE_EQ 210 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\c1]", "[\\x11]"); CHECK_PARSE_EQ 212 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[a\\]c]", "[a ] c]"); CHECK_PARSE_EQ 213 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\[\\]\\{\\}\\(\\)\\%\\^\\#\\ ", "'[]{}()%^# '"); CHECK_PARSE_EQ 214 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\[\\]\\{\\}\\(\\)\\%\\^\\#\\ ]", "[[ ] { } ( ) % ^ # ]"); CHECK_PARSE_EQ 215 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\0", "'\\x00'"); CHECK_PARSE_EQ 216 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\8", "'8'"); CHECK_PARSE_EQ 217 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\9", "'9'"); CHECK_PARSE_EQ 218 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\11", "'\\x09'"); CHECK_PARSE_EQ 219 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\11a", "'\\x09a'"); CHECK_PARSE_EQ 220 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\011", "'\\x09'"); CHECK_PARSE_EQ 221 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\00011", "'\\x0011'"); CHECK_PARSE_EQ 222 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\118", "'\\x098'"); CHECK_PARSE_EQ 223 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\111", "'I'"); CHECK_PARSE_EQ 224 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\1111", "'I1'"); CHECK_PARSE_EQ 225 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(x)(x)(x)\\1", "(: (^ 'x') (^ 'x') (^ 'x') (<- 1))"); CHECK_PARSE_EQ 226 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(x)(x)(x)\\2", "(: (^ 'x') (^ 'x') (^ 'x') (<- 2))"); CHECK_PARSE_EQ 227 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(x)(x)(x)\\3", "(: (^ 'x') (^ 'x') (^ 'x') (<- 3))"); CHECK_PARSE_EQ 228 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(x)(x)(x)\\4", "(: (^ 'x') (^ 'x') (^ 'x') '\\x04')"); CHECK_PARSE_EQ 229 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(x)(x)(x)\\1*", "(: (^ 'x') (^ 'x') (^ 'x')" CHECK_PARSE_EQ 231 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(x)(x)(x)\\2*", "(: (^ 'x') (^ 'x') (^ 'x')" CHECK_PARSE_EQ 233 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(x)(x)(x)\\3*", "(: (^ 'x') (^ 'x') (^ 'x')" CHECK_PARSE_EQ 235 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(x)(x)(x)\\4*", "(: (^ 'x') (^ 'x') (^ 'x')" CHECK_PARSE_EQ 237 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(x)(x)(x)(x)(x)(x)(x)(x)(x)(x)\\10", CHECK_PARSE_EQ 240 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(x)(x)(x)(x)(x)(x)(x)(x)(x)(x)\\11", CHECK_PARSE_EQ 243 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(a)\\1", "(: (^ 'a') (<- 1))"); CHECK_PARSE_EQ 244 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(a\\1)", "(^ 'a')"); CHECK_PARSE_EQ 245 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(\\1a)", "(^ 'a')"); CHECK_PARSE_EQ 246 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(?=a)?a", "'a'"); CHECK_PARSE_EQ 247 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(?=a){0,10}a", "'a'"); CHECK_PARSE_EQ 248 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(?=a){1,10}a", "(: (-> + 'a') 'a')"); CHECK_PARSE_EQ 249 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(?=a){9,10}a", "(: (-> + 'a') 'a')"); CHECK_PARSE_EQ 250 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(?!a)?a", "'a'"); CHECK_PARSE_EQ 251 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\1(a)", "(^ 'a')"); CHECK_PARSE_EQ 252 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(?!(a))\\1", "(: (-> - (^ 'a')) (<- 1))"); CHECK_PARSE_EQ 253 test/cctest/test-regexp.cc CHECK_PARSE_EQ("(?!\\1(a\\1)\\1)\\1", "(: (-> - (: (^ 'a') (<- 1))) (<- 1))"); CHECK_PARSE_EQ 254 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\0]", "[\\x00]"); CHECK_PARSE_EQ 255 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\11]", "[\\x09]"); CHECK_PARSE_EQ 256 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\11a]", "[\\x09 a]"); CHECK_PARSE_EQ 257 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\011]", "[\\x09]"); CHECK_PARSE_EQ 258 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\00011]", "[\\x00 1 1]"); CHECK_PARSE_EQ 259 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\118]", "[\\x09 8]"); CHECK_PARSE_EQ 260 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\111]", "[I]"); CHECK_PARSE_EQ 261 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[\\1111]", "[I 1]"); CHECK_PARSE_EQ 262 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\x34", "'\x34'"); CHECK_PARSE_EQ 263 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\x60", "'\x60'"); CHECK_PARSE_EQ 264 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\x3z", "'x3z'"); CHECK_PARSE_EQ 265 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\c", "'\\c'"); CHECK_PARSE_EQ 266 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\u0034", "'\x34'"); CHECK_PARSE_EQ 267 test/cctest/test-regexp.cc CHECK_PARSE_EQ("\\u003z", "'u003z'"); CHECK_PARSE_EQ 268 test/cctest/test-regexp.cc CHECK_PARSE_EQ("foo[z]*", "(: 'foo' (# 0 - g [z]))"); CHECK_PARSE_EQ 315 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a{}", "'a{}'"); CHECK_PARSE_EQ 316 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a{,}", "'a{,}'"); CHECK_PARSE_EQ 317 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a{", "'a{'"); CHECK_PARSE_EQ 318 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a{z}", "'a{z}'"); CHECK_PARSE_EQ 319 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a{1z}", "'a{1z}'"); CHECK_PARSE_EQ 320 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a{12z}", "'a{12z}'"); CHECK_PARSE_EQ 321 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a{12,", "'a{12,'"); CHECK_PARSE_EQ 322 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a{12,3b", "'a{12,3b'"); CHECK_PARSE_EQ 323 test/cctest/test-regexp.cc CHECK_PARSE_EQ("{}", "'{}'"); CHECK_PARSE_EQ 324 test/cctest/test-regexp.cc CHECK_PARSE_EQ("{,}", "'{,}'"); CHECK_PARSE_EQ 325 test/cctest/test-regexp.cc CHECK_PARSE_EQ("{", "'{'"); CHECK_PARSE_EQ 326 test/cctest/test-regexp.cc CHECK_PARSE_EQ("{z}", "'{z}'"); CHECK_PARSE_EQ 327 test/cctest/test-regexp.cc CHECK_PARSE_EQ("{1z}", "'{1z}'"); CHECK_PARSE_EQ 328 test/cctest/test-regexp.cc CHECK_PARSE_EQ("{12z}", "'{12z}'"); CHECK_PARSE_EQ 329 test/cctest/test-regexp.cc CHECK_PARSE_EQ("{12,", "'{12,'"); CHECK_PARSE_EQ 330 test/cctest/test-regexp.cc CHECK_PARSE_EQ("{12,3b", "'{12,3b'"); CHECK_PARSE_EQ 383 test/cctest/test-regexp.cc CHECK_PARSE_EQ("[A-Z$-][x]", "(! [A-Z $ -] [x])"); CHECK_PARSE_EQ 384 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a{3,4*}", "(: 'a{3,' (# 0 - g '4') '}')"); CHECK_PARSE_EQ 385 test/cctest/test-regexp.cc CHECK_PARSE_EQ("{", "'{'"); CHECK_PARSE_EQ 386 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a|", "(| 'a' %)"); CHECK_PARSE_EQ 673 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a*+", "(# 0 - p 'a')"); CHECK_PARSE_EQ 674 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a++", "(# 1 - p 'a')"); CHECK_PARSE_EQ 675 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a?+", "(# 0 1 p 'a')"); CHECK_PARSE_EQ 676 test/cctest/test-regexp.cc CHECK_PARSE_EQ("a{10,20}+", "(# 10 20 p 'a')"); CHECK_PARSE_EQ 677 test/cctest/test-regexp.cc CHECK_PARSE_EQ("za{10,20}+b", "(: 'z' (# 10 20 p 'a') 'b')");