Sha256: 77ebd95d25769bbf0201416ad9913c5afac58f7ec6ac703bb2a2665739b97965
Contents?: true
Size: 694 Bytes
Versions: 38
Compression:
Stored size: 694 Bytes
Contents
%%{ machine content_type; include rb_actions "rb_actions.rl"; include common "../../common.rl"; getkey data_unpacked[p]; main := content_type; }%% module Mail module Parsers module Ragel module ContentTypeMachine %%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