mail 2.6.4 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +111 -118
  3. data/lib/mail/attachments_list.rb +11 -10
  4. data/lib/mail/body.rb +73 -84
  5. data/lib/mail/check_delivery_params.rb +54 -10
  6. data/lib/mail/configuration.rb +2 -0
  7. data/lib/mail/constants.rb +27 -5
  8. data/lib/mail/elements/address.rb +61 -50
  9. data/lib/mail/elements/address_list.rb +11 -19
  10. data/lib/mail/elements/content_disposition_element.rb +9 -16
  11. data/lib/mail/elements/content_location_element.rb +6 -11
  12. data/lib/mail/elements/content_transfer_encoding_element.rb +6 -11
  13. data/lib/mail/elements/content_type_element.rb +16 -23
  14. data/lib/mail/elements/date_time_element.rb +7 -15
  15. data/lib/mail/elements/envelope_from_element.rb +22 -23
  16. data/lib/mail/elements/message_ids_element.rb +18 -13
  17. data/lib/mail/elements/mime_version_element.rb +7 -15
  18. data/lib/mail/elements/phrase_list.rb +12 -10
  19. data/lib/mail/elements/received_element.rb +27 -19
  20. data/lib/mail/encodings/7bit.rb +9 -14
  21. data/lib/mail/encodings/8bit.rb +2 -21
  22. data/lib/mail/encodings/base64.rb +11 -12
  23. data/lib/mail/encodings/binary.rb +3 -22
  24. data/lib/mail/encodings/identity.rb +24 -0
  25. data/lib/mail/encodings/quoted_printable.rb +6 -6
  26. data/lib/mail/encodings/transfer_encoding.rb +38 -29
  27. data/lib/mail/encodings/unix_to_unix.rb +3 -1
  28. data/lib/mail/encodings.rb +81 -54
  29. data/lib/mail/envelope.rb +11 -14
  30. data/lib/mail/field.rb +119 -98
  31. data/lib/mail/field_list.rb +60 -7
  32. data/lib/mail/fields/bcc_field.rb +34 -52
  33. data/lib/mail/fields/cc_field.rb +28 -49
  34. data/lib/mail/fields/comments_field.rb +27 -37
  35. data/lib/mail/fields/common_address_field.rb +170 -0
  36. data/lib/mail/fields/common_date_field.rb +58 -0
  37. data/lib/mail/fields/common_field.rb +77 -0
  38. data/lib/mail/fields/common_message_id_field.rb +42 -0
  39. data/lib/mail/fields/content_description_field.rb +7 -14
  40. data/lib/mail/fields/content_disposition_field.rb +13 -38
  41. data/lib/mail/fields/content_id_field.rb +24 -51
  42. data/lib/mail/fields/content_location_field.rb +11 -25
  43. data/lib/mail/fields/content_transfer_encoding_field.rb +31 -31
  44. data/lib/mail/fields/content_type_field.rb +50 -80
  45. data/lib/mail/fields/date_field.rb +23 -52
  46. data/lib/mail/fields/from_field.rb +28 -49
  47. data/lib/mail/fields/in_reply_to_field.rb +38 -49
  48. data/lib/mail/fields/keywords_field.rb +18 -31
  49. data/lib/mail/fields/message_id_field.rb +25 -71
  50. data/lib/mail/fields/mime_version_field.rb +19 -30
  51. data/lib/mail/fields/named_structured_field.rb +11 -0
  52. data/lib/mail/fields/named_unstructured_field.rb +11 -0
  53. data/lib/mail/fields/optional_field.rb +9 -7
  54. data/lib/mail/fields/{common/parameter_hash.rb → parameter_hash.rb} +13 -11
  55. data/lib/mail/fields/received_field.rb +43 -57
  56. data/lib/mail/fields/references_field.rb +35 -49
  57. data/lib/mail/fields/reply_to_field.rb +28 -49
  58. data/lib/mail/fields/resent_bcc_field.rb +28 -49
  59. data/lib/mail/fields/resent_cc_field.rb +28 -49
  60. data/lib/mail/fields/resent_date_field.rb +5 -30
  61. data/lib/mail/fields/resent_from_field.rb +28 -49
  62. data/lib/mail/fields/resent_message_id_field.rb +5 -29
  63. data/lib/mail/fields/resent_sender_field.rb +27 -56
  64. data/lib/mail/fields/resent_to_field.rb +28 -49
  65. data/lib/mail/fields/return_path_field.rb +50 -54
  66. data/lib/mail/fields/sender_field.rb +34 -55
  67. data/lib/mail/fields/structured_field.rb +3 -30
  68. data/lib/mail/fields/subject_field.rb +9 -11
  69. data/lib/mail/fields/to_field.rb +28 -49
  70. data/lib/mail/fields/unstructured_field.rb +32 -47
  71. data/lib/mail/header.rb +71 -110
  72. data/lib/mail/mail.rb +2 -10
  73. data/lib/mail/matchers/attachment_matchers.rb +15 -0
  74. data/lib/mail/matchers/has_sent_mail.rb +21 -1
  75. data/lib/mail/message.rb +113 -117
  76. data/lib/mail/multibyte/chars.rb +23 -180
  77. data/lib/mail/multibyte/unicode.rb +10 -10
  78. data/lib/mail/multibyte/utils.rb +26 -43
  79. data/lib/mail/multibyte.rb +55 -16
  80. data/lib/mail/network/delivery_methods/exim.rb +8 -11
  81. data/lib/mail/network/delivery_methods/file_delivery.rb +13 -16
  82. data/lib/mail/network/delivery_methods/logger_delivery.rb +34 -0
  83. data/lib/mail/network/delivery_methods/sendmail.rb +32 -35
  84. data/lib/mail/network/delivery_methods/smtp.rb +76 -54
  85. data/lib/mail/network/delivery_methods/smtp_connection.rb +4 -9
  86. data/lib/mail/network/delivery_methods/test_mailer.rb +8 -9
  87. data/lib/mail/network/retriever_methods/base.rb +8 -8
  88. data/lib/mail/network/retriever_methods/imap.rb +20 -7
  89. data/lib/mail/network/retriever_methods/pop3.rb +5 -3
  90. data/lib/mail/network/retriever_methods/test_retriever.rb +3 -2
  91. data/lib/mail/network.rb +1 -0
  92. data/lib/mail/parser_tools.rb +15 -0
  93. data/lib/mail/parsers/address_lists_parser.rb +33225 -116
  94. data/lib/mail/parsers/address_lists_parser.rl +179 -0
  95. data/lib/mail/parsers/content_disposition_parser.rb +882 -49
  96. data/lib/mail/parsers/content_disposition_parser.rl +89 -0
  97. data/lib/mail/parsers/content_location_parser.rb +809 -23
  98. data/lib/mail/parsers/content_location_parser.rl +78 -0
  99. data/lib/mail/parsers/content_transfer_encoding_parser.rb +509 -21
  100. data/lib/mail/parsers/content_transfer_encoding_parser.rl +71 -0
  101. data/lib/mail/parsers/content_type_parser.rb +1037 -56
  102. data/lib/mail/parsers/content_type_parser.rl +90 -0
  103. data/lib/mail/parsers/date_time_parser.rb +877 -25
  104. data/lib/mail/parsers/date_time_parser.rl +69 -0
  105. data/lib/mail/parsers/envelope_from_parser.rb +3669 -40
  106. data/lib/mail/parsers/envelope_from_parser.rl +89 -0
  107. data/lib/mail/parsers/message_ids_parser.rb +5146 -25
  108. data/lib/mail/parsers/message_ids_parser.rl +93 -0
  109. data/lib/mail/parsers/mime_version_parser.rb +497 -26
  110. data/lib/mail/parsers/mime_version_parser.rl +68 -0
  111. data/lib/mail/parsers/phrase_lists_parser.rb +870 -22
  112. data/lib/mail/parsers/phrase_lists_parser.rl +90 -0
  113. data/lib/mail/parsers/received_parser.rb +8776 -43
  114. data/lib/mail/parsers/received_parser.rl +91 -0
  115. data/lib/mail/parsers/rfc2045_content_transfer_encoding.rl +13 -0
  116. data/lib/mail/parsers/rfc2045_content_type.rl +25 -0
  117. data/lib/mail/parsers/rfc2045_mime.rl +16 -0
  118. data/lib/mail/parsers/rfc2183_content_disposition.rl +15 -0
  119. data/lib/mail/parsers/rfc3629_utf8.rl +19 -0
  120. data/lib/mail/parsers/rfc5234_abnf_core_rules.rl +22 -0
  121. data/lib/mail/parsers/rfc5322.rl +74 -0
  122. data/lib/mail/parsers/rfc5322_address.rl +72 -0
  123. data/lib/mail/parsers/{ragel/date_time.rl → rfc5322_date_time.rl} +8 -1
  124. data/lib/mail/parsers/rfc5322_lexical_tokens.rl +60 -0
  125. data/lib/mail/parsers.rb +11 -25
  126. data/lib/mail/part.rb +6 -10
  127. data/lib/mail/parts_list.rb +62 -6
  128. data/lib/mail/smtp_envelope.rb +57 -0
  129. data/lib/mail/utilities.rb +357 -74
  130. data/lib/mail/version.rb +2 -2
  131. data/lib/mail/yaml.rb +30 -0
  132. data/lib/mail.rb +5 -35
  133. metadata +111 -66
  134. data/CHANGELOG.rdoc +0 -787
  135. data/CONTRIBUTING.md +0 -60
  136. data/Dependencies.txt +0 -2
  137. data/Gemfile +0 -11
  138. data/Rakefile +0 -29
  139. data/TODO.rdoc +0 -9
  140. data/lib/mail/core_extensions/smtp.rb +0 -25
  141. data/lib/mail/core_extensions/string/access.rb +0 -146
  142. data/lib/mail/core_extensions/string/multibyte.rb +0 -79
  143. data/lib/mail/core_extensions/string.rb +0 -21
  144. data/lib/mail/fields/common/address_container.rb +0 -17
  145. data/lib/mail/fields/common/common_address.rb +0 -136
  146. data/lib/mail/fields/common/common_date.rb +0 -36
  147. data/lib/mail/fields/common/common_field.rb +0 -61
  148. data/lib/mail/fields/common/common_message_id.rb +0 -49
  149. data/lib/mail/multibyte/exceptions.rb +0 -9
  150. data/lib/mail/parsers/ragel/common.rl +0 -185
  151. data/lib/mail/parsers/ragel/parser_info.rb +0 -61
  152. data/lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb +0 -14864
  153. data/lib/mail/parsers/ragel/ruby/machines/address_lists_machine.rb.rl +0 -37
  154. data/lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb +0 -751
  155. data/lib/mail/parsers/ragel/ruby/machines/content_disposition_machine.rb.rl +0 -37
  156. data/lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb +0 -614
  157. data/lib/mail/parsers/ragel/ruby/machines/content_location_machine.rb.rl +0 -37
  158. data/lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb +0 -447
  159. data/lib/mail/parsers/ragel/ruby/machines/content_transfer_encoding_machine.rb.rl +0 -37
  160. data/lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb +0 -825
  161. data/lib/mail/parsers/ragel/ruby/machines/content_type_machine.rb.rl +0 -37
  162. data/lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb +0 -817
  163. data/lib/mail/parsers/ragel/ruby/machines/date_time_machine.rb.rl +0 -37
  164. data/lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb +0 -2149
  165. data/lib/mail/parsers/ragel/ruby/machines/envelope_from_machine.rb.rl +0 -37
  166. data/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb +0 -1570
  167. data/lib/mail/parsers/ragel/ruby/machines/message_ids_machine.rb.rl +0 -37
  168. data/lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb +0 -440
  169. data/lib/mail/parsers/ragel/ruby/machines/mime_version_machine.rb.rl +0 -37
  170. data/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb +0 -564
  171. data/lib/mail/parsers/ragel/ruby/machines/phrase_lists_machine.rb.rl +0 -37
  172. data/lib/mail/parsers/ragel/ruby/machines/rb_actions.rl +0 -51
  173. data/lib/mail/parsers/ragel/ruby/machines/received_machine.rb +0 -5144
  174. data/lib/mail/parsers/ragel/ruby/machines/received_machine.rb.rl +0 -37
  175. data/lib/mail/parsers/ragel/ruby/parser.rb.rl.erb +0 -37
  176. data/lib/mail/parsers/ragel/ruby.rb +0 -40
  177. data/lib/mail/parsers/ragel.rb +0 -18
  178. data/lib/mail/version_specific/ruby_1_8.rb +0 -126
  179. data/lib/mail/version_specific/ruby_1_9.rb +0 -223
@@ -1,36 +1,822 @@
1
+
1
2
  # frozen_string_literal: true
2
- module Mail::Parsers
3
- class ContentLocationParser
4
- def parse(s)
5
- content_location = ContentLocationStruct.new(nil)
6
- if Mail::Utilities.blank?(s)
7
- return content_location
3
+ require "mail/utilities"
4
+ require "mail/parser_tools"
5
+
6
+ begin
7
+ original_verbose, $VERBOSE = $VERBOSE, nil
8
+
9
+ module Mail::Parsers
10
+ module ContentLocationParser
11
+ extend Mail::ParserTools
12
+
13
+ ContentLocationStruct = Struct.new(:location, :error)
14
+
15
+ class << self
16
+ attr_accessor :_trans_keys
17
+ private :_trans_keys, :_trans_keys=
18
+ end
19
+ self._trans_keys = [
20
+ 0, 0, 9, 126, 10, 10,
21
+ 9, 32, 10, 10, 9,
22
+ 32, 1, 244, 10, 10,
23
+ 9, 32, 0, 244, 128, 191,
24
+ 160, 191, 128, 191, 128,
25
+ 159, 144, 191, 128, 191,
26
+ 128, 143, 10, 10, 9, 32,
27
+ 9, 126, 1, 244, 1,
28
+ 244, 10, 10, 9, 32,
29
+ 0, 244, 128, 191, 160, 191,
30
+ 128, 191, 128, 159, 144,
31
+ 191, 128, 191, 128, 143,
32
+ 9, 126, 9, 40, 9, 40,
33
+ 1, 244, 1, 244, 1,
34
+ 244, 1, 244, 9, 126,
35
+ 0, 0, 0,
36
+ ]
37
+
38
+ class << self
39
+ attr_accessor :_key_spans
40
+ private :_key_spans, :_key_spans=
41
+ end
42
+ self._key_spans = [
43
+ 0, 118, 1, 24, 1, 24, 244, 1,
44
+ 24, 245, 64, 32, 64, 32, 48, 64,
45
+ 16, 1, 24, 118, 244, 244, 1, 24,
46
+ 245, 64, 32, 64, 32, 48, 64, 16,
47
+ 118, 32, 32, 244, 244, 244, 244, 118,
48
+ 0,
49
+ ]
50
+
51
+ class << self
52
+ attr_accessor :_index_offsets
53
+ private :_index_offsets, :_index_offsets=
54
+ end
55
+ self._index_offsets = [
56
+ 0, 0, 119, 121, 146, 148, 173, 418,
57
+ 420, 445, 691, 756, 789, 854, 887, 936,
58
+ 1001, 1018, 1020, 1045, 1164, 1409, 1654, 1656,
59
+ 1681, 1927, 1992, 2025, 2090, 2123, 2172, 2237,
60
+ 2254, 2373, 2406, 2439, 2684, 2929, 3174, 3419,
61
+ 3538,
62
+ ]
63
+
64
+ class << self
65
+ attr_accessor :_indicies
66
+ private :_indicies, :_indicies=
67
+ end
68
+ self._indicies = [
69
+ 0, 1, 1, 1, 2, 1, 1, 1,
70
+ 1, 1, 1, 1, 1, 1, 1, 1,
71
+ 1, 1, 1, 1, 1, 1, 1, 0,
72
+ 3, 4, 3, 3, 3, 3, 3, 5,
73
+ 1, 3, 3, 3, 3, 3, 1, 3,
74
+ 3, 3, 3, 3, 3, 3, 3, 3,
75
+ 3, 1, 1, 1, 3, 1, 1, 1,
76
+ 3, 3, 3, 3, 3, 3, 3, 3,
77
+ 3, 3, 3, 3, 3, 3, 3, 3,
78
+ 3, 3, 3, 3, 3, 3, 3, 3,
79
+ 3, 3, 1, 1, 1, 3, 3, 3,
80
+ 3, 3, 3, 3, 3, 3, 3, 3,
81
+ 3, 3, 3, 3, 3, 3, 3, 3,
82
+ 3, 3, 3, 3, 3, 3, 3, 3,
83
+ 3, 3, 3, 3, 3, 3, 1, 6,
84
+ 1, 0, 1, 1, 1, 1, 1, 1,
85
+ 1, 1, 1, 1, 1, 1, 1, 1,
86
+ 1, 1, 1, 1, 1, 1, 1, 1,
87
+ 0, 1, 7, 1, 8, 1, 1, 1,
88
+ 1, 1, 1, 1, 1, 1, 1, 1,
89
+ 1, 1, 1, 1, 1, 1, 1, 1,
90
+ 1, 1, 1, 8, 1, 9, 9, 9,
91
+ 9, 9, 9, 9, 9, 9, 1, 9,
92
+ 9, 10, 9, 9, 9, 9, 9, 9,
93
+ 9, 9, 9, 9, 9, 9, 9, 9,
94
+ 9, 9, 9, 9, 9, 9, 11, 9,
95
+ 9, 9, 9, 9, 9, 9, 9, 9,
96
+ 9, 9, 9, 9, 9, 9, 9, 9,
97
+ 9, 9, 9, 9, 9, 9, 9, 9,
98
+ 9, 9, 9, 9, 9, 9, 9, 9,
99
+ 9, 9, 9, 9, 9, 9, 9, 9,
100
+ 9, 9, 9, 9, 9, 9, 9, 9,
101
+ 9, 9, 9, 9, 9, 9, 9, 9,
102
+ 12, 9, 9, 9, 9, 9, 9, 9,
103
+ 9, 9, 9, 9, 9, 9, 9, 9,
104
+ 9, 9, 9, 9, 9, 9, 9, 9,
105
+ 9, 9, 9, 9, 9, 9, 9, 9,
106
+ 9, 9, 9, 9, 1, 1, 1, 1,
107
+ 1, 1, 1, 1, 1, 1, 1, 1,
108
+ 1, 1, 1, 1, 1, 1, 1, 1,
109
+ 1, 1, 1, 1, 1, 1, 1, 1,
110
+ 1, 1, 1, 1, 1, 1, 1, 1,
111
+ 1, 1, 1, 1, 1, 1, 1, 1,
112
+ 1, 1, 1, 1, 1, 1, 1, 1,
113
+ 1, 1, 1, 1, 1, 1, 1, 1,
114
+ 1, 1, 1, 1, 1, 1, 13, 13,
115
+ 13, 13, 13, 13, 13, 13, 13, 13,
116
+ 13, 13, 13, 13, 13, 13, 13, 13,
117
+ 13, 13, 13, 13, 13, 13, 13, 13,
118
+ 13, 13, 13, 13, 14, 15, 15, 15,
119
+ 15, 15, 15, 15, 15, 15, 15, 15,
120
+ 15, 16, 15, 15, 17, 18, 18, 18,
121
+ 19, 1, 20, 1, 9, 1, 1, 1,
122
+ 1, 1, 1, 1, 1, 1, 1, 1,
123
+ 1, 1, 1, 1, 1, 1, 1, 1,
124
+ 1, 1, 1, 9, 1, 9, 9, 9,
125
+ 9, 9, 9, 9, 9, 9, 9, 9,
126
+ 9, 9, 9, 9, 9, 9, 9, 9,
127
+ 9, 9, 9, 9, 9, 9, 9, 9,
128
+ 9, 9, 9, 9, 9, 9, 9, 9,
129
+ 9, 9, 9, 9, 9, 9, 9, 9,
130
+ 9, 9, 9, 9, 9, 9, 9, 9,
131
+ 9, 9, 9, 9, 9, 9, 9, 9,
132
+ 9, 9, 9, 9, 9, 9, 9, 9,
133
+ 9, 9, 9, 9, 9, 9, 9, 9,
134
+ 9, 9, 9, 9, 9, 9, 9, 9,
135
+ 9, 9, 9, 9, 9, 9, 9, 9,
136
+ 9, 9, 9, 9, 9, 9, 9, 9,
137
+ 9, 9, 9, 9, 9, 9, 9, 9,
138
+ 9, 9, 9, 9, 9, 9, 9, 9,
139
+ 9, 9, 9, 9, 9, 9, 9, 9,
140
+ 9, 9, 9, 9, 9, 1, 1, 1,
141
+ 1, 1, 1, 1, 1, 1, 1, 1,
142
+ 1, 1, 1, 1, 1, 1, 1, 1,
143
+ 1, 1, 1, 1, 1, 1, 1, 1,
144
+ 1, 1, 1, 1, 1, 1, 1, 1,
145
+ 1, 1, 1, 1, 1, 1, 1, 1,
146
+ 1, 1, 1, 1, 1, 1, 1, 1,
147
+ 1, 1, 1, 1, 1, 1, 1, 1,
148
+ 1, 1, 1, 1, 1, 1, 1, 13,
149
+ 13, 13, 13, 13, 13, 13, 13, 13,
150
+ 13, 13, 13, 13, 13, 13, 13, 13,
151
+ 13, 13, 13, 13, 13, 13, 13, 13,
152
+ 13, 13, 13, 13, 13, 14, 15, 15,
153
+ 15, 15, 15, 15, 15, 15, 15, 15,
154
+ 15, 15, 16, 15, 15, 17, 18, 18,
155
+ 18, 19, 1, 9, 9, 9, 9, 9,
156
+ 9, 9, 9, 9, 9, 9, 9, 9,
157
+ 9, 9, 9, 9, 9, 9, 9, 9,
158
+ 9, 9, 9, 9, 9, 9, 9, 9,
159
+ 9, 9, 9, 9, 9, 9, 9, 9,
160
+ 9, 9, 9, 9, 9, 9, 9, 9,
161
+ 9, 9, 9, 9, 9, 9, 9, 9,
162
+ 9, 9, 9, 9, 9, 9, 9, 9,
163
+ 9, 9, 9, 1, 13, 13, 13, 13,
164
+ 13, 13, 13, 13, 13, 13, 13, 13,
165
+ 13, 13, 13, 13, 13, 13, 13, 13,
166
+ 13, 13, 13, 13, 13, 13, 13, 13,
167
+ 13, 13, 13, 13, 1, 13, 13, 13,
168
+ 13, 13, 13, 13, 13, 13, 13, 13,
169
+ 13, 13, 13, 13, 13, 13, 13, 13,
170
+ 13, 13, 13, 13, 13, 13, 13, 13,
171
+ 13, 13, 13, 13, 13, 13, 13, 13,
172
+ 13, 13, 13, 13, 13, 13, 13, 13,
173
+ 13, 13, 13, 13, 13, 13, 13, 13,
174
+ 13, 13, 13, 13, 13, 13, 13, 13,
175
+ 13, 13, 13, 13, 13, 1, 13, 13,
176
+ 13, 13, 13, 13, 13, 13, 13, 13,
177
+ 13, 13, 13, 13, 13, 13, 13, 13,
178
+ 13, 13, 13, 13, 13, 13, 13, 13,
179
+ 13, 13, 13, 13, 13, 13, 1, 15,
180
+ 15, 15, 15, 15, 15, 15, 15, 15,
181
+ 15, 15, 15, 15, 15, 15, 15, 15,
182
+ 15, 15, 15, 15, 15, 15, 15, 15,
183
+ 15, 15, 15, 15, 15, 15, 15, 15,
184
+ 15, 15, 15, 15, 15, 15, 15, 15,
185
+ 15, 15, 15, 15, 15, 15, 15, 1,
186
+ 15, 15, 15, 15, 15, 15, 15, 15,
187
+ 15, 15, 15, 15, 15, 15, 15, 15,
188
+ 15, 15, 15, 15, 15, 15, 15, 15,
189
+ 15, 15, 15, 15, 15, 15, 15, 15,
190
+ 15, 15, 15, 15, 15, 15, 15, 15,
191
+ 15, 15, 15, 15, 15, 15, 15, 15,
192
+ 15, 15, 15, 15, 15, 15, 15, 15,
193
+ 15, 15, 15, 15, 15, 15, 15, 15,
194
+ 1, 15, 15, 15, 15, 15, 15, 15,
195
+ 15, 15, 15, 15, 15, 15, 15, 15,
196
+ 15, 1, 21, 1, 22, 1, 1, 1,
197
+ 1, 1, 1, 1, 1, 1, 1, 1,
198
+ 1, 1, 1, 1, 1, 1, 1, 1,
199
+ 1, 1, 1, 22, 1, 23, 1, 1,
200
+ 1, 24, 1, 1, 1, 1, 1, 1,
201
+ 1, 1, 1, 1, 1, 1, 1, 1,
202
+ 1, 1, 1, 1, 23, 25, 26, 25,
203
+ 25, 25, 25, 25, 27, 1, 25, 25,
204
+ 25, 25, 25, 1, 25, 25, 25, 25,
205
+ 25, 25, 25, 25, 25, 25, 1, 1,
206
+ 1, 25, 1, 1, 1, 25, 25, 25,
207
+ 25, 25, 25, 25, 25, 25, 25, 25,
208
+ 25, 25, 25, 25, 25, 25, 25, 25,
209
+ 25, 25, 25, 25, 25, 25, 25, 1,
210
+ 1, 1, 25, 25, 25, 25, 25, 25,
211
+ 25, 25, 25, 25, 25, 25, 25, 25,
212
+ 25, 25, 25, 25, 25, 25, 25, 25,
213
+ 25, 25, 25, 25, 25, 25, 25, 25,
214
+ 25, 25, 25, 1, 28, 28, 28, 28,
215
+ 28, 28, 28, 28, 28, 1, 28, 28,
216
+ 29, 28, 28, 28, 28, 28, 28, 28,
217
+ 28, 28, 28, 28, 28, 28, 28, 28,
218
+ 28, 28, 28, 28, 28, 28, 28, 28,
219
+ 28, 28, 28, 30, 31, 28, 28, 28,
220
+ 28, 28, 28, 28, 28, 28, 28, 28,
221
+ 28, 28, 28, 28, 28, 28, 28, 28,
222
+ 28, 28, 28, 28, 28, 28, 28, 28,
223
+ 28, 28, 28, 28, 28, 28, 28, 28,
224
+ 28, 28, 28, 28, 28, 28, 28, 28,
225
+ 28, 28, 28, 28, 28, 28, 28, 32,
226
+ 28, 28, 28, 28, 28, 28, 28, 28,
227
+ 28, 28, 28, 28, 28, 28, 28, 28,
228
+ 28, 28, 28, 28, 28, 28, 28, 28,
229
+ 28, 28, 28, 28, 28, 28, 28, 28,
230
+ 28, 28, 28, 1, 1, 1, 1, 1,
231
+ 1, 1, 1, 1, 1, 1, 1, 1,
232
+ 1, 1, 1, 1, 1, 1, 1, 1,
233
+ 1, 1, 1, 1, 1, 1, 1, 1,
234
+ 1, 1, 1, 1, 1, 1, 1, 1,
235
+ 1, 1, 1, 1, 1, 1, 1, 1,
236
+ 1, 1, 1, 1, 1, 1, 1, 1,
237
+ 1, 1, 1, 1, 1, 1, 1, 1,
238
+ 1, 1, 1, 1, 1, 33, 33, 33,
239
+ 33, 33, 33, 33, 33, 33, 33, 33,
240
+ 33, 33, 33, 33, 33, 33, 33, 33,
241
+ 33, 33, 33, 33, 33, 33, 33, 33,
242
+ 33, 33, 33, 34, 35, 35, 35, 35,
243
+ 35, 35, 35, 35, 35, 35, 35, 35,
244
+ 36, 35, 35, 37, 38, 38, 38, 39,
245
+ 1, 40, 40, 40, 40, 40, 40, 40,
246
+ 40, 40, 1, 40, 40, 41, 40, 40,
247
+ 40, 40, 40, 40, 40, 40, 40, 40,
248
+ 40, 40, 40, 40, 40, 40, 40, 40,
249
+ 40, 40, 40, 40, 40, 40, 40, 40,
250
+ 42, 43, 40, 40, 40, 40, 40, 40,
251
+ 40, 40, 40, 40, 40, 40, 40, 40,
252
+ 40, 40, 40, 40, 40, 40, 40, 40,
253
+ 40, 40, 40, 40, 40, 40, 40, 40,
254
+ 40, 40, 40, 40, 40, 40, 40, 40,
255
+ 40, 40, 40, 40, 40, 40, 40, 40,
256
+ 40, 40, 40, 40, 44, 40, 40, 40,
257
+ 40, 40, 40, 40, 40, 40, 40, 40,
258
+ 40, 40, 40, 40, 40, 40, 40, 40,
259
+ 40, 40, 40, 40, 40, 40, 40, 40,
260
+ 40, 40, 40, 40, 40, 40, 40, 40,
261
+ 1, 1, 1, 1, 1, 1, 1, 1,
262
+ 1, 1, 1, 1, 1, 1, 1, 1,
263
+ 1, 1, 1, 1, 1, 1, 1, 1,
264
+ 1, 1, 1, 1, 1, 1, 1, 1,
265
+ 1, 1, 1, 1, 1, 1, 1, 1,
266
+ 1, 1, 1, 1, 1, 1, 1, 1,
267
+ 1, 1, 1, 1, 1, 1, 1, 1,
268
+ 1, 1, 1, 1, 1, 1, 1, 1,
269
+ 1, 1, 45, 45, 45, 45, 45, 45,
270
+ 45, 45, 45, 45, 45, 45, 45, 45,
271
+ 45, 45, 45, 45, 45, 45, 45, 45,
272
+ 45, 45, 45, 45, 45, 45, 45, 45,
273
+ 46, 47, 47, 47, 47, 47, 47, 47,
274
+ 47, 47, 47, 47, 47, 48, 47, 47,
275
+ 49, 50, 50, 50, 51, 1, 52, 1,
276
+ 40, 1, 1, 1, 1, 1, 1, 1,
277
+ 1, 1, 1, 1, 1, 1, 1, 1,
278
+ 1, 1, 1, 1, 1, 1, 1, 40,
279
+ 1, 40, 40, 40, 40, 40, 40, 40,
280
+ 40, 40, 40, 40, 40, 40, 40, 40,
281
+ 40, 40, 40, 40, 40, 40, 40, 40,
282
+ 40, 40, 40, 40, 40, 40, 40, 40,
283
+ 40, 40, 40, 40, 40, 40, 40, 40,
284
+ 40, 40, 40, 40, 40, 40, 40, 40,
285
+ 40, 40, 40, 40, 40, 40, 40, 40,
286
+ 40, 40, 40, 40, 40, 40, 40, 40,
287
+ 40, 40, 40, 40, 40, 40, 40, 40,
288
+ 40, 40, 40, 40, 40, 40, 40, 40,
289
+ 40, 40, 40, 40, 40, 40, 40, 40,
290
+ 40, 40, 40, 40, 40, 40, 40, 40,
291
+ 40, 40, 40, 40, 40, 40, 40, 40,
292
+ 40, 40, 40, 40, 40, 40, 40, 40,
293
+ 40, 40, 40, 40, 40, 40, 40, 40,
294
+ 40, 40, 40, 40, 40, 40, 40, 40,
295
+ 40, 1, 1, 1, 1, 1, 1, 1,
296
+ 1, 1, 1, 1, 1, 1, 1, 1,
297
+ 1, 1, 1, 1, 1, 1, 1, 1,
298
+ 1, 1, 1, 1, 1, 1, 1, 1,
299
+ 1, 1, 1, 1, 1, 1, 1, 1,
300
+ 1, 1, 1, 1, 1, 1, 1, 1,
301
+ 1, 1, 1, 1, 1, 1, 1, 1,
302
+ 1, 1, 1, 1, 1, 1, 1, 1,
303
+ 1, 1, 1, 45, 45, 45, 45, 45,
304
+ 45, 45, 45, 45, 45, 45, 45, 45,
305
+ 45, 45, 45, 45, 45, 45, 45, 45,
306
+ 45, 45, 45, 45, 45, 45, 45, 45,
307
+ 45, 46, 47, 47, 47, 47, 47, 47,
308
+ 47, 47, 47, 47, 47, 47, 48, 47,
309
+ 47, 49, 50, 50, 50, 51, 1, 40,
310
+ 40, 40, 40, 40, 40, 40, 40, 40,
311
+ 40, 40, 40, 40, 40, 40, 40, 40,
312
+ 40, 40, 40, 40, 40, 40, 40, 40,
313
+ 40, 40, 40, 40, 40, 40, 40, 40,
314
+ 40, 40, 40, 40, 40, 40, 40, 40,
315
+ 40, 40, 40, 40, 40, 40, 40, 40,
316
+ 40, 40, 40, 40, 40, 40, 40, 40,
317
+ 40, 40, 40, 40, 40, 40, 40, 1,
318
+ 45, 45, 45, 45, 45, 45, 45, 45,
319
+ 45, 45, 45, 45, 45, 45, 45, 45,
320
+ 45, 45, 45, 45, 45, 45, 45, 45,
321
+ 45, 45, 45, 45, 45, 45, 45, 45,
322
+ 1, 45, 45, 45, 45, 45, 45, 45,
323
+ 45, 45, 45, 45, 45, 45, 45, 45,
324
+ 45, 45, 45, 45, 45, 45, 45, 45,
325
+ 45, 45, 45, 45, 45, 45, 45, 45,
326
+ 45, 45, 45, 45, 45, 45, 45, 45,
327
+ 45, 45, 45, 45, 45, 45, 45, 45,
328
+ 45, 45, 45, 45, 45, 45, 45, 45,
329
+ 45, 45, 45, 45, 45, 45, 45, 45,
330
+ 45, 1, 45, 45, 45, 45, 45, 45,
331
+ 45, 45, 45, 45, 45, 45, 45, 45,
332
+ 45, 45, 45, 45, 45, 45, 45, 45,
333
+ 45, 45, 45, 45, 45, 45, 45, 45,
334
+ 45, 45, 1, 47, 47, 47, 47, 47,
335
+ 47, 47, 47, 47, 47, 47, 47, 47,
336
+ 47, 47, 47, 47, 47, 47, 47, 47,
337
+ 47, 47, 47, 47, 47, 47, 47, 47,
338
+ 47, 47, 47, 47, 47, 47, 47, 47,
339
+ 47, 47, 47, 47, 47, 47, 47, 47,
340
+ 47, 47, 47, 1, 47, 47, 47, 47,
341
+ 47, 47, 47, 47, 47, 47, 47, 47,
342
+ 47, 47, 47, 47, 47, 47, 47, 47,
343
+ 47, 47, 47, 47, 47, 47, 47, 47,
344
+ 47, 47, 47, 47, 47, 47, 47, 47,
345
+ 47, 47, 47, 47, 47, 47, 47, 47,
346
+ 47, 47, 47, 47, 47, 47, 47, 47,
347
+ 47, 47, 47, 47, 47, 47, 47, 47,
348
+ 47, 47, 47, 47, 1, 47, 47, 47,
349
+ 47, 47, 47, 47, 47, 47, 47, 47,
350
+ 47, 47, 47, 47, 47, 1, 53, 1,
351
+ 1, 1, 54, 1, 1, 1, 1, 1,
352
+ 1, 1, 1, 1, 1, 1, 1, 1,
353
+ 1, 1, 1, 1, 1, 53, 55, 55,
354
+ 55, 55, 55, 55, 55, 56, 1, 55,
355
+ 55, 55, 55, 55, 1, 55, 55, 55,
356
+ 55, 55, 55, 55, 55, 55, 55, 1,
357
+ 1, 1, 55, 1, 1, 1, 55, 55,
358
+ 55, 55, 55, 55, 55, 55, 55, 55,
359
+ 55, 55, 55, 55, 55, 55, 55, 55,
360
+ 55, 55, 55, 55, 55, 55, 55, 55,
361
+ 1, 1, 1, 55, 55, 55, 55, 55,
362
+ 55, 55, 55, 55, 55, 55, 55, 55,
363
+ 55, 55, 55, 55, 55, 55, 55, 55,
364
+ 55, 55, 55, 55, 55, 55, 55, 55,
365
+ 55, 55, 55, 55, 1, 8, 1, 1,
366
+ 1, 57, 1, 1, 1, 1, 1, 1,
367
+ 1, 1, 1, 1, 1, 1, 1, 1,
368
+ 1, 1, 1, 1, 8, 1, 1, 1,
369
+ 1, 1, 1, 1, 58, 1, 59, 1,
370
+ 1, 1, 60, 1, 1, 1, 1, 1,
371
+ 1, 1, 1, 1, 1, 1, 1, 1,
372
+ 1, 1, 1, 1, 1, 59, 1, 1,
373
+ 1, 1, 1, 1, 1, 61, 1, 62,
374
+ 62, 62, 62, 62, 62, 62, 62, 63,
375
+ 1, 62, 62, 64, 62, 62, 62, 62,
376
+ 62, 62, 62, 62, 62, 62, 62, 62,
377
+ 62, 62, 62, 62, 62, 62, 63, 65,
378
+ 66, 65, 65, 65, 65, 65, 67, 62,
379
+ 65, 65, 65, 65, 65, 62, 65, 65,
380
+ 65, 65, 65, 65, 65, 65, 65, 65,
381
+ 62, 62, 62, 65, 62, 62, 62, 65,
382
+ 65, 65, 65, 65, 65, 65, 65, 65,
383
+ 65, 65, 65, 65, 65, 65, 65, 65,
384
+ 65, 65, 65, 65, 65, 65, 65, 65,
385
+ 65, 62, 68, 62, 65, 65, 65, 65,
386
+ 65, 65, 65, 65, 65, 65, 65, 65,
387
+ 65, 65, 65, 65, 65, 65, 65, 65,
388
+ 65, 65, 65, 65, 65, 65, 65, 65,
389
+ 65, 65, 65, 65, 65, 62, 1, 1,
390
+ 1, 1, 1, 1, 1, 1, 1, 1,
391
+ 1, 1, 1, 1, 1, 1, 1, 1,
392
+ 1, 1, 1, 1, 1, 1, 1, 1,
393
+ 1, 1, 1, 1, 1, 1, 1, 1,
394
+ 1, 1, 1, 1, 1, 1, 1, 1,
395
+ 1, 1, 1, 1, 1, 1, 1, 1,
396
+ 1, 1, 1, 1, 1, 1, 1, 1,
397
+ 1, 1, 1, 1, 1, 1, 1, 1,
398
+ 69, 69, 69, 69, 69, 69, 69, 69,
399
+ 69, 69, 69, 69, 69, 69, 69, 69,
400
+ 69, 69, 69, 69, 69, 69, 69, 69,
401
+ 69, 69, 69, 69, 69, 69, 70, 71,
402
+ 71, 71, 71, 71, 71, 71, 71, 71,
403
+ 71, 71, 71, 72, 71, 71, 73, 74,
404
+ 74, 74, 75, 1, 9, 9, 9, 9,
405
+ 9, 9, 9, 9, 22, 1, 9, 9,
406
+ 76, 9, 9, 9, 9, 9, 9, 9,
407
+ 9, 9, 9, 9, 9, 9, 9, 9,
408
+ 9, 9, 9, 22, 9, 11, 9, 9,
409
+ 9, 9, 9, 77, 9, 9, 9, 9,
410
+ 9, 9, 9, 9, 9, 9, 9, 9,
411
+ 9, 9, 9, 9, 9, 9, 9, 9,
412
+ 9, 9, 9, 9, 9, 9, 9, 9,
413
+ 9, 9, 9, 9, 9, 9, 9, 9,
414
+ 9, 9, 9, 9, 9, 9, 9, 9,
415
+ 9, 9, 9, 9, 9, 9, 9, 12,
416
+ 9, 9, 9, 9, 9, 9, 9, 9,
417
+ 9, 9, 9, 9, 9, 9, 9, 9,
418
+ 9, 9, 9, 9, 9, 9, 9, 9,
419
+ 9, 9, 9, 9, 9, 9, 9, 9,
420
+ 9, 9, 9, 1, 1, 1, 1, 1,
421
+ 1, 1, 1, 1, 1, 1, 1, 1,
422
+ 1, 1, 1, 1, 1, 1, 1, 1,
423
+ 1, 1, 1, 1, 1, 1, 1, 1,
424
+ 1, 1, 1, 1, 1, 1, 1, 1,
425
+ 1, 1, 1, 1, 1, 1, 1, 1,
426
+ 1, 1, 1, 1, 1, 1, 1, 1,
427
+ 1, 1, 1, 1, 1, 1, 1, 1,
428
+ 1, 1, 1, 1, 1, 13, 13, 13,
429
+ 13, 13, 13, 13, 13, 13, 13, 13,
430
+ 13, 13, 13, 13, 13, 13, 13, 13,
431
+ 13, 13, 13, 13, 13, 13, 13, 13,
432
+ 13, 13, 13, 14, 15, 15, 15, 15,
433
+ 15, 15, 15, 15, 15, 15, 15, 15,
434
+ 16, 15, 15, 17, 18, 18, 18, 19,
435
+ 1, 9, 9, 9, 9, 9, 9, 9,
436
+ 9, 78, 1, 9, 9, 79, 9, 9,
437
+ 9, 9, 9, 9, 9, 9, 9, 9,
438
+ 9, 9, 9, 9, 9, 9, 9, 9,
439
+ 78, 9, 11, 9, 9, 9, 9, 9,
440
+ 80, 9, 9, 9, 9, 9, 9, 9,
441
+ 9, 9, 9, 9, 9, 9, 9, 9,
442
+ 9, 9, 9, 9, 9, 9, 9, 9,
443
+ 9, 9, 9, 9, 9, 9, 9, 9,
444
+ 9, 9, 9, 9, 9, 9, 9, 9,
445
+ 9, 9, 9, 9, 9, 9, 9, 9,
446
+ 9, 9, 9, 9, 12, 9, 9, 9,
447
+ 9, 9, 9, 9, 9, 9, 9, 9,
448
+ 9, 9, 9, 9, 9, 9, 9, 9,
449
+ 9, 9, 9, 9, 9, 9, 9, 9,
450
+ 9, 9, 9, 9, 9, 9, 9, 9,
451
+ 1, 1, 1, 1, 1, 1, 1, 1,
452
+ 1, 1, 1, 1, 1, 1, 1, 1,
453
+ 1, 1, 1, 1, 1, 1, 1, 1,
454
+ 1, 1, 1, 1, 1, 1, 1, 1,
455
+ 1, 1, 1, 1, 1, 1, 1, 1,
456
+ 1, 1, 1, 1, 1, 1, 1, 1,
457
+ 1, 1, 1, 1, 1, 1, 1, 1,
458
+ 1, 1, 1, 1, 1, 1, 1, 1,
459
+ 1, 1, 13, 13, 13, 13, 13, 13,
460
+ 13, 13, 13, 13, 13, 13, 13, 13,
461
+ 13, 13, 13, 13, 13, 13, 13, 13,
462
+ 13, 13, 13, 13, 13, 13, 13, 13,
463
+ 14, 15, 15, 15, 15, 15, 15, 15,
464
+ 15, 15, 15, 15, 15, 16, 15, 15,
465
+ 17, 18, 18, 18, 19, 1, 9, 9,
466
+ 9, 9, 9, 9, 9, 9, 81, 1,
467
+ 9, 9, 82, 9, 9, 9, 9, 9,
468
+ 9, 9, 9, 9, 9, 9, 9, 9,
469
+ 9, 9, 9, 9, 9, 81, 83, 84,
470
+ 83, 83, 83, 83, 83, 85, 9, 83,
471
+ 83, 83, 83, 83, 9, 83, 83, 83,
472
+ 83, 83, 83, 83, 83, 83, 83, 9,
473
+ 9, 9, 83, 9, 9, 9, 83, 83,
474
+ 83, 83, 83, 83, 83, 83, 83, 83,
475
+ 83, 83, 83, 83, 83, 83, 83, 83,
476
+ 83, 83, 83, 83, 83, 83, 83, 83,
477
+ 9, 12, 9, 83, 83, 83, 83, 83,
478
+ 83, 83, 83, 83, 83, 83, 83, 83,
479
+ 83, 83, 83, 83, 83, 83, 83, 83,
480
+ 83, 83, 83, 83, 83, 83, 83, 83,
481
+ 83, 83, 83, 83, 9, 1, 1, 1,
482
+ 1, 1, 1, 1, 1, 1, 1, 1,
483
+ 1, 1, 1, 1, 1, 1, 1, 1,
484
+ 1, 1, 1, 1, 1, 1, 1, 1,
485
+ 1, 1, 1, 1, 1, 1, 1, 1,
486
+ 1, 1, 1, 1, 1, 1, 1, 1,
487
+ 1, 1, 1, 1, 1, 1, 1, 1,
488
+ 1, 1, 1, 1, 1, 1, 1, 1,
489
+ 1, 1, 1, 1, 1, 1, 1, 13,
490
+ 13, 13, 13, 13, 13, 13, 13, 13,
491
+ 13, 13, 13, 13, 13, 13, 13, 13,
492
+ 13, 13, 13, 13, 13, 13, 13, 13,
493
+ 13, 13, 13, 13, 13, 14, 15, 15,
494
+ 15, 15, 15, 15, 15, 15, 15, 15,
495
+ 15, 15, 16, 15, 15, 17, 18, 18,
496
+ 18, 19, 1, 53, 1, 1, 1, 54,
497
+ 1, 1, 1, 1, 1, 1, 1, 1,
498
+ 1, 1, 1, 1, 1, 1, 1, 1,
499
+ 1, 1, 53, 55, 55, 55, 55, 55,
500
+ 55, 55, 86, 1, 55, 55, 55, 55,
501
+ 55, 1, 55, 55, 55, 55, 55, 55,
502
+ 55, 55, 55, 55, 1, 1, 1, 55,
503
+ 1, 1, 1, 55, 55, 55, 55, 55,
504
+ 55, 55, 55, 55, 55, 55, 55, 55,
505
+ 55, 55, 55, 55, 55, 55, 55, 55,
506
+ 55, 55, 55, 55, 55, 1, 1, 1,
507
+ 55, 55, 55, 55, 55, 55, 55, 55,
508
+ 55, 55, 55, 55, 55, 55, 55, 55,
509
+ 55, 55, 55, 55, 55, 55, 55, 55,
510
+ 55, 55, 55, 55, 55, 55, 55, 55,
511
+ 55, 1, 1, 0,
512
+ ]
513
+
514
+ class << self
515
+ attr_accessor :_trans_targs
516
+ private :_trans_targs, :_trans_targs=
517
+ end
518
+ self._trans_targs = [
519
+ 1, 0, 2, 32, 35, 19, 3, 5,
520
+ 33, 6, 7, 33, 9, 10, 11, 12,
521
+ 13, 14, 15, 16, 8, 18, 36, 1,
522
+ 2, 32, 35, 19, 21, 22, 21, 40,
523
+ 24, 25, 26, 27, 28, 29, 30, 31,
524
+ 21, 22, 21, 40, 24, 25, 26, 27,
525
+ 28, 29, 30, 31, 23, 33, 4, 32,
526
+ 34, 4, 34, 33, 4, 34, 6, 36,
527
+ 17, 38, 39, 37, 9, 10, 11, 12,
528
+ 13, 14, 15, 16, 17, 37, 36, 17,
529
+ 37, 36, 17, 38, 39, 37, 34,
530
+ ]
531
+
532
+ class << self
533
+ attr_accessor :_trans_actions
534
+ private :_trans_actions, :_trans_actions=
535
+ end
536
+ self._trans_actions = [
537
+ 0, 0, 0, 1, 1, 2, 0, 0,
538
+ 0, 0, 0, 3, 0, 0, 0, 0,
539
+ 0, 0, 0, 0, 0, 0, 0, 4,
540
+ 4, 5, 5, 6, 7, 7, 8, 9,
541
+ 7, 7, 7, 7, 7, 7, 7, 7,
542
+ 0, 0, 2, 10, 0, 0, 0, 0,
543
+ 0, 0, 0, 0, 0, 11, 11, 0,
544
+ 12, 0, 2, 4, 4, 6, 13, 14,
545
+ 14, 13, 15, 16, 13, 13, 13, 13,
546
+ 13, 13, 13, 13, 0, 2, 4, 4,
547
+ 6, 11, 11, 0, 3, 12, 17,
548
+ ]
549
+
550
+ class << self
551
+ attr_accessor :_eof_actions
552
+ private :_eof_actions, :_eof_actions=
553
+ end
554
+ self._eof_actions = [
555
+ 0, 0, 0, 0, 0, 0, 0, 0,
556
+ 0, 0, 0, 0, 0, 0, 0, 0,
557
+ 0, 0, 0, 0, 0, 0, 0, 0,
558
+ 0, 0, 0, 0, 0, 0, 0, 0,
559
+ 11, 0, 4, 11, 0, 4, 11, 11,
560
+ 0,
561
+ ]
562
+
563
+ class << self
564
+ attr_accessor :start
565
+ end
566
+ self.start = 1
567
+ class << self
568
+ attr_accessor :first_final
569
+ end
570
+ self.first_final = 32
571
+ class << self
572
+ attr_accessor :error
8
573
  end
574
+ self.error = 0
9
575
 
10
- actions, error = Ragel.parse(:content_location, s)
11
- if error
12
- raise Mail::Field::ParseError.new(Mail::ContentLocationElement, s, error)
576
+ class << self
577
+ attr_accessor :en_comment_tail
13
578
  end
579
+ self.en_comment_tail = 20
580
+ class << self
581
+ attr_accessor :en_main
582
+ end
583
+ self.en_main = 1
584
+
585
+ def self.parse(data)
586
+ data = data.dup.force_encoding(Encoding::ASCII_8BIT) if data.respond_to?(:force_encoding)
14
587
 
15
- qstr_s = token_string_s = nil
16
- actions.each_slice(2) do |action_id, p|
17
- action = Mail::Parsers::Ragel::ACTIONS[action_id]
18
- case action
588
+ content_location = ContentLocationStruct.new(nil)
589
+ return content_location if Mail::Utilities.blank?(data)
19
590
 
20
- # Quoted String.
21
- when :qstr_s then qstr_s = p
22
- when :qstr_e then content_location.location = s[qstr_s..(p-1)]
591
+ # Parser state
592
+ disp_type_s = param_attr_s = param_attr = qstr_s = qstr = param_val_s = nil
23
593
 
24
- # Token String
25
- when :token_string_s then token_string_s = p
26
- when :token_string_e
27
- content_location.location = s[token_string_s..(p-1)]
594
+ # 5.1 Variables Used by Ragel
595
+ p = 0
596
+ eof = pe = data.length
597
+ stack = []
598
+
599
+ begin
600
+ p ||= 0
601
+ pe ||= data.length
602
+ cs = start
603
+ top = 0
604
+ end
28
605
 
