Sha256: 88d4c691c8f6437bb363ad93714821ecf808d94dee7cd9e8157ea4ed47bc922f
Contents?: true
Size: 691 Bytes
Versions: 38
Compression:
Stored size: 691 Bytes
Contents
%%{ machine message_ids; include rb_actions "rb_actions.rl"; include common "../../common.rl"; getkey data_unpacked[p]; main := message_ids; }%% module Mail module Parsers module Ragel module MessageIdsMachine %%write data; def self.parse(data) p = 0 eof = data.length stack = [] actions = [] data_unpacked = data.bytes.to_a %%write init; %%write exec; if p == eof && cs >= %%{ write first_final; }%% return actions, nil else return [], "Only able to parse up to #{data[0..p]}" end end end end end end
Version data entries
38 entries across 35 versions & 11 rubygems