gherkin 2.12.0 → 2.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +6 -14
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +1 -3
  4. data/History.md +18 -0
  5. data/LICENSE +1 -1
  6. data/README.md +22 -28
  7. data/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +466 -466
  8. data/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +2 -2
  9. data/ext/gherkin_lexer_bm/gherkin_lexer_bm.c +535 -395
  10. data/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +2 -2
  11. data/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +2 -2
  12. data/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +2 -2
  13. data/ext/gherkin_lexer_da/gherkin_lexer_da.c +2 -2
  14. data/ext/gherkin_lexer_de/gherkin_lexer_de.c +296 -286
  15. data/ext/gherkin_lexer_el/gherkin_lexer_el.c +2 -2
  16. data/ext/gherkin_lexer_en/gherkin_lexer_en.c +2 -2
  17. data/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +2 -2
  18. data/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +2 -2
  19. data/ext/gherkin_lexer_en_old/gherkin_lexer_en_old.c +2 -2
  20. data/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +2 -2
  21. data/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +2 -2
  22. data/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +2 -2
  23. data/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +2 -2
  24. data/ext/gherkin_lexer_es/gherkin_lexer_es.c +2 -2
  25. data/ext/gherkin_lexer_et/gherkin_lexer_et.c +2 -2
  26. data/ext/gherkin_lexer_fa/gherkin_lexer_fa.c +2 -2
  27. data/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +2 -2
  28. data/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +2 -2
  29. data/ext/gherkin_lexer_gl/gherkin_lexer_gl.c +2 -2
  30. data/ext/gherkin_lexer_he/gherkin_lexer_he.c +2 -2
  31. data/ext/gherkin_lexer_hi/gherkin_lexer_hi.c +784 -685
  32. data/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +2 -2
  33. data/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +2 -2
  34. data/ext/gherkin_lexer_id/gherkin_lexer_id.c +2 -2
  35. data/ext/gherkin_lexer_is/gherkin_lexer_is.c +2 -2
  36. data/ext/gherkin_lexer_it/gherkin_lexer_it.c +2 -2
  37. data/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +2 -2
  38. data/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +2 -2
  39. data/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +2 -2
  40. data/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +2 -2
  41. data/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +2 -2
  42. data/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +2 -2
  43. data/ext/gherkin_lexer_no/gherkin_lexer_no.c +2 -2
  44. data/ext/gherkin_lexer_pa/extconf.rb +6 -0
  45. data/ext/gherkin_lexer_pa/gherkin_lexer_pa.c +2160 -0
  46. data/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +2 -2
  47. data/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +2 -2
  48. data/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +2 -2
  49. data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +2 -2
  50. data/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +2 -2
  51. data/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +2 -2
  52. data/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +586 -589
  53. data/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +2 -2
  54. data/ext/gherkin_lexer_th/extconf.rb +6 -0
  55. data/ext/gherkin_lexer_th/gherkin_lexer_th.c +2840 -0
  56. data/ext/gherkin_lexer_tl/gherkin_lexer_tl.c +2 -2
  57. data/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +2 -2
  58. data/ext/gherkin_lexer_tt/gherkin_lexer_tt.c +2 -2
  59. data/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +2 -2
  60. data/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +586 -594
  61. data/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +2 -2
  62. data/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +2 -2
  63. data/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +2 -2
  64. data/features/.cucumber/stepdefs.json +66 -66
  65. data/gherkin.gemspec +12 -11
  66. data/lib/gherkin/formatter/filter_formatter.rb +1 -1
  67. data/lib/gherkin/i18n.json +38 -10
  68. data/lib/gherkin/i18n.rb +1 -1
  69. data/lib/gherkin/lexer/ar.rb +1167 -0
  70. data/lib/gherkin/lexer/bg.rb +1379 -0
  71. data/lib/gherkin/lexer/bm.rb +1247 -0
  72. data/lib/gherkin/lexer/ca.rb +1307 -0
  73. data/lib/gherkin/lexer/cs.rb +1243 -0
  74. data/lib/gherkin/lexer/cy_gb.rb +1029 -0
  75. data/lib/gherkin/lexer/da.rb +1045 -0
  76. data/lib/gherkin/lexer/de.rb +1163 -0
  77. data/lib/gherkin/lexer/el.rb +1677 -0
  78. data/lib/gherkin/lexer/en.rb +1153 -0
  79. data/lib/gherkin/lexer/en_au.rb +1483 -0
  80. data/lib/gherkin/lexer/en_lol.rb +931 -0
  81. data/lib/gherkin/lexer/en_old.rb +1034 -0
  82. data/lib/gherkin/lexer/en_pirate.rb +1207 -0
  83. data/lib/gherkin/lexer/en_scouse.rb +1359 -0
  84. data/lib/gherkin/lexer/en_tx.rb +1013 -0
  85. data/lib/gherkin/lexer/eo.rb +992 -0
  86. data/lib/gherkin/lexer/es.rb +1137 -0
  87. data/lib/gherkin/lexer/et.rb +987 -0
  88. data/lib/gherkin/lexer/fa.rb +1211 -0
  89. data/lib/gherkin/lexer/fi.rb +966 -0
  90. data/lib/gherkin/lexer/fr.rb +1225 -0
  91. data/lib/gherkin/lexer/gl.rb +1114 -0
  92. data/lib/gherkin/lexer/he.rb +1115 -0
  93. data/lib/gherkin/lexer/hi.rb +1556 -0
  94. data/lib/gherkin/lexer/hr.rb +1063 -0
  95. data/lib/gherkin/lexer/hu.rb +1115 -0
  96. data/lib/gherkin/lexer/id.rb +960 -0
  97. data/lib/gherkin/lexer/is.rb +1117 -0
  98. data/lib/gherkin/lexer/it.rb +1083 -0
  99. data/lib/gherkin/lexer/ja.rb +1415 -0
  100. data/lib/gherkin/lexer/ko.rb +1099 -0
  101. data/lib/gherkin/lexer/lt.rb +1042 -0
  102. data/lib/gherkin/lexer/lu.rb +1129 -0
  103. data/lib/gherkin/lexer/lv.rb +1163 -0
  104. data/lib/gherkin/lexer/nl.rb +1112 -0
  105. data/lib/gherkin/lexer/no.rb +1057 -0
  106. data/lib/gherkin/lexer/pa.rb +1849 -0
  107. data/lib/gherkin/lexer/pl.rb +1454 -0
  108. data/lib/gherkin/lexer/pt.rb +1427 -0
  109. data/lib/gherkin/lexer/ro.rb +1161 -0
  110. data/lib/gherkin/lexer/ru.rb +1763 -0
  111. data/lib/gherkin/lexer/sk.rb +1449 -0
  112. data/lib/gherkin/lexer/sr_cyrl.rb +1800 -0
  113. data/lib/gherkin/lexer/sr_latn.rb +1291 -0
  114. data/lib/gherkin/lexer/sv.rb +1067 -0
  115. data/lib/gherkin/lexer/th.rb +2489 -0
  116. data/lib/gherkin/lexer/tl.rb +1723 -0
  117. data/lib/gherkin/lexer/tr.rb +1089 -0
  118. data/lib/gherkin/lexer/tt.rb +1640 -0
  119. data/lib/gherkin/lexer/uk.rb +1643 -0
  120. data/lib/gherkin/lexer/uz.rb +1373 -0
  121. data/lib/gherkin/lexer/vi.rb +1195 -0
  122. data/lib/gherkin/lexer/zh_cn.rb +1055 -0
  123. data/lib/gherkin/lexer/zh_tw.rb +1049 -0
  124. data/lib/gherkin/platform.rb +2 -2
  125. data/spec/gherkin/formatter/json_formatter_spec.rb +4 -0
  126. data/spec/gherkin/formatter/pretty_formatter_spec.rb +25 -18
  127. data/spec/gherkin/i18n_spec.rb +2 -0
  128. data/tasks/gems.rake +19 -4
  129. data/tasks/ikvm.rake +10 -8
  130. data/tasks/ragel_task.rb +3 -2
  131. data/tasks/rspec.rake +2 -6
  132. metadata +295 -169
@@ -0,0 +1,1067 @@
1
+
2
+ # line 1 "ragel/i18n/sv.rb.rl"
3
+ require 'gherkin/native'
4
+
5
+ module Gherkin
6
+ module Lexer
7
+ class Sv #:nodoc:
8
+ native_impl('gherkin')
9
+
10
+
11
+ # line 125 "ragel/i18n/sv.rb.rl"
12
+
13
+
14
+ def initialize(listener)
15
+ @listener = listener
16
+
17
+ # line 18 "lib/gherkin/lexer/sv.rb"
18
+ class << self
19
+ attr_accessor :_lexer_actions
20
+ private :_lexer_actions, :_lexer_actions=
21
+ end
22
+ self._lexer_actions = [
23
+ 0, 1, 0, 1, 1, 1, 2, 1,
24
+ 3, 1, 4, 1, 5, 1, 6, 1,
25
+ 7, 1, 8, 1, 9, 1, 10, 1,
26
+ 11, 1, 12, 1, 13, 1, 16, 1,
27
+ 17, 1, 18, 1, 19, 1, 20, 1,
28
+ 21, 1, 22, 1, 23, 2, 2, 18,
29
+ 2, 3, 4, 2, 13, 0, 2, 14,
30
+ 15, 2, 17, 0, 2, 17, 1, 2,
31
+ 17, 16, 2, 17, 19, 2, 18, 6,
32
+ 2, 18, 7, 2, 18, 8, 2, 18,
33
+ 9, 2, 18, 10, 2, 18, 16, 2,
34
+ 20, 21, 2, 22, 0, 2, 22, 1,
35
+ 2, 22, 16, 2, 22, 19, 3, 4,
36
+ 14, 15, 3, 5, 14, 15, 3, 11,
37
+ 14, 15, 3, 12, 14, 15, 3, 13,
38
+ 14, 15, 3, 14, 15, 18, 3, 17,
39
+ 0, 11, 3, 17, 14, 15, 4, 2,
40
+ 14, 15, 18, 4, 3, 4, 14, 15,
41
+ 4, 17, 0, 14, 15, 5, 17, 0,
42
+ 11, 14, 15
43
+ ]
44
+
45
+ class << self
46
+ attr_accessor :_lexer_key_offsets
47
+ private :_lexer_key_offsets, :_lexer_key_offsets=
48
+ end
49
+ self._lexer_key_offsets = [
50
+ 0, 0, 19, 20, 21, 39, 40, 41,
51
+ 43, 45, 50, 55, 60, 65, 69, 73,
52
+ 75, 76, 77, 78, 79, 80, 81, 82,
53
+ 83, 84, 85, 86, 87, 88, 89, 90,
54
+ 91, 93, 95, 100, 107, 112, 113, 114,
55
+ 115, 116, 117, 118, 119, 120, 121, 122,
56
+ 123, 124, 125, 126, 127, 128, 129, 130,
57
+ 131, 145, 147, 149, 151, 153, 155, 157,
58
+ 159, 161, 163, 165, 167, 169, 171, 173,
59
+ 175, 193, 194, 195, 196, 197, 198, 199,
60
+ 200, 201, 202, 203, 218, 220, 222, 224,
61
+ 226, 228, 230, 232, 234, 236, 238, 240,
62
+ 242, 244, 246, 248, 250, 252, 254, 256,
63
+ 258, 260, 262, 264, 266, 268, 270, 272,
64
+ 274, 276, 278, 280, 282, 284, 286, 288,
65
+ 290, 292, 294, 296, 298, 300, 302, 304,
66
+ 306, 308, 310, 312, 314, 316, 318, 321,
67
+ 323, 325, 327, 329, 331, 333, 335, 338,
68
+ 340, 342, 344, 346, 347, 348, 349, 350,
69
+ 351, 352, 353, 354, 355, 366, 368, 370,
70
+ 372, 374, 376, 378, 380, 382, 384, 386,
71
+ 388, 390, 392, 394, 396, 398, 400, 402,
72
+ 404, 406, 408, 410, 412, 414, 416, 418,
73
+ 420, 422, 424, 426, 428, 430, 432, 434,
74
+ 436, 438, 440, 442, 445, 447, 449, 451,
75
+ 453, 455, 457, 459, 461, 463, 465, 467,
76
+ 469, 471, 473, 475, 477, 479, 481, 484,
77
+ 486, 488, 489, 490, 491, 492, 493, 494,
78
+ 495, 496, 503, 505, 507, 509, 511, 513,
79
+ 515, 517, 519, 520, 521, 522, 523, 524,
80
+ 525, 526, 527, 528, 529, 530, 532, 533,
81
+ 534, 535, 536, 537, 538, 539, 541, 542,
82
+ 543, 559, 561, 563, 565, 567, 569, 571,
83
+ 573, 575, 577, 579, 581, 583, 585, 587,
84
+ 589, 591, 593, 595, 597, 599, 601, 603,
85
+ 605, 607, 609, 611, 613, 615, 617, 619,
86
+ 621, 623, 625, 627, 629, 631, 633, 635,
87
+ 637, 639, 641, 643, 645, 647, 649, 651,
88
+ 653, 655, 657, 659, 661, 663, 665, 667,
89
+ 669, 671, 673, 676, 678, 680, 682, 684,
90
+ 686, 688, 690, 693, 695, 697, 699, 700,
91
+ 701, 702, 706, 712, 715, 717, 723, 741,
92
+ 743, 745, 747, 749, 751, 753, 755, 757,
93
+ 759, 761, 763, 765, 767, 769, 771, 773,
94
+ 775, 777, 779, 782, 784, 786, 788, 790,
95
+ 792, 794, 796
96
+ ]
97
+
98
+ class << self
99
+ attr_accessor :_lexer_trans_keys
100
+ private :_lexer_trans_keys, :_lexer_trans_keys=
101
+ end
102
+ self._lexer_trans_keys = [
103
+ -17, 10, 32, 34, 35, 37, 42, 64,
104
+ 65, 66, 69, 71, 77, 78, 79, 83,
105
+ 124, 9, 13, -69, -65, 10, 32, 34,
106
+ 35, 37, 42, 64, 65, 66, 69, 71,
107
+ 77, 78, 79, 83, 124, 9, 13, 34,
108
+ 34, 10, 13, 10, 13, 10, 32, 34,
109
+ 9, 13, 10, 32, 34, 9, 13, 10,
110
+ 32, 34, 9, 13, 10, 32, 34, 9,
111
+ 13, 10, 32, 9, 13, 10, 32, 9,
112
+ 13, 10, 13, 10, 95, 70, 69, 65,
113
+ 84, 85, 82, 69, 95, 69, 78, 68,
114
+ 95, 37, 32, 10, 13, 10, 13, 13,
115
+ 32, 64, 9, 10, 9, 10, 13, 32,
116
+ 64, 11, 12, 10, 32, 64, 9, 13,
117
+ 98, 115, 116, 114, 97, 107, 116, 32,
118
+ 83, 99, 101, 110, 97, 114, 105, 111,
119
+ 58, 10, 10, 10, 32, 35, 37, 42,
120
+ 64, 69, 71, 77, 78, 79, 83, 9,
121
+ 13, 10, 95, 10, 70, 10, 69, 10,
122
+ 65, 10, 84, 10, 85, 10, 82, 10,
123
+ 69, 10, 95, 10, 69, 10, 78, 10,
124
+ 68, 10, 95, 10, 37, 10, 32, 10,
125
+ 32, 34, 35, 37, 42, 64, 65, 66,
126
+ 69, 71, 77, 78, 79, 83, 124, 9,
127
+ 13, 97, 107, 103, 114, 117, 110, 100,
128
+ 58, 10, 10, 10, 32, 35, 37, 42,
129
+ 64, 65, 69, 71, 77, 78, 79, 83,
130
+ 9, 13, 10, 95, 10, 70, 10, 69,
131
+ 10, 65, 10, 84, 10, 85, 10, 82,
132
+ 10, 69, 10, 95, 10, 69, 10, 78,
133
+ 10, 68, 10, 95, 10, 37, 10, 32,
134
+ 10, 98, 10, 115, 10, 116, 10, 114,
135
+ 10, 97, 10, 107, 10, 116, 10, 32,
136
+ 10, 83, 10, 99, 10, 101, 10, 110,
137
+ 10, 97, 10, 114, 10, 105, 10, 111,
138
+ 10, 58, 10, 103, 10, 101, 10, 110,
139
+ 10, 115, 10, 107, 10, 97, 10, 112,
140
+ 10, 105, 10, 118, 10, 101, 10, 116,
141
+ 10, 101, 10, 110, -61, 10, -92, 10,
142
+ 10, 114, 10, 99, 10, 104, -61, 10,
143
+ 99, -91, 10, 10, 101, 10, 110, 10,
144
+ 97, 10, 114, 10, 105, 10, 111, 10,
145
+ 58, 109, 10, 97, 10, 108, 10, 108,
146
+ 103, 120, 101, 110, 115, 107, 97, 112,
147
+ 58, 10, 10, 10, 32, 35, 37, 64,
148
+ 65, 66, 69, 83, 9, 13, 10, 95,
149
+ 10, 70, 10, 69, 10, 65, 10, 84,
150
+ 10, 85, 10, 82, 10, 69, 10, 95,
151
+ 10, 69, 10, 78, 10, 68, 10, 95,
152
+ 10, 37, 10, 98, 10, 115, 10, 116,
153
+ 10, 114, 10, 97, 10, 107, 10, 116,
154
+ 10, 32, 10, 83, 10, 99, 10, 101,
155
+ 10, 110, 10, 97, 10, 114, 10, 105,
156
+ 10, 111, 10, 58, 10, 97, 10, 107,
157
+ 10, 103, 10, 114, 10, 117, 10, 110,
158
+ 10, 100, 10, 103, 120, 10, 101, 10,
159
+ 110, 10, 115, 10, 107, 10, 97, 10,
160
+ 112, 10, 101, 10, 109, 10, 112, 10,
161
+ 101, 10, 108, 10, 99, 10, 101, 10,
162
+ 110, 10, 97, 10, 114, 10, 105, 10,
163
+ 111, 10, 58, 109, 10, 97, 10, 108,
164
+ 101, 109, 112, 101, 108, 58, 10, 10,
165
+ 10, 32, 35, 69, 124, 9, 13, 10,
166
+ 103, 10, 101, 10, 110, 10, 115, 10,
167
+ 107, 10, 97, 10, 112, 10, 58, 105,
168
+ 118, 101, 116, 101, 110, -61, -92, 114,
169
+ 99, 104, -61, 99, -91, 101, 110, 97,
170
+ 114, 105, 111, 58, 109, 10, 10, 10,
171
+ 32, 35, 37, 42, 64, 65, 66, 69,
172
+ 71, 77, 78, 79, 83, 9, 13, 10,
173
+ 95, 10, 70, 10, 69, 10, 65, 10,
174
+ 84, 10, 85, 10, 82, 10, 69, 10,
175
+ 95, 10, 69, 10, 78, 10, 68, 10,
176
+ 95, 10, 37, 10, 32, 10, 98, 10,
177
+ 115, 10, 116, 10, 114, 10, 97, 10,
178
+ 107, 10, 116, 10, 32, 10, 83, 10,
179
+ 99, 10, 101, 10, 110, 10, 97, 10,
180
+ 114, 10, 105, 10, 111, 10, 58, 10,
181
+ 97, 10, 107, 10, 103, 10, 114, 10,
182
+ 117, 10, 110, 10, 100, 10, 103, 10,
183
+ 101, 10, 110, 10, 115, 10, 107, 10,
184
+ 97, 10, 112, 10, 105, 10, 118, 10,
185
+ 101, 10, 116, 10, 101, 10, 110, -61,
186
+ 10, -92, 10, 10, 114, 10, 99, 10,
187
+ 104, -61, 10, 99, -91, 10, 10, 101,
188
+ 10, 110, 10, 97, 10, 114, 10, 105,
189
+ 10, 111, 10, 58, 109, 10, 97, 10,
190
+ 108, 10, 108, 97, 108, 108, 32, 124,
191
+ 9, 13, 10, 32, 92, 124, 9, 13,
192
+ 10, 92, 124, 10, 92, 10, 32, 92,
193
+ 124, 9, 13, 10, 32, 34, 35, 37,
194
+ 42, 64, 65, 66, 69, 71, 77, 78,
195
+ 79, 83, 124, 9, 13, 10, 103, 10,
196
+ 101, 10, 110, 10, 115, 10, 107, 10,
197
+ 97, 10, 112, 10, 58, 10, 105, 10,
198
+ 118, 10, 101, 10, 116, 10, 101, 10,
199
+ 110, -61, 10, -92, 10, 10, 114, 10,
200
+ 99, 10, 104, -61, 10, 99, -91, 10,
201
+ 10, 101, 10, 110, 10, 97, 10, 114,
202
+ 10, 105, 10, 111, 0
203
+ ]
204
+
205
+ class << self
206
+ attr_accessor :_lexer_single_lengths
207
+ private :_lexer_single_lengths, :_lexer_single_lengths=
208
+ end
209
+ self._lexer_single_lengths = [
210
+ 0, 17, 1, 1, 16, 1, 1, 2,
211
+ 2, 3, 3, 3, 3, 2, 2, 2,
212
+ 1, 1, 1, 1, 1, 1, 1, 1,
213
+ 1, 1, 1, 1, 1, 1, 1, 1,
214
+ 2, 2, 3, 5, 3, 1, 1, 1,
215
+ 1, 1, 1, 1, 1, 1, 1, 1,
216
+ 1, 1, 1, 1, 1, 1, 1, 1,
217
+ 12, 2, 2, 2, 2, 2, 2, 2,
218
+ 2, 2, 2, 2, 2, 2, 2, 2,
219
+ 16, 1, 1, 1, 1, 1, 1, 1,
220
+ 1, 1, 1, 13, 2, 2, 2, 2,
221
+ 2, 2, 2, 2, 2, 2, 2, 2,
222
+ 2, 2, 2, 2, 2, 2, 2, 2,
223
+ 2, 2, 2, 2, 2, 2, 2, 2,
224
+ 2, 2, 2, 2, 2, 2, 2, 2,
225
+ 2, 2, 2, 2, 2, 2, 2, 2,
226
+ 2, 2, 2, 2, 2, 2, 3, 2,
227
+ 2, 2, 2, 2, 2, 2, 3, 2,
228
+ 2, 2, 2, 1, 1, 1, 1, 1,
229
+ 1, 1, 1, 1, 9, 2, 2, 2,
230
+ 2, 2, 2, 2, 2, 2, 2, 2,
231
+ 2, 2, 2, 2, 2, 2, 2, 2,
232
+ 2, 2, 2, 2, 2, 2, 2, 2,
233
+ 2, 2, 2, 2, 2, 2, 2, 2,
234
+ 2, 2, 2, 3, 2, 2, 2, 2,
235
+ 2, 2, 2, 2, 2, 2, 2, 2,
236
+ 2, 2, 2, 2, 2, 2, 3, 2,
237
+ 2, 1, 1, 1, 1, 1, 1, 1,
238
+ 1, 5, 2, 2, 2, 2, 2, 2,
239
+ 2, 2, 1, 1, 1, 1, 1, 1,
240
+ 1, 1, 1, 1, 1, 2, 1, 1,
241
+ 1, 1, 1, 1, 1, 2, 1, 1,
242
+ 14, 2, 2, 2, 2, 2, 2, 2,
243
+ 2, 2, 2, 2, 2, 2, 2, 2,
244
+ 2, 2, 2, 2, 2, 2, 2, 2,
245
+ 2, 2, 2, 2, 2, 2, 2, 2,
246
+ 2, 2, 2, 2, 2, 2, 2, 2,
247
+ 2, 2, 2, 2, 2, 2, 2, 2,
248
+ 2, 2, 2, 2, 2, 2, 2, 2,
249
+ 2, 2, 3, 2, 2, 2, 2, 2,
250
+ 2, 2, 3, 2, 2, 2, 1, 1,
251
+ 1, 2, 4, 3, 2, 4, 16, 2,
252
+ 2, 2, 2, 2, 2, 2, 2, 2,
253
+ 2, 2, 2, 2, 2, 2, 2, 2,
254
+ 2, 2, 3, 2, 2, 2, 2, 2,
255
+ 2, 2, 0
256
+ ]
257
+
258
+ class << self
259
+ attr_accessor :_lexer_range_lengths
260
+ private :_lexer_range_lengths, :_lexer_range_lengths=
261
+ end
262
+ self._lexer_range_lengths = [
263
+ 0, 1, 0, 0, 1, 0, 0, 0,
264
+ 0, 1, 1, 1, 1, 1, 1, 0,
265
+ 0, 0, 0, 0, 0, 0, 0, 0,
266
+ 0, 0, 0, 0, 0, 0, 0, 0,
267
+ 0, 0, 1, 1, 1, 0, 0, 0,
268
+ 0, 0, 0, 0, 0, 0, 0, 0,
269
+ 0, 0, 0, 0, 0, 0, 0, 0,
270
+ 1, 0, 0, 0, 0, 0, 0, 0,
271
+ 0, 0, 0, 0, 0, 0, 0, 0,
272
+ 1, 0, 0, 0, 0, 0, 0, 0,
273
+ 0, 0, 0, 1, 0, 0, 0, 0,
274
+ 0, 0, 0, 0, 0, 0, 0, 0,
275
+ 0, 0, 0, 0, 0, 0, 0, 0,
276
+ 0, 0, 0, 0, 0, 0, 0, 0,
277
+ 0, 0, 0, 0, 0, 0, 0, 0,
278
+ 0, 0, 0, 0, 0, 0, 0, 0,
279
+ 0, 0, 0, 0, 0, 0, 0, 0,
280
+ 0, 0, 0, 0, 0, 0, 0, 0,
281
+ 0, 0, 0, 0, 0, 0, 0, 0,
282
+ 0, 0, 0, 0, 1, 0, 0, 0,
283
+ 0, 0, 0, 0, 0, 0, 0, 0,
284
+ 0, 0, 0, 0, 0, 0, 0, 0,
285
+ 0, 0, 0, 0, 0, 0, 0, 0,
286
+ 0, 0, 0, 0, 0, 0, 0, 0,
287
+ 0, 0, 0, 0, 0, 0, 0, 0,
288
+ 0, 0, 0, 0, 0, 0, 0, 0,
289
+ 0, 0, 0, 0, 0, 0, 0, 0,
290
+ 0, 0, 0, 0, 0, 0, 0, 0,
291
+ 0, 1, 0, 0, 0, 0, 0, 0,
292
+ 0, 0, 0, 0, 0, 0, 0, 0,
293
+ 0, 0, 0, 0, 0, 0, 0, 0,
294
+ 0, 0, 0, 0, 0, 0, 0, 0,
295
+ 1, 0, 0, 0, 0, 0, 0, 0,
296
+ 0, 0, 0, 0, 0, 0, 0, 0,
297
+ 0, 0, 0, 0, 0, 0, 0, 0,
298
+ 0, 0, 0, 0, 0, 0, 0, 0,
299
+ 0, 0, 0, 0, 0, 0, 0, 0,
300
+ 0, 0, 0, 0, 0, 0, 0, 0,
301
+ 0, 0, 0, 0, 0, 0, 0, 0,
302
+ 0, 0, 0, 0, 0, 0, 0, 0,
303
+ 0, 0, 0, 0, 0, 0, 0, 0,
304
+ 0, 1, 1, 0, 0, 1, 1, 0,
305
+ 0, 0, 0, 0, 0, 0, 0, 0,
306
+ 0, 0, 0, 0, 0, 0, 0, 0,
307
+ 0, 0, 0, 0, 0, 0, 0, 0,
308
+ 0, 0, 0
309
+ ]
310
+
311
+ class << self
312
+ attr_accessor :_lexer_index_offsets
313
+ private :_lexer_index_offsets, :_lexer_index_offsets=
314
+ end
315
+ self._lexer_index_offsets = [
316
+ 0, 0, 19, 21, 23, 41, 43, 45,
317
+ 48, 51, 56, 61, 66, 71, 75, 79,
318
+ 82, 84, 86, 88, 90, 92, 94, 96,
319
+ 98, 100, 102, 104, 106, 108, 110, 112,
320
+ 114, 117, 120, 125, 132, 137, 139, 141,
321
+ 143, 145, 147, 149, 151, 153, 155, 157,
322
+ 159, 161, 163, 165, 167, 169, 171, 173,
323
+ 175, 189, 192, 195, 198, 201, 204, 207,
324
+ 210, 213, 216, 219, 222, 225, 228, 231,
325
+ 234, 252, 254, 256, 258, 260, 262, 264,
326
+ 266, 268, 270, 272, 287, 290, 293, 296,
327
+ 299, 302, 305, 308, 311, 314, 317, 320,
328
+ 323, 326, 329, 332, 335, 338, 341, 344,
329
+ 347, 350, 353, 356, 359, 362, 365, 368,
330
+ 371, 374, 377, 380, 383, 386, 389, 392,
331
+ 395, 398, 401, 404, 407, 410, 413, 416,
332
+ 419, 422, 425, 428, 431, 434, 437, 441,
333
+ 444, 447, 450, 453, 456, 459, 462, 466,
334
+ 469, 472, 475, 478, 480, 482, 484, 486,
335
+ 488, 490, 492, 494, 496, 507, 510, 513,
336
+ 516, 519, 522, 525, 528, 531, 534, 537,
337
+ 540, 543, 546, 549, 552, 555, 558, 561,
338
+ 564, 567, 570, 573, 576, 579, 582, 585,
339
+ 588, 591, 594, 597, 600, 603, 606, 609,
340
+ 612, 615, 618, 621, 625, 628, 631, 634,
341
+ 637, 640, 643, 646, 649, 652, 655, 658,
342
+ 661, 664, 667, 670, 673, 676, 679, 683,
343
+ 686, 689, 691, 693, 695, 697, 699, 701,
344
+ 703, 705, 712, 715, 718, 721, 724, 727,
345
+ 730, 733, 736, 738, 740, 742, 744, 746,
346
+ 748, 750, 752, 754, 756, 758, 761, 763,
347
+ 765, 767, 769, 771, 773, 775, 778, 780,
348
+ 782, 798, 801, 804, 807, 810, 813, 816,
349
+ 819, 822, 825, 828, 831, 834, 837, 840,
350
+ 843, 846, 849, 852, 855, 858, 861, 864,
351
+ 867, 870, 873, 876, 879, 882, 885, 888,
352
+ 891, 894, 897, 900, 903, 906, 909, 912,
353
+ 915, 918, 921, 924, 927, 930, 933, 936,
354
+ 939, 942, 945, 948, 951, 954, 957, 960,
355
+ 963, 966, 969, 973, 976, 979, 982, 985,
356
+ 988, 991, 994, 998, 1001, 1004, 1007, 1009,
357
+ 1011, 1013, 1017, 1023, 1027, 1030, 1036, 1054,
358
+ 1057, 1060, 1063, 1066, 1069, 1072, 1075, 1078,
359
+ 1081, 1084, 1087, 1090, 1093, 1096, 1099, 1102,
360
+ 1105, 1108, 1111, 1115, 1118, 1121, 1124, 1127,
361
+ 1130, 1133, 1136
362
+ ]
363
+
364
+ class << self
365
+ attr_accessor :_lexer_indicies
366
+ private :_lexer_indicies, :_lexer_indicies=
367
+ end
368
+ self._lexer_indicies = [
369
+ 1, 3, 2, 4, 5, 6, 7, 8,
370
+ 9, 10, 11, 12, 13, 14, 15, 16,
371
+ 17, 2, 0, 18, 0, 2, 0, 3,
372
+ 2, 4, 5, 6, 7, 8, 9, 10,
373
+ 11, 12, 13, 14, 15, 16, 17, 2,
374
+ 0, 19, 0, 20, 0, 22, 23, 21,
375
+ 25, 26, 24, 29, 28, 30, 28, 27,
376
+ 33, 32, 34, 32, 31, 33, 32, 35,
377
+ 32, 31, 33, 32, 36, 32, 31, 38,
378
+ 37, 37, 0, 3, 39, 39, 0, 41,
379
+ 42, 40, 3, 0, 43, 0, 44, 0,
380
+ 45, 0, 46, 0, 47, 0, 48, 0,
381
+ 49, 0, 50, 0, 51, 0, 52, 0,
382
+ 53, 0, 54, 0, 55, 0, 56, 0,
383
+ 57, 0, 59, 60, 58, 62, 63, 61,
384
+ 0, 0, 0, 0, 64, 65, 66, 65,
385
+ 65, 68, 67, 64, 3, 69, 8, 69,
386
+ 0, 70, 0, 71, 0, 72, 0, 73,
387
+ 0, 74, 0, 75, 0, 76, 0, 77,
388
+ 0, 78, 0, 79, 0, 80, 0, 81,
389
+ 0, 82, 0, 83, 0, 84, 0, 85,
390
+ 0, 86, 0, 88, 87, 90, 89, 90,
391
+ 91, 92, 93, 94, 92, 95, 96, 97,
392
+ 98, 99, 100, 91, 89, 90, 101, 89,
393
+ 90, 102, 89, 90, 103, 89, 90, 104,
394
+ 89, 90, 105, 89, 90, 106, 89, 90,
395
+ 107, 89, 90, 108, 89, 90, 109, 89,
396
+ 90, 110, 89, 90, 111, 89, 90, 112,
397
+ 89, 90, 113, 89, 90, 114, 89, 90,
398
+ 115, 89, 117, 116, 118, 119, 120, 121,
399
+ 122, 123, 124, 125, 126, 127, 128, 129,
400
+ 130, 131, 116, 0, 132, 0, 133, 0,
401
+ 134, 0, 135, 0, 136, 0, 137, 0,
402
+ 138, 0, 139, 0, 141, 140, 143, 142,
403
+ 143, 144, 145, 146, 147, 145, 148, 149,
404
+ 150, 151, 152, 153, 154, 144, 142, 143,
405
+ 155, 142, 143, 156, 142, 143, 157, 142,
406
+ 143, 158, 142, 143, 159, 142, 143, 160,
407
+ 142, 143, 161, 142, 143, 162, 142, 143,
408
+ 163, 142, 143, 164, 142, 143, 165, 142,
409
+ 143, 166, 142, 143, 167, 142, 143, 168,
410
+ 142, 143, 169, 142, 143, 170, 142, 143,
411
+ 171, 142, 143, 172, 142, 143, 173, 142,
412
+ 143, 174, 142, 143, 175, 142, 143, 176,
413
+ 142, 143, 177, 142, 143, 178, 142, 143,
414
+ 179, 142, 143, 180, 142, 143, 181, 142,
415
+ 143, 182, 142, 143, 183, 142, 143, 184,
416
+ 142, 143, 185, 142, 143, 169, 142, 143,
417
+ 186, 142, 143, 187, 142, 143, 188, 142,
418
+ 143, 189, 142, 143, 190, 142, 143, 191,
419
+ 142, 143, 185, 142, 143, 192, 142, 143,
420
+ 193, 142, 143, 194, 142, 143, 195, 142,
421
+ 143, 196, 142, 143, 195, 142, 197, 143,
422
+ 142, 198, 143, 142, 143, 195, 142, 143,
423
+ 199, 142, 143, 195, 142, 200, 143, 201,
424
+ 142, 195, 143, 142, 143, 202, 142, 143,
425
+ 203, 142, 143, 204, 142, 143, 205, 142,
426
+ 143, 206, 142, 143, 207, 142, 143, 169,
427
+ 208, 142, 143, 209, 142, 143, 210, 142,
428
+ 143, 185, 142, 211, 212, 0, 213, 0,
429
+ 214, 0, 215, 0, 216, 0, 217, 0,
430
+ 218, 0, 219, 0, 221, 220, 223, 222,
431
+ 223, 224, 225, 226, 225, 227, 228, 229,
432
+ 230, 224, 222, 223, 231, 222, 223, 232,
433
+ 222, 223, 233, 222, 223, 234, 222, 223,
434
+ 235, 222, 223, 236, 222, 223, 237, 222,
435
+ 223, 238, 222, 223, 239, 222, 223, 240,
436
+ 222, 223, 241, 222, 223, 242, 222, 223,
437
+ 243, 222, 223, 244, 222, 223, 245, 222,
438
+ 223, 246, 222, 223, 247, 222, 223, 248,
439
+ 222, 223, 249, 222, 223, 250, 222, 223,
440
+ 251, 222, 223, 252, 222, 223, 253, 222,
441
+ 223, 254, 222, 223, 255, 222, 223, 256,
442
+ 222, 223, 257, 222, 223, 258, 222, 223,
443
+ 259, 222, 223, 260, 222, 223, 261, 222,
444
+ 223, 262, 222, 223, 263, 222, 223, 264,
445
+ 222, 223, 265, 222, 223, 266, 222, 223,
446
+ 267, 222, 223, 260, 222, 223, 268, 269,
447
+ 222, 223, 270, 222, 223, 271, 222, 223,
448
+ 272, 222, 223, 273, 222, 223, 274, 222,
449
+ 223, 260, 222, 223, 275, 222, 223, 276,
450
+ 222, 223, 277, 222, 223, 278, 222, 223,
451
+ 260, 222, 223, 279, 222, 223, 280, 222,
452
+ 223, 281, 222, 223, 282, 222, 223, 283,
453
+ 222, 223, 284, 222, 223, 285, 222, 223,
454
+ 261, 286, 222, 223, 287, 222, 223, 278,
455
+ 222, 288, 0, 289, 0, 290, 0, 291,
456
+ 0, 292, 0, 293, 0, 295, 294, 297,
457
+ 296, 297, 298, 299, 300, 299, 298, 296,
458
+ 297, 301, 296, 297, 302, 296, 297, 303,
459
+ 296, 297, 304, 296, 297, 305, 296, 297,
460
+ 306, 296, 297, 307, 296, 297, 308, 296,
461
+ 309, 0, 310, 0, 311, 0, 312, 0,
462
+ 313, 0, 312, 0, 314, 0, 315, 0,
463
+ 312, 0, 316, 0, 312, 0, 317, 318,
464
+ 0, 312, 0, 319, 0, 320, 0, 321,
465
+ 0, 322, 0, 323, 0, 324, 0, 325,
466
+ 326, 0, 328, 327, 330, 329, 330, 331,
467
+ 332, 333, 334, 332, 335, 336, 337, 338,
468
+ 339, 340, 341, 342, 331, 329, 330, 343,
469
+ 329, 330, 344, 329, 330, 345, 329, 330,
470
+ 346, 329, 330, 347, 329, 330, 348, 329,
471
+ 330, 349, 329, 330, 350, 329, 330, 351,
472
+ 329, 330, 352, 329, 330, 353, 329, 330,
473
+ 354, 329, 330, 355, 329, 330, 356, 329,
474
+ 330, 357, 329, 330, 358, 329, 330, 359,
475
+ 329, 330, 360, 329, 330, 361, 329, 330,
476
+ 362, 329, 330, 363, 329, 330, 364, 329,
477
+ 330, 365, 329, 330, 366, 329, 330, 367,
478
+ 329, 330, 368, 329, 330, 369, 329, 330,
479
+ 370, 329, 330, 371, 329, 330, 372, 329,
480
+ 330, 373, 329, 330, 357, 329, 330, 374,
481
+ 329, 330, 375, 329, 330, 376, 329, 330,
482
+ 377, 329, 330, 378, 329, 330, 379, 329,
483
+ 330, 373, 329, 330, 380, 329, 330, 381,
484
+ 329, 330, 382, 329, 330, 383, 329, 330,
485
+ 384, 329, 330, 385, 329, 330, 373, 329,
486
+ 330, 386, 329, 330, 387, 329, 330, 388,
487
+ 329, 330, 389, 329, 330, 390, 329, 330,
488
+ 389, 329, 391, 330, 329, 392, 330, 329,
489
+ 330, 389, 329, 330, 393, 329, 330, 389,
490
+ 329, 394, 330, 395, 329, 389, 330, 329,
491
+ 330, 396, 329, 330, 397, 329, 330, 398,
492
+ 329, 330, 399, 329, 330, 400, 329, 330,
493
+ 401, 329, 330, 357, 402, 329, 330, 403,
494
+ 329, 330, 404, 329, 330, 373, 329, 405,
495
+ 0, 406, 0, 85, 0, 407, 408, 407,
496
+ 0, 411, 410, 412, 413, 410, 409, 0,
497
+ 415, 416, 414, 0, 415, 414, 411, 417,
498
+ 415, 416, 417, 414, 411, 418, 419, 420,
499
+ 421, 422, 423, 424, 425, 426, 427, 428,
500
+ 429, 430, 431, 432, 418, 0, 90, 433,
501
+ 89, 90, 434, 89, 90, 435, 89, 90,
502
+ 436, 89, 90, 437, 89, 90, 438, 89,
503
+ 90, 439, 89, 90, 115, 89, 90, 440,
504
+ 89, 90, 441, 89, 90, 442, 89, 90,
505
+ 443, 89, 90, 444, 89, 90, 443, 89,
506
+ 445, 90, 89, 446, 90, 89, 90, 443,
507
+ 89, 90, 447, 89, 90, 443, 89, 448,
508
+ 90, 449, 89, 443, 90, 89, 90, 450,
509
+ 89, 90, 451, 89, 90, 452, 89, 90,
510
+ 453, 89, 90, 454, 89, 90, 439, 89,
511
+ 455, 0
512
+ ]
513
+
514
+ class << self
515
+ attr_accessor :_lexer_trans_targs
516
+ private :_lexer_trans_targs, :_lexer_trans_targs=
517
+ end
518
+ self._lexer_trans_targs = [
519
+ 0, 2, 4, 4, 5, 15, 17, 31,
520
+ 34, 37, 73, 146, 234, 238, 240, 243,
521
+ 245, 329, 3, 6, 7, 8, 9, 8,
522
+ 8, 9, 8, 10, 10, 10, 11, 10,
523
+ 10, 10, 11, 12, 13, 14, 4, 14,
524
+ 15, 4, 16, 18, 19, 20, 21, 22,
525
+ 23, 24, 25, 26, 27, 28, 29, 30,
526
+ 362, 32, 33, 4, 16, 33, 4, 16,
527
+ 35, 36, 4, 35, 34, 36, 38, 39,
528
+ 40, 41, 42, 43, 44, 45, 46, 47,
529
+ 48, 49, 50, 51, 52, 53, 54, 55,
530
+ 56, 55, 56, 56, 4, 57, 71, 335,
531
+ 343, 347, 349, 352, 354, 58, 59, 60,
532
+ 61, 62, 63, 64, 65, 66, 67, 68,
533
+ 69, 70, 4, 72, 4, 4, 5, 15,
534
+ 17, 31, 34, 37, 73, 146, 234, 238,
535
+ 240, 243, 245, 329, 74, 75, 76, 77,
536
+ 78, 79, 80, 81, 82, 83, 82, 83,
537
+ 83, 4, 84, 98, 99, 116, 123, 127,
538
+ 129, 132, 134, 85, 86, 87, 88, 89,
539
+ 90, 91, 92, 93, 94, 95, 96, 97,
540
+ 4, 72, 100, 101, 102, 103, 104, 105,
541
+ 106, 107, 108, 109, 110, 111, 112, 113,
542
+ 114, 115, 117, 118, 119, 120, 121, 122,
543
+ 124, 125, 126, 98, 128, 130, 131, 133,
544
+ 135, 136, 137, 138, 139, 140, 141, 142,
545
+ 143, 144, 145, 147, 217, 148, 149, 150,
546
+ 151, 152, 153, 154, 155, 156, 155, 156,
547
+ 156, 4, 157, 171, 188, 195, 207, 158,
548
+ 159, 160, 161, 162, 163, 164, 165, 166,
549
+ 167, 168, 169, 170, 4, 172, 173, 174,
550
+ 175, 176, 177, 178, 179, 180, 181, 182,
551
+ 183, 184, 185, 186, 187, 72, 189, 190,
552
+ 191, 192, 193, 194, 196, 202, 197, 198,
553
+ 199, 200, 201, 203, 204, 205, 206, 208,
554
+ 209, 210, 211, 212, 213, 214, 215, 216,
555
+ 218, 219, 220, 221, 222, 223, 224, 225,
556
+ 224, 225, 225, 4, 226, 227, 228, 229,
557
+ 230, 231, 232, 233, 72, 235, 236, 237,
558
+ 31, 239, 241, 242, 244, 246, 247, 248,
559
+ 249, 250, 251, 252, 253, 254, 326, 255,
560
+ 256, 255, 256, 256, 4, 257, 271, 272,
561
+ 289, 296, 303, 307, 309, 312, 314, 258,
562
+ 259, 260, 261, 262, 263, 264, 265, 266,
563
+ 267, 268, 269, 270, 4, 72, 273, 274,
564
+ 275, 276, 277, 278, 279, 280, 281, 282,
565
+ 283, 284, 285, 286, 287, 288, 290, 291,
566
+ 292, 293, 294, 295, 297, 298, 299, 300,
567
+ 301, 302, 304, 305, 306, 271, 308, 310,
568
+ 311, 313, 315, 316, 317, 318, 319, 320,
569
+ 321, 322, 323, 324, 325, 327, 328, 329,
570
+ 330, 331, 333, 334, 332, 330, 331, 332,
571
+ 330, 333, 334, 5, 15, 17, 31, 34,
572
+ 37, 73, 146, 234, 238, 240, 243, 245,
573
+ 329, 336, 337, 338, 339, 340, 341, 342,
574
+ 344, 345, 346, 71, 348, 350, 351, 353,
575
+ 355, 356, 357, 358, 359, 360, 361, 0
576
+ ]
577
+
578
+ class << self
579
+ attr_accessor :_lexer_trans_actions
580
+ private :_lexer_trans_actions, :_lexer_trans_actions=
581
+ end
582
+ self._lexer_trans_actions = [
583
+ 43, 0, 0, 54, 3, 1, 0, 29,
584
+ 1, 29, 29, 29, 29, 29, 29, 29,
585
+ 29, 35, 0, 0, 0, 7, 139, 48,
586
+ 0, 102, 9, 5, 45, 134, 45, 0,
587
+ 33, 122, 33, 33, 0, 11, 106, 0,
588
+ 0, 114, 25, 0, 0, 0, 0, 0,
589
+ 0, 0, 0, 0, 0, 0, 0, 0,
590
+ 0, 0, 57, 149, 126, 0, 110, 23,
591
+ 0, 27, 118, 27, 51, 0, 0, 0,
592
+ 0, 0, 0, 0, 0, 0, 0, 0,
593
+ 0, 0, 0, 0, 0, 0, 0, 57,
594
+ 144, 0, 54, 0, 78, 33, 84, 84,
595
+ 84, 84, 84, 84, 84, 0, 0, 0,
596
+ 0, 0, 0, 0, 0, 0, 0, 0,
597
+ 0, 0, 19, 19, 31, 130, 60, 57,
598
+ 31, 63, 57, 63, 63, 63, 63, 63,
599
+ 63, 63, 63, 66, 0, 0, 0, 0,
600
+ 0, 0, 0, 0, 57, 144, 0, 54,
601
+ 0, 72, 33, 84, 84, 84, 84, 84,
602
+ 84, 84, 84, 0, 0, 0, 0, 0,
603
+ 0, 0, 0, 0, 0, 0, 0, 0,
604
+ 15, 15, 0, 0, 0, 0, 0, 0,
605
+ 0, 0, 0, 0, 0, 0, 0, 0,
606
+ 0, 0, 0, 0, 0, 0, 0, 0,
607
+ 0, 0, 0, 0, 0, 0, 0, 0,
608
+ 0, 0, 0, 0, 0, 0, 0, 0,
609
+ 0, 0, 0, 0, 0, 0, 0, 0,
610
+ 0, 0, 0, 0, 57, 144, 0, 54,
611
+ 0, 69, 33, 84, 84, 84, 84, 0,
612
+ 0, 0, 0, 0, 0, 0, 0, 0,
613
+ 0, 0, 0, 0, 13, 0, 0, 0,
614
+ 0, 0, 0, 0, 0, 0, 0, 0,
615
+ 0, 0, 0, 0, 0, 13, 0, 0,
616
+ 0, 0, 0, 0, 0, 0, 0, 0,
617
+ 0, 0, 0, 0, 0, 0, 0, 0,
618
+ 0, 0, 0, 0, 0, 0, 0, 0,
619
+ 0, 0, 0, 0, 0, 0, 57, 144,
620
+ 0, 54, 0, 81, 84, 0, 0, 0,
621
+ 0, 0, 0, 0, 21, 0, 0, 0,
622
+ 0, 0, 0, 0, 0, 0, 0, 0,
623
+ 0, 0, 0, 0, 0, 0, 0, 57,
624
+ 144, 0, 54, 0, 75, 33, 84, 84,
625
+ 84, 84, 84, 84, 84, 84, 84, 0,
626
+ 0, 0, 0, 0, 0, 0, 0, 0,
627
+ 0, 0, 0, 0, 17, 17, 0, 0,
628
+ 0, 0, 0, 0, 0, 0, 0, 0,
629
+ 0, 0, 0, 0, 0, 0, 0, 0,
630
+ 0, 0, 0, 0, 0, 0, 0, 0,
631
+ 0, 0, 0, 0, 0, 0, 0, 0,
632
+ 0, 0, 0, 0, 0, 0, 0, 0,
633
+ 0, 0, 0, 0, 0, 0, 0, 0,
634
+ 0, 37, 37, 54, 37, 87, 0, 0,
635
+ 39, 0, 0, 93, 90, 41, 96, 90,
636
+ 96, 96, 96, 96, 96, 96, 96, 96,
637
+ 99, 0, 0, 0, 0, 0, 0, 0,
638
+ 0, 0, 0, 0, 0, 0, 0, 0,
639
+ 0, 0, 0, 0, 0, 0, 0, 0
640
+ ]
641
+
642
+ class << self
643
+ attr_accessor :_lexer_eof_actions
644
+ private :_lexer_eof_actions, :_lexer_eof_actions=
645
+ end
646
+ self._lexer_eof_actions = [
647
+ 0, 43, 43, 43, 43, 43, 43, 43,
648
+ 43, 43, 43, 43, 43, 43, 43, 43,
649
+ 43, 43, 43, 43, 43, 43, 43, 43,
650
+ 43, 43, 43, 43, 43, 43, 43, 43,
651
+ 43, 43, 43, 43, 43, 43, 43, 43,
652
+ 43, 43, 43, 43, 43, 43, 43, 43,
653
+ 43, 43, 43, 43, 43, 43, 43, 43,
654
+ 43, 43, 43, 43, 43, 43, 43, 43,
655
+ 43, 43, 43, 43, 43, 43, 43, 43,
656
+ 43, 43, 43, 43, 43, 43, 43, 43,
657
+ 43, 43, 43, 43, 43, 43, 43, 43,
658
+ 43, 43, 43, 43, 43, 43, 43, 43,
659
+ 43, 43, 43, 43, 43, 43, 43, 43,
660
+ 43, 43, 43, 43, 43, 43, 43, 43,
661
+ 43, 43, 43, 43, 43, 43, 43, 43,
662
+ 43, 43, 43, 43, 43, 43, 43, 43,
663
+ 43, 43, 43, 43, 43, 43, 43, 43,
664
+ 43, 43, 43, 43, 43, 43, 43, 43,
665
+ 43, 43, 43, 43, 43, 43, 43, 43,
666
+ 43, 43, 43, 43, 43, 43, 43, 43,
667
+ 43, 43, 43, 43, 43, 43, 43, 43,
668
+ 43, 43, 43, 43, 43, 43, 43, 43,
669
+ 43, 43, 43, 43, 43, 43, 43, 43,
670
+ 43, 43, 43, 43, 43, 43, 43, 43,
671
+ 43, 43, 43, 43, 43, 43, 43, 43,
672
+ 43, 43, 43, 43, 43, 43, 43, 43,
673
+ 43, 43, 43, 43, 43, 43, 43, 43,
674
+ 43, 43, 43, 43, 43, 43, 43, 43,
675
+ 43, 43, 43, 43, 43, 43, 43, 43,
676
+ 43, 43, 43, 43, 43, 43, 43, 43,
677
+ 43, 43, 43, 43, 43, 43, 43, 43,
678
+ 43, 43, 43, 43, 43, 43, 43, 43,
679
+ 43, 43, 43, 43, 43, 43, 43, 43,
680
+ 43, 43, 43, 43, 43, 43, 43, 43,
681
+ 43, 43, 43, 43, 43, 43, 43, 43,
682
+ 43, 43, 43, 43, 43, 43, 43, 43,
683
+ 43, 43, 43, 43, 43, 43, 43, 43,
684
+ 43, 43, 43, 43, 43, 43, 43, 43,
685
+ 43, 43, 43, 43, 43, 43, 43, 43,
686
+ 43, 43, 43, 43, 43, 43, 43, 43,
687
+ 43, 43, 43, 43, 43, 43, 43, 43,
688
+ 43, 43, 43, 43, 43, 43, 43, 43,
689
+ 43, 43, 43, 43, 43, 43, 43, 43,
690
+ 43, 43, 43, 43, 43, 43, 43, 43,
691
+ 43, 43, 43, 43, 43, 43, 43, 43,
692
+ 43, 43, 43
693
+ ]
694
+
695
+ class << self
696
+ attr_accessor :lexer_start
697
+ end
698
+ self.lexer_start = 1;
699
+ class << self
700
+ attr_accessor :lexer_first_final
701
+ end
702
+ self.lexer_first_final = 362;
703
+ class << self
704
+ attr_accessor :lexer_error
705
+ end
706
+ self.lexer_error = 0;
707
+
708
+ class << self
709
+ attr_accessor :lexer_en_main
710
+ end
711
+ self.lexer_en_main = 1;
712
+
713
+
714
+ # line 130 "ragel/i18n/sv.rb.rl"
715
+ end
716
+
717
+ def scan(data)
718
+ data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably
719
+ eof = pe = data.length
720
+
721
+ @line_number = 1
722
+ @last_newline = 0
723
+
724
+
725
+ # line 726 "lib/gherkin/lexer/sv.rb"
726
+ begin
727
+ p ||= 0
728
+ pe ||= data.length
729
+ cs = lexer_start
730
+ end
731
+
732
+ # line 140 "ragel/i18n/sv.rb.rl"
733
+
734
+ # line 735 "lib/gherkin/lexer/sv.rb"
735
+ begin
736
+ _klen, _trans, _keys, _acts, _nacts = nil
737
+ _goto_level = 0
738
+ _resume = 10
739
+ _eof_trans = 15
740
+ _again = 20
741
+ _test_eof = 30
742
+ _out = 40
743
+ while true
744
+ _trigger_goto = false
745
+ if _goto_level <= 0
746
+ if p == pe
747
+ _goto_level = _test_eof
748
+ next
749
+ end
750
+ if cs == 0
751
+ _goto_level = _out
752
+ next
753
+ end
754
+ end
755
+ if _goto_level <= _resume
756
+ _keys = _lexer_key_offsets[cs]
757
+ _trans = _lexer_index_offsets[cs]
758
+ _klen = _lexer_single_lengths[cs]
759
+ _break_match = false
760
+
761
+ begin
762
+ if _klen > 0
763
+ _lower = _keys
764
+ _upper = _keys + _klen - 1
765
+
766
+ loop do
767
+ break if _upper < _lower
768
+ _mid = _lower + ( (_upper - _lower) >> 1 )
769
+
770
+ if data[p].ord < _lexer_trans_keys[_mid]
771
+ _upper = _mid - 1
772
+ elsif data[p].ord > _lexer_trans_keys[_mid]
773
+ _lower = _mid + 1
774
+ else
775
+ _trans += (_mid - _keys)
776
+ _break_match = true
777
+ break
778
+ end
779
+ end # loop
780
+ break if _break_match
781
+ _keys += _klen
782
+ _trans += _klen
783
+ end
784
+ _klen = _lexer_range_lengths[cs]
785
+ if _klen > 0
786
+ _lower = _keys
787
+ _upper = _keys + (_klen << 1) - 2
788
+ loop do
789
+ break if _upper < _lower
790
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1)
791
+ if data[p].ord < _lexer_trans_keys[_mid]
792
+ _upper = _mid - 2
793
+ elsif data[p].ord > _lexer_trans_keys[_mid+1]
794
+ _lower = _mid + 2
795
+ else
796
+ _trans += ((_mid - _keys) >> 1)
797
+ _break_match = true
798
+ break
799
+ end
800
+ end # loop
801
+ break if _break_match
802
+ _trans += _klen
803
+ end
804
+ end while false
805
+ _trans = _lexer_indicies[_trans]
806
+ cs = _lexer_trans_targs[_trans]
807
+ if _lexer_trans_actions[_trans] != 0
808
+ _acts = _lexer_trans_actions[_trans]
809
+ _nacts = _lexer_actions[_acts]
810
+ _acts += 1
811
+ while _nacts > 0
812
+ _nacts -= 1
813
+ _acts += 1
814
+ case _lexer_actions[_acts - 1]
815
+ when 0 then
816
+ # line 11 "ragel/i18n/sv.rb.rl"
817
+ begin
818
+
819
+ @content_start = p
820
+ @current_line = @line_number
821
+ @start_col = p - @last_newline - "#{@keyword}:".length
822
+ end
823
+ when 1 then
824
+ # line 17 "ragel/i18n/sv.rb.rl"
825
+ begin
826
+
827
+ @current_line = @line_number
828
+ @start_col = p - @last_newline
829
+ end
830
+ when 2 then
831
+ # line 22 "ragel/i18n/sv.rb.rl"
832
+ begin
833
+
834
+ @content_start = p
835
+ end
836
+ when 3 then
837
+ # line 26 "ragel/i18n/sv.rb.rl"
838
+ begin
839
+
840
+ @docstring_content_type_start = p
841
+ end
842
+ when 4 then
843
+ # line 29 "ragel/i18n/sv.rb.rl"
844
+ begin
845
+
846
+ @docstring_content_type_end = p
847
+ end
848
+ when 5 then
849
+ # line 33 "ragel/i18n/sv.rb.rl"
850
+ begin
851
+
852
+ con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""'))
853
+ con_type = utf8_pack(data[@docstring_content_type_start...@docstring_content_type_end]).strip
854
+ @listener.doc_string(con_type, con, @current_line)
855
+ end
856
+ when 6 then
857
+ # line 38 "ragel/i18n/sv.rb.rl"
858
+ begin
859
+
860
+ p = store_keyword_content(:feature, data, p, eof)
861
+ end
862
+ when 7 then
863
+ # line 42 "ragel/i18n/sv.rb.rl"
864
+ begin
865
+
866
+ p = store_keyword_content(:background, data, p, eof)
867
+ end
868
+ when 8 then
869
+ # line 46 "ragel/i18n/sv.rb.rl"
870
+ begin
871
+
872
+ p = store_keyword_content(:scenario, data, p, eof)
873
+ end
874
+ when 9 then
875
+ # line 50 "ragel/i18n/sv.rb.rl"
876
+ begin
877
+
878
+ p = store_keyword_content(:scenario_outline, data, p, eof)
879
+ end
880
+ when 10 then
881
+ # line 54 "ragel/i18n/sv.rb.rl"
882
+ begin
883
+
884
+ p = store_keyword_content(:examples, data, p, eof)
885
+ end
886
+ when 11 then
887
+ # line 58 "ragel/i18n/sv.rb.rl"
888
+ begin
889
+
890
+ con = utf8_pack(data[@content_start...p]).strip
891
+ @listener.step(@keyword, con, @current_line)
892
+ end
893
+ when 12 then
894
+ # line 63 "ragel/i18n/sv.rb.rl"
895
+ begin
896
+
897
+ con = utf8_pack(data[@content_start...p]).strip
898
+ @listener.comment(con, @line_number)
899
+ @keyword_start = nil
900
+ end
901
+ when 13 then
902
+ # line 69 "ragel/i18n/sv.rb.rl"
903
+ begin
904
+
905
+ con = utf8_pack(data[@content_start...p]).strip
906
+ @listener.tag(con, @current_line)
907
+ @keyword_start = nil
908
+ end
909
+ when 14 then
910
+ # line 75 "ragel/i18n/sv.rb.rl"
911
+ begin
912
+
913
+ @line_number += 1
914
+ end
915
+ when 15 then
916
+ # line 79 "ragel/i18n/sv.rb.rl"
917
+ begin
918
+
919
+ @last_newline = p + 1
920
+ end
921
+ when 16 then
922
+ # line 83 "ragel/i18n/sv.rb.rl"
923
+ begin
924
+
925
+ @keyword_start ||= p
926
+ end
927
+ when 17 then
928
+ # line 87 "ragel/i18n/sv.rb.rl"
929
+ begin
930
+
931
+ @keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'')
932
+ @keyword_start = nil
933
+ end
934
+ when 18 then
935
+ # line 92 "ragel/i18n/sv.rb.rl"
936
+ begin
937
+
938
+ @next_keyword_start = p
939
+ end
940
+ when 19 then
941
+ # line 96 "ragel/i18n/sv.rb.rl"
942
+ begin
943
+
944
+ p = p - 1
945
+ current_row = []
946
+ @current_line = @line_number
947
+ end
948
+ when 20 then
949
+ # line 102 "ragel/i18n/sv.rb.rl"
950
+ begin
951
+
952
+ @content_start = p
953
+ end
954
+ when 21 then
955
+ # line 106 "ragel/i18n/sv.rb.rl"
956
+ begin
957
+
958
+ con = utf8_pack(data[@content_start...p]).strip
959
+ current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\")
960
+ end
961
+ when 22 then
962
+ # line 111 "ragel/i18n/sv.rb.rl"
963
+ begin
964
+
965
+ @listener.row(current_row, @current_line)
966
+ end
967
+ when 23 then
968
+ # line 115 "ragel/i18n/sv.rb.rl"
969
+ begin
970
+
971
+ if cs < lexer_first_final
972
+ content = current_line_content(data, p)
973
+ raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information." % [@line_number, content])
974
+ else
975
+ @listener.eof
976
+ end
977
+ end
978
+ # line 979 "lib/gherkin/lexer/sv.rb"
979
+ end # action switch
980
+ end
981
+ end
982
+ if _trigger_goto
983
+ next
984
+ end
985
+ end
986
+ if _goto_level <= _again
987
+ if cs == 0
988
+ _goto_level = _out
989
+ next
990
+ end
991
+ p += 1
992
+ if p != pe
993
+ _goto_level = _resume
994
+ next
995
+ end
996
+ end
997
+ if _goto_level <= _test_eof
998
+ if p == eof
999
+ __acts = _lexer_eof_actions[cs]
1000
+ __nacts = _lexer_actions[__acts]
1001
+ __acts += 1
1002
+ while __nacts > 0
1003
+ __nacts -= 1
1004
+ __acts += 1
1005
+ case _lexer_actions[__acts - 1]
1006
+ when 23 then
1007
+ # line 115 "ragel/i18n/sv.rb.rl"
1008
+ begin
1009
+
1010
+ if cs < lexer_first_final
1011
+ content = current_line_content(data, p)
1012
+ raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information." % [@line_number, content])
1013
+ else
1014
+ @listener.eof
1015
+ end
1016
+ end
1017
+ # line 1018 "lib/gherkin/lexer/sv.rb"
1018
+ end # eof action switch
1019
+ end
1020
+ if _trigger_goto
1021
+ next
1022
+ end
1023
+ end
1024
+ end
1025
+ if _goto_level <= _out
1026
+ break
1027
+ end
1028
+ end
1029
+ end
1030
+
1031
+ # line 141 "ragel/i18n/sv.rb.rl"
1032
+ end
1033
+
1034
+ def unindent(startcol, text)
1035
+ text.gsub(/^[\t ]{0,#{startcol}}/, "")
1036
+ end
1037
+
1038
+ def store_keyword_content(event, data, p, eof)
1039
+ end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
1040
+ content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
1041
+ content_lines = content.split("\n")
1042
+ name = content_lines.shift || ""
1043
+ name.strip!
1044
+ description = content_lines.join("\n")
1045
+ @listener.__send__(event, @keyword, name, description, @current_line)
1046
+ @next_keyword_start ? @next_keyword_start - 1 : p
1047
+ ensure
1048
+ @next_keyword_start = nil
1049
+ end
1050
+
1051
+ def current_line_content(data, p)
1052
+ rest = data[@last_newline..-1]
1053
+ utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
1054
+ end
1055
+
1056
+ if (RUBY_VERSION =~ /^1\.9|2\.0/)
1057
+ def utf8_pack(array)
1058
+ array.pack("c*").force_encoding("UTF-8")
1059
+ end
1060
+ else
1061
+ def utf8_pack(array)
1062
+ array.pack("c*")
1063
+ end
1064
+ end
1065
+ end
1066
+ end
1067
+ end