29
- else
30
- raise Mail::Field::ParseError.new(Mail::ContentLocationElement, s, "Failed to process unknown action: #{action}")
606
+ begin
607
+ testEof = false
608
+ _slen, _trans, _keys, _inds, _acts, _nacts = nil
609
+ _goto_level = 0
610
+ _resume = 10
611
+ _eof_trans = 15
612
+ _again = 20
613
+ _test_eof = 30
614
+ _out = 40
615
+ while true
616
+ if _goto_level <= 0
617
+ if p == pe
618
+ _goto_level = _test_eof
619
+ next
620
+ end
621
+ if cs == 0
622
+ _goto_level = _out
623
+ next
624
+ end
625
+ end
626
+ if _goto_level <= _resume
627
+ _keys = cs << 1
628
+ _inds = _index_offsets[cs]
629
+ _slen = _key_spans[cs]
630
+ _wide = data[p].ord
631
+ _trans = if (_slen > 0 &&
632
+ _trans_keys[_keys] <= _wide &&
633
+ _wide <= _trans_keys[_keys + 1])
634
+ _indicies[_inds + _wide - _trans_keys[_keys]]
635
+ else
636
+ _indicies[_inds + _slen]
637
+ end
638
+ cs = _trans_targs[_trans]
639
+ if _trans_actions[_trans] != 0
640
+ case _trans_actions[_trans]
641
+ when 13
642
+ begin
643
+ qstr_s = p
644
+ end
645
+ when 3
646
+ begin
647
+ content_location.location = chars(data, qstr_s, p - 1)
648
+ end
649
+ when 1
650
+ begin
651
+ token_string_s = p
652
+ end
653
+ when 11
654
+ begin
655
+ content_location.location = chars(data, token_string_s, p - 1)
656
+ end
657
+ when 4
658
+ begin
659
+ end
660
+ when 7
661
+ begin
662
+ end
663
+ when 2
664
+ begin
665
+ begin
666
+ stack[top] = cs
667
+ top += 1
668
+ cs = 20
669
+ _goto_level = _again
670
+ next
671
+ end
672
+ end
673
+ when 10
674
+ begin
675
+ begin
676
+ top -= 1
677
+ cs = stack[top]
678
+ _goto_level = _again
679
+ next
680
+ end
681
+ end
682
+ when 15
683
+ begin
684
+ qstr_s = p
685
+ end
686
+ begin
687
+ content_location.location = chars(data, qstr_s, p - 1)
688
+ end
689
+ when 14
690
+ begin
691
+ qstr_s = p
692
+ end
693
+ begin
694
+ content_location.location = chars(data, token_string_s, p - 1)
695
+ end
696
+ when 12
697
+ begin
698
+ content_location.location = chars(data, token_string_s, p - 1)
699
+ end
700
+ begin
701
+ begin
702
+ stack[top] = cs
703
+ top += 1
704
+ cs = 20
705
+ _goto_level = _again
706
+ next
707
+ end
708
+ end
709
+ when 5
710
+ begin
711
+ end
712
+ begin
713
+ token_string_s = p
714
+ end
715
+ when 6
716
+ begin
717
+ end
718
+ begin
719
+ begin
720
+ stack[top] = cs
721
+ top += 1
722
+ cs = 20
723
+ _goto_level = _again
724
+ next
725
+ end
726
+ end
727
+ when 8
728
+ begin
729
+ end
730
+ begin
731
+ begin
732
+ stack[top] = cs
733
+ top += 1
734
+ cs = 20
735
+ _goto_level = _again
736
+ next
737
+ end
738
+ end
739
+ when 9
740
+ begin
741
+ end
742
+ begin
743
+ begin
744
+ top -= 1
745
+ cs = stack[top]
746
+ _goto_level = _again
747
+ next
748
+ end
749
+ end
750
+ when 17
751
+ begin
752
+ begin
753
+ stack[top] = cs
754
+ top += 1
755
+ cs = 20
756
+ _goto_level = _again
757
+ next
758
+ end
759
+ end
760
+ begin
761
+ content_location.location = chars(data, token_string_s, p - 1)
762
+ end
763
+ when 16
764
+ begin
765
+ qstr_s = p
766
+ end
767
+ begin
768
+ content_location.location = chars(data, token_string_s, p - 1)
769
+ end
770
+ begin
771
+ begin
772
+ stack[top] = cs
773
+ top += 1
774
+ cs = 20
775
+ _goto_level = _again
776
+ next
777
+ end
778
+ end
779
+ end
780
+ end
781
+ end
782
+ if _goto_level <= _again
783
+ if cs == 0
784
+ _goto_level = _out
785
+ next
786
+ end
787
+ p += 1
788
+ if p != pe
789
+ _goto_level = _resume
790
+ next
791
+ end
792
+ end
793
+ if _goto_level <= _test_eof
794
+ if p == eof
795
+ case _eof_actions[cs]
796
+ when 11
797
+ begin
798
+ content_location.location = chars(data, token_string_s, p - 1)
799
+ end
800
+ when 4
801
+ begin
802
+ end
803
+ end
804
+ end
805
+ end
806
+ if _goto_level <= _out
807
+ break
808
+ end
809
+ end
31
810
  end
811
+
812
+ if p != eof || cs < 32
813
+ raise Mail::Field::IncompleteParseError.new(Mail::ContentLocationElement, data, p)
814
+ end
815
+
816
+ content_location
32
817
  end
33
- content_location
34
818
  end
35
819
  end
820
+ ensure
821
+ $VERBOSE = original_verbose
36
822
  end