Sha256: e6a4a59c09453c3f6ce33856ca0e4ae4e004b7ffaf514b90726772422df87e2a

Contents?: true

Size: 694 Bytes

Versions: 38

Compression:

Stored size: 694 Bytes

Contents

%%{
  machine phrase_lists;

  include rb_actions "rb_actions.rl";
  include common "../../common.rl";

  getkey data_unpacked[p];

  main := phrase_lists;
}%%

module Mail
  module Parsers
    module Ragel
      module PhraseListsMachine
        %%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

Version Path
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mail-2.6.4/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
mail-2.6.4 lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
mail-2.6.4.rc2 lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/mail-2.6.3/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/mail-2.6.3/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/mail-2.6.3/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mail-2.6.3/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/mail-2.6.3/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
mail-2.6.4.rc1 lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/mail-2.6.3/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
solidus_backend-1.0.0.pre3 vendor/bundle/gems/mail-2.6.3/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
solidus_backend-1.0.0.pre2 vendor/bundle/gems/mail-2.6.3/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
solidus_backend-1.0.0.pre vendor/bundle/gems/mail-2.6.3/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/mail-2.6.3/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
mail-2.6.3 lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
mail-portertech-2.6.2.edge lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
mail-2.6.1 lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl
mail-2.6.0 lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl