Module: Mail::Parsers::Ragel::MessageIdsMachine
- Defined in:
- lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb
Class Attribute Summary collapse
-
._message_ids_eof_actions ⇒ Object
Returns the value of attribute _message_ids_eof_actions.
-
._message_ids_index_offsets ⇒ Object
Returns the value of attribute _message_ids_index_offsets.
-
._message_ids_indicies ⇒ Object
Returns the value of attribute _message_ids_indicies.
-
._message_ids_key_spans ⇒ Object
Returns the value of attribute _message_ids_key_spans.
-
._message_ids_trans_actions ⇒ Object
Returns the value of attribute _message_ids_trans_actions.
-
._message_ids_trans_keys ⇒ Object
Returns the value of attribute _message_ids_trans_keys.
-
._message_ids_trans_targs ⇒ Object
Returns the value of attribute _message_ids_trans_targs.
-
.message_ids_en_comment_tail ⇒ Object
Returns the value of attribute message_ids_en_comment_tail.
-
.message_ids_en_main ⇒ Object
Returns the value of attribute message_ids_en_main.
-
.message_ids_error ⇒ Object
Returns the value of attribute message_ids_error.
-
.message_ids_first_final ⇒ Object
Returns the value of attribute message_ids_first_final.
-
.message_ids_start ⇒ Object
Returns the value of attribute message_ids_start.
Class Method Summary collapse
-
.parse(data) ⇒ Object
line 17 “/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb.rl”.
Class Attribute Details
._message_ids_eof_actions ⇒ Object
Returns the value of attribute _message_ids_eof_actions.
1168 1169 1170 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 1168 def @_message_ids_eof_actions end |
._message_ids_index_offsets ⇒ Object
Returns the value of attribute _message_ids_index_offsets.
90 91 92 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 90 def @_message_ids_index_offsets end |
._message_ids_indicies ⇒ Object
Returns the value of attribute _message_ids_indicies.
113 114 115 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 113 def @_message_ids_indicies end |
._message_ids_key_spans ⇒ Object
Returns the value of attribute _message_ids_key_spans.
67 68 69 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 67 def @_message_ids_key_spans end |
._message_ids_trans_actions ⇒ Object
Returns the value of attribute _message_ids_trans_actions.
1131 1132 1133 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 1131 def @_message_ids_trans_actions end |
._message_ids_trans_keys ⇒ Object
Returns the value of attribute _message_ids_trans_keys.
14 15 16 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 14 def @_message_ids_trans_keys end |
._message_ids_trans_targs ⇒ Object
Returns the value of attribute _message_ids_trans_targs.
1094 1095 1096 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 1094 def @_message_ids_trans_targs end |
.message_ids_en_comment_tail ⇒ Object
Returns the value of attribute message_ids_en_comment_tail.
1204 1205 1206 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 1204 def @message_ids_en_comment_tail end |
.message_ids_en_main ⇒ Object
Returns the value of attribute message_ids_en_main.
1208 1209 1210 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 1208 def @message_ids_en_main end |
.message_ids_error ⇒ Object
Returns the value of attribute message_ids_error.
1199 1200 1201 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 1199 def @message_ids_error end |
.message_ids_first_final ⇒ Object
Returns the value of attribute message_ids_first_final.
1195 1196 1197 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 1195 def @message_ids_first_final end |
.message_ids_start ⇒ Object
Returns the value of attribute message_ids_start.
1191 1192 1193 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 1191 def @message_ids_start end |
Class Method Details
.parse(data) ⇒ Object
line 17 “/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb.rl”
1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 |
# File 'lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb', line 1215 def self.parse(data) p = 0 eof = data.length stack = [] actions = [] data_unpacked = data.bytes.to_a # line 1224 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb" begin p ||= 0 pe ||= data.length cs = top = 0 end # line 26 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb.rl" # line 1234 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb" begin testEof = false _slen, _trans, _keys, _inds, _acts, _nacts = nil _goto_level = 0 _resume = 10 _eof_trans = 15 _again = 20 _test_eof = 30 _out = 40 while true if _goto_level <= 0 if p == pe _goto_level = _test_eof next end if cs == 0 _goto_level = _out next end end if _goto_level <= _resume _keys = cs << 1 _inds = [cs] _slen = [cs] _trans = if ( _slen > 0 && [_keys] <= ( data_unpacked[p]) && ( data_unpacked[p]) <= [_keys + 1] ) then [ _inds + ( data_unpacked[p]) - [_keys] ] else [ _inds + _slen ] end cs = [_trans] if [_trans] != 0 case [_trans] when 3 then # line 7 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(4, p) end when 26 then # line 8 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(5, p) end when 15 then # line 15 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(12, p) end when 13 then # line 16 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(13, p) end when 11 then # line 21 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(18, p) end when 8 then # line 22 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(19, p) end when 6 then # line 23 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(20, p) end when 23 then # line 24 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(21, p) end when 30 then # line 31 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(28, p) end when 2 then # line 32 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(29, p) end when 19 then # line 41 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(38, p) end when 17 then # line 42 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(39, p) end when 1 then # line 5 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/../../common.rl" begin begin stack[top] = cs top+= 1 cs = 112 _goto_level = _again next end end when 29 then # line 6 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/../../common.rl" begin begin top -= 1 cs = stack[top] _goto_level = _again next end end when 16 then # line 7 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(4, p) end # line 15 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(12, p) end when 12 then # line 7 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(4, p) end # line 21 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(18, p) end when 25 then # line 7 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(4, p) end # line 23 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(20, p) end when 24 then # line 7 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(4, p) end # line 24 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(21, p) end when 5 then # line 7 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(4, p) end # line 32 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(29, p) end when 4 then # line 7 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(4, p) end # line 5 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/../../common.rl" begin begin stack[top] = cs top+= 1 cs = 112 _goto_level = _again next end end when 27 then # line 8 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(5, p) end # line 5 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/../../common.rl" begin begin stack[top] = cs top+= 1 cs = 112 _goto_level = _again next end end when 28 then # line 8 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(5, p) end # line 6 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/../../common.rl" begin begin top -= 1 cs = stack[top] _goto_level = _again next end end when 14 then # line 16 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(13, p) end # line 5 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/../../common.rl" begin begin stack[top] = cs top+= 1 cs = 112 _goto_level = _again next end end when 21 then # line 21 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(18, p) end # line 24 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(21, p) end when 10 then # line 22 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(19, p) end # line 21 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(18, p) end when 9 then # line 22 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(19, p) end # line 5 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/../../common.rl" begin begin stack[top] = cs top+= 1 cs = 112 _goto_level = _again next end end when 7 then # line 23 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(20, p) end # line 5 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/../../common.rl" begin begin stack[top] = cs top+= 1 cs = 112 _goto_level = _again next end end when 32 then # line 31 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(28, p) end # line 32 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(29, p) end when 31 then # line 31 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(28, p) end # line 5 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/../../common.rl" begin begin stack[top] = cs top+= 1 cs = 112 _goto_level = _again next end end when 18 then # line 42 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(39, p) end # line 41 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(38, p) end when 22 then # line 7 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(4, p) end # line 21 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(18, p) end # line 24 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(21, p) end when 20 then # line 22 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(19, p) end # line 21 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(18, p) end # line 24 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(21, p) end # line 1519 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb" end end end if _goto_level <= _again if cs == 0 _goto_level = _out next end p += 1 if p != pe _goto_level = _resume next end end if _goto_level <= _test_eof if p == eof case [cs] when 3 then # line 7 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(4, p) end when 30 then # line 31 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl" begin actions.push(28, p) end # line 1545 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb" end end end if _goto_level <= _out break end end end # line 27 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb.rl" if p == eof && cs >= # line 1559 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb" 117 # line 28 "/home/bpot/src/gh/bpot/mail/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb.rl" return actions, nil else return [], "Only able to parse up to #{data[0..p]}" end end |