gherkin 2.4.18 → 2.4.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. data/Gemfile.lock +6 -7
  2. data/History.md +9 -0
  3. data/README.md +2 -2
  4. data/ext/gherkin_lexer_ar/extconf.rb +6 -0
  5. data/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +1428 -0
  6. data/ext/gherkin_lexer_bg/extconf.rb +6 -0
  7. data/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +1654 -0
  8. data/ext/gherkin_lexer_ca/extconf.rb +6 -0
  9. data/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +1580 -0
  10. data/ext/gherkin_lexer_cs/extconf.rb +6 -0
  11. data/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +1426 -0
  12. data/ext/gherkin_lexer_cy_gb/extconf.rb +6 -0
  13. data/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +1281 -0
  14. data/ext/gherkin_lexer_da/extconf.rb +6 -0
  15. data/ext/gherkin_lexer_da/gherkin_lexer_da.c +1297 -0
  16. data/ext/gherkin_lexer_de/extconf.rb +6 -0
  17. data/ext/gherkin_lexer_de/gherkin_lexer_de.c +1414 -0
  18. data/ext/gherkin_lexer_en/extconf.rb +6 -0
  19. data/ext/gherkin_lexer_en/gherkin_lexer_en.c +1264 -0
  20. data/ext/gherkin_lexer_en_au/extconf.rb +6 -0
  21. data/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +1225 -0
  22. data/ext/gherkin_lexer_en_lol/extconf.rb +6 -0
  23. data/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +1174 -0
  24. data/ext/gherkin_lexer_en_pirate/extconf.rb +6 -0
  25. data/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +1470 -0
  26. data/ext/gherkin_lexer_en_scouse/extconf.rb +6 -0
  27. data/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +1631 -0
  28. data/ext/gherkin_lexer_en_tx/extconf.rb +6 -0
  29. data/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +1264 -0
  30. data/ext/gherkin_lexer_eo/extconf.rb +6 -0
  31. data/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +1240 -0
  32. data/ext/gherkin_lexer_es/extconf.rb +6 -0
  33. data/ext/gherkin_lexer_es/gherkin_lexer_es.c +1379 -0
  34. data/ext/gherkin_lexer_et/extconf.rb +6 -0
  35. data/ext/gherkin_lexer_et/gherkin_lexer_et.c +1235 -0
  36. data/ext/gherkin_lexer_fi/extconf.rb +6 -0
  37. data/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +1214 -0
  38. data/ext/gherkin_lexer_fr/extconf.rb +6 -0
  39. data/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +1450 -0
  40. data/ext/gherkin_lexer_he/extconf.rb +6 -0
  41. data/ext/gherkin_lexer_he/gherkin_lexer_he.c +1373 -0
  42. data/ext/gherkin_lexer_hr/extconf.rb +6 -0
  43. data/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +1322 -0
  44. data/ext/gherkin_lexer_hu/extconf.rb +6 -0
  45. data/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +1373 -0
  46. data/ext/gherkin_lexer_id/extconf.rb +6 -0
  47. data/ext/gherkin_lexer_id/gherkin_lexer_id.c +1207 -0
  48. data/ext/gherkin_lexer_is/extconf.rb +6 -0
  49. data/ext/gherkin_lexer_is/gherkin_lexer_is.c +1375 -0
  50. data/ext/gherkin_lexer_it/extconf.rb +6 -0
  51. data/ext/gherkin_lexer_it/gherkin_lexer_it.c +1331 -0
  52. data/ext/gherkin_lexer_ja/extconf.rb +6 -0
  53. data/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +1698 -0
  54. data/ext/gherkin_lexer_ko/extconf.rb +6 -0
  55. data/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +1359 -0
  56. data/ext/gherkin_lexer_lt/extconf.rb +6 -0
  57. data/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +1294 -0
  58. data/ext/gherkin_lexer_lu/extconf.rb +6 -0
  59. data/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +1388 -0
  60. data/ext/gherkin_lexer_lv/extconf.rb +6 -0
  61. data/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +1424 -0
  62. data/ext/gherkin_lexer_nl/extconf.rb +6 -0
  63. data/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +1367 -0
  64. data/ext/gherkin_lexer_no/extconf.rb +6 -0
  65. data/ext/gherkin_lexer_no/gherkin_lexer_no.c +1310 -0
  66. data/ext/gherkin_lexer_pl/extconf.rb +6 -0
  67. data/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +1476 -0
  68. data/ext/gherkin_lexer_pt/extconf.rb +6 -0
  69. data/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +1326 -0
  70. data/ext/gherkin_lexer_ro/extconf.rb +6 -0
  71. data/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +1424 -0
  72. data/ext/gherkin_lexer_ru/extconf.rb +6 -0
  73. data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +2056 -0
  74. data/ext/gherkin_lexer_sk/extconf.rb +6 -0
  75. data/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +1297 -0
  76. data/ext/gherkin_lexer_sr_cyrl/extconf.rb +6 -0
  77. data/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +2111 -0
  78. data/ext/gherkin_lexer_sr_latn/extconf.rb +6 -0
  79. data/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +1566 -0
  80. data/ext/gherkin_lexer_sv/extconf.rb +6 -0
  81. data/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +1323 -0
  82. data/ext/gherkin_lexer_tr/extconf.rb +6 -0
  83. data/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +1346 -0
  84. data/ext/gherkin_lexer_uk/extconf.rb +6 -0
  85. data/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +1940 -0
  86. data/ext/gherkin_lexer_uz/extconf.rb +6 -0
  87. data/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +1650 -0
  88. data/ext/gherkin_lexer_vi/extconf.rb +6 -0
  89. data/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +1457 -0
  90. data/ext/gherkin_lexer_zh_cn/extconf.rb +6 -0
  91. data/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +1222 -0
  92. data/ext/gherkin_lexer_zh_tw/extconf.rb +6 -0
  93. data/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +1264 -0
  94. data/gherkin.gemspec +9 -3
  95. data/lib/gherkin/formatter/filter_formatter.rb +6 -1
  96. data/lib/gherkin/rb_lexer/ar.rb +1162 -0
  97. data/lib/gherkin/rb_lexer/bg.rb +1374 -0
  98. data/lib/gherkin/rb_lexer/ca.rb +1304 -0
  99. data/lib/gherkin/rb_lexer/cs.rb +1156 -0
  100. data/lib/gherkin/rb_lexer/cy_gb.rb +1026 -0
  101. data/lib/gherkin/rb_lexer/da.rb +1040 -0
  102. data/lib/gherkin/rb_lexer/de.rb +1150 -0
  103. data/lib/gherkin/rb_lexer/en.rb +1008 -0
  104. data/lib/gherkin/rb_lexer/en_au.rb +972 -0
  105. data/lib/gherkin/rb_lexer/en_lol.rb +927 -0
  106. data/lib/gherkin/rb_lexer/en_pirate.rb +1204 -0
  107. data/lib/gherkin/rb_lexer/en_scouse.rb +1355 -0
  108. data/lib/gherkin/rb_lexer/en_tx.rb +1010 -0
  109. data/lib/gherkin/rb_lexer/eo.rb +989 -0
  110. data/lib/gherkin/rb_lexer/es.rb +1116 -0
  111. data/lib/gherkin/rb_lexer/et.rb +982 -0
  112. data/lib/gherkin/rb_lexer/fi.rb +963 -0
  113. data/lib/gherkin/rb_lexer/fr.rb +1184 -0
  114. data/lib/gherkin/rb_lexer/he.rb +1110 -0
  115. data/lib/gherkin/rb_lexer/hr.rb +1060 -0
  116. data/lib/gherkin/rb_lexer/hu.rb +1111 -0
  117. data/lib/gherkin/rb_lexer/id.rb +957 -0
  118. data/lib/gherkin/rb_lexer/is.rb +1114 -0
  119. data/lib/gherkin/rb_lexer/it.rb +1075 -0
  120. data/lib/gherkin/rb_lexer/ja.rb +1412 -0
  121. data/lib/gherkin/rb_lexer/ko.rb +1096 -0
  122. data/lib/gherkin/rb_lexer/lt.rb +1038 -0
  123. data/lib/gherkin/rb_lexer/lu.rb +1126 -0
  124. data/lib/gherkin/rb_lexer/lv.rb +1158 -0
  125. data/lib/gherkin/rb_lexer/nl.rb +1109 -0
  126. data/lib/gherkin/rb_lexer/no.rb +1052 -0
  127. data/lib/gherkin/rb_lexer/pl.rb +1208 -0
  128. data/lib/gherkin/rb_lexer/pt.rb +1066 -0
  129. data/lib/gherkin/rb_lexer/ro.rb +1155 -0
  130. data/lib/gherkin/rb_lexer/ru.rb +1747 -0
  131. data/lib/gherkin/rb_lexer/sk.rb +1040 -0
  132. data/lib/gherkin/rb_lexer/sr_cyrl.rb +1797 -0
  133. data/lib/gherkin/rb_lexer/sr_latn.rb +1288 -0
  134. data/lib/gherkin/rb_lexer/sv.rb +1064 -0
  135. data/lib/gherkin/rb_lexer/tr.rb +1086 -0
  136. data/lib/gherkin/rb_lexer/uk.rb +1640 -0
  137. data/lib/gherkin/rb_lexer/uz.rb +1370 -0
  138. data/lib/gherkin/rb_lexer/vi.rb +1190 -0
  139. data/lib/gherkin/rb_lexer/zh_cn.rb +968 -0
  140. data/lib/gherkin/rb_lexer/zh_tw.rb +1006 -0
  141. data/spec/gherkin/fixtures/examples_with_only_header.feature +14 -0
  142. data/spec/gherkin/formatter/filter_formatter_spec.rb +21 -0
  143. data/tasks/gems.rake +9 -1
  144. metadata +30 -39
  145. data/.gitignore +0 -13
  146. data/ikvm/.gitignore +0 -3
  147. data/java/.gitignore +0 -5
  148. data/java/src/main/java/gherkin/lexer/i18n/.gitignore +0 -1
  149. data/java/src/main/resources/gherkin/.gitignore +0 -1
  150. data/js/.gitignore +0 -1
  151. data/js/lib/gherkin/lexer/.gitignore +0 -1
  152. data/lib/.gitignore +0 -4
  153. data/lib/gherkin/rb_lexer/.gitignore +0 -1
  154. data/ragel/i18n/.gitignore +0 -1
  155. data/tasks/bench/generated/.gitignore +0 -1
@@ -0,0 +1,927 @@
1
+
2
+ # line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
3
+ require 'gherkin/lexer/i18n_lexer'
4
+
5
+ module Gherkin
6
+ module RbLexer
7
+ class En_lol #:nodoc:
8
+
9
+ # line 123 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
10
+
11
+
12
+ def initialize(listener)
13
+ @listener = listener
14
+
15
+ # line 16 "lib/gherkin/rb_lexer/en_lol.rb"
16
+ class << self
17
+ attr_accessor :_lexer_actions
18
+ private :_lexer_actions, :_lexer_actions=
19
+ end
20
+ self._lexer_actions = [
21
+ 0, 1, 0, 1, 1, 1, 2, 1,
22
+ 3, 1, 4, 1, 5, 1, 6, 1,
23
+ 7, 1, 8, 1, 9, 1, 10, 1,
24
+ 11, 1, 12, 1, 13, 1, 16, 1,
25
+ 17, 1, 18, 1, 19, 1, 20, 1,
26
+ 21, 1, 22, 1, 23, 2, 2, 18,
27
+ 2, 3, 4, 2, 13, 0, 2, 14,
28
+ 15, 2, 17, 0, 2, 17, 1, 2,
29
+ 17, 16, 2, 17, 19, 2, 18, 6,
30
+ 2, 18, 7, 2, 18, 8, 2, 18,
31
+ 9, 2, 18, 10, 2, 18, 16, 2,
32
+ 20, 21, 2, 22, 0, 2, 22, 1,
33
+ 2, 22, 16, 2, 22, 19, 3, 4,
34
+ 14, 15, 3, 5, 14, 15, 3, 11,
35
+ 14, 15, 3, 12, 14, 15, 3, 13,
36
+ 14, 15, 3, 14, 15, 18, 3, 17,
37
+ 14, 15, 4, 2, 14, 15, 18, 4,
38
+ 3, 4, 14, 15, 4, 17, 0, 14,
39
+ 15
40
+ ]
41
+
42
+ class << self
43
+ attr_accessor :_lexer_key_offsets
44
+ private :_lexer_key_offsets, :_lexer_key_offsets=
45
+ end
46
+ self._lexer_key_offsets = [
47
+ 0, 0, 19, 20, 21, 39, 40, 41,
48
+ 43, 45, 50, 55, 60, 65, 69, 73,
49
+ 75, 76, 77, 78, 79, 80, 81, 82,
50
+ 83, 84, 85, 86, 87, 88, 89, 90,
51
+ 91, 92, 94, 99, 106, 111, 112, 114,
52
+ 115, 116, 117, 132, 134, 136, 138, 140,
53
+ 142, 144, 146, 148, 150, 152, 154, 156,
54
+ 158, 160, 162, 180, 181, 182, 183, 184,
55
+ 185, 186, 187, 188, 189, 190, 197, 199,
56
+ 201, 203, 205, 207, 209, 210, 211, 212,
57
+ 213, 214, 215, 216, 217, 218, 219, 220,
58
+ 221, 222, 224, 225, 226, 227, 228, 229,
59
+ 230, 231, 232, 247, 249, 251, 253, 255,
60
+ 257, 259, 261, 263, 265, 267, 269, 271,
61
+ 273, 275, 277, 279, 281, 283, 285, 287,
62
+ 289, 291, 293, 295, 297, 299, 301, 303,
63
+ 305, 307, 309, 311, 313, 315, 317, 319,
64
+ 321, 323, 324, 325, 340, 342, 344, 346,
65
+ 348, 350, 352, 354, 356, 358, 360, 362,
66
+ 364, 366, 368, 370, 372, 375, 377, 379,
67
+ 381, 383, 385, 387, 389, 391, 393, 395,
68
+ 397, 399, 401, 403, 405, 407, 410, 412,
69
+ 414, 416, 418, 420, 422, 424, 426, 428,
70
+ 430, 431, 432, 433, 434, 435, 436, 437,
71
+ 438, 449, 451, 453, 455, 457, 459, 461,
72
+ 463, 465, 467, 469, 471, 473, 475, 477,
73
+ 479, 481, 483, 485, 487, 489, 491, 493,
74
+ 495, 497, 499, 501, 503, 506, 508, 510,
75
+ 512, 514, 516, 518, 520, 522, 524, 526,
76
+ 530, 536, 539, 541, 547, 565, 567, 569,
77
+ 571, 573, 575, 577, 579, 581, 583, 585,
78
+ 587, 589, 591, 593, 595, 597, 599, 602,
79
+ 604, 606, 608, 610, 612, 614, 616, 618,
80
+ 620, 622, 624, 625
81
+ ]
82
+
83
+ class << self
84
+ attr_accessor :_lexer_trans_keys
85
+ private :_lexer_trans_keys, :_lexer_trans_keys=
86
+ end
87
+ self._lexer_trans_keys = [
88
+ -17, 10, 32, 34, 35, 37, 42, 64,
89
+ 65, 66, 68, 69, 73, 77, 79, 87,
90
+ 124, 9, 13, -69, -65, 10, 32, 34,
91
+ 35, 37, 42, 64, 65, 66, 68, 69,
92
+ 73, 77, 79, 87, 124, 9, 13, 34,
93
+ 34, 10, 13, 10, 13, 10, 32, 34,
94
+ 9, 13, 10, 32, 34, 9, 13, 10,
95
+ 32, 34, 9, 13, 10, 32, 34, 9,
96
+ 13, 10, 32, 9, 13, 10, 32, 9,
97
+ 13, 10, 13, 10, 95, 70, 69, 65,
98
+ 84, 85, 82, 69, 95, 69, 78, 68,
99
+ 95, 37, 32, 10, 10, 13, 13, 32,
100
+ 64, 9, 10, 9, 10, 13, 32, 64,
101
+ 11, 12, 10, 32, 64, 9, 13, 78,
102
+ 52, 85, 58, 10, 10, 10, 32, 35,
103
+ 37, 42, 64, 65, 66, 68, 73, 77,
104
+ 79, 87, 9, 13, 10, 95, 10, 70,
105
+ 10, 69, 10, 65, 10, 84, 10, 85,
106
+ 10, 82, 10, 69, 10, 95, 10, 69,
107
+ 10, 78, 10, 68, 10, 95, 10, 37,
108
+ 10, 32, 10, 32, 34, 35, 37, 42,
109
+ 64, 65, 66, 68, 69, 73, 77, 79,
110
+ 87, 124, 9, 13, 69, 88, 65, 77,
111
+ 80, 76, 90, 58, 10, 10, 10, 32,
112
+ 35, 79, 124, 9, 13, 10, 72, 10,
113
+ 32, 10, 72, 10, 65, 10, 73, 10,
114
+ 58, 32, 67, 65, 78, 32, 72, 65,
115
+ 90, 73, 83, 72, 85, 78, 32, 58,
116
+ 83, 82, 83, 76, 89, 58, 10, 10,
117
+ 10, 32, 35, 37, 42, 64, 65, 66,
118
+ 68, 73, 77, 79, 87, 9, 13, 10,
119
+ 95, 10, 70, 10, 69, 10, 65, 10,
120
+ 84, 10, 85, 10, 82, 10, 69, 10,
121
+ 95, 10, 69, 10, 78, 10, 68, 10,
122
+ 95, 10, 37, 10, 32, 10, 78, 10,
123
+ 85, 10, 84, 10, 69, 10, 32, 10,
124
+ 67, 10, 65, 10, 78, 10, 32, 10,
125
+ 72, 10, 65, 10, 90, 10, 73, 10,
126
+ 83, 10, 72, 10, 85, 10, 78, 10,
127
+ 58, 10, 72, 10, 32, 10, 72, 10,
128
+ 65, 10, 73, 10, 10, 10, 32, 35,
129
+ 37, 42, 64, 65, 66, 68, 73, 77,
130
+ 79, 87, 9, 13, 10, 95, 10, 70,
131
+ 10, 69, 10, 65, 10, 84, 10, 85,
132
+ 10, 82, 10, 69, 10, 95, 10, 69,
133
+ 10, 78, 10, 68, 10, 95, 10, 37,
134
+ 10, 32, 10, 78, 10, 52, 85, 10,
135
+ 58, 10, 84, 10, 69, 10, 32, 10,
136
+ 67, 10, 65, 10, 78, 10, 32, 10,
137
+ 72, 10, 65, 10, 90, 10, 73, 10,
138
+ 83, 10, 72, 10, 85, 10, 78, 10,
139
+ 32, 58, 10, 83, 10, 82, 10, 83,
140
+ 10, 76, 10, 89, 10, 72, 10, 32,
141
+ 10, 72, 10, 65, 10, 73, 72, 32,
142
+ 72, 65, 73, 58, 10, 10, 10, 32,
143
+ 35, 37, 64, 66, 69, 77, 79, 9,
144
+ 13, 10, 95, 10, 70, 10, 69, 10,
145
+ 65, 10, 84, 10, 85, 10, 82, 10,
146
+ 69, 10, 95, 10, 69, 10, 78, 10,
147
+ 68, 10, 95, 10, 37, 10, 52, 10,
148
+ 58, 10, 88, 10, 65, 10, 77, 10,
149
+ 80, 10, 76, 10, 90, 10, 73, 10,
150
+ 83, 10, 72, 10, 85, 10, 78, 10,
151
+ 32, 58, 10, 83, 10, 82, 10, 83,
152
+ 10, 76, 10, 89, 10, 72, 10, 32,
153
+ 10, 72, 10, 65, 10, 73, 32, 124,
154
+ 9, 13, 10, 32, 92, 124, 9, 13,
155
+ 10, 92, 124, 10, 92, 10, 32, 92,
156
+ 124, 9, 13, 10, 32, 34, 35, 37,
157
+ 42, 64, 65, 66, 68, 69, 73, 77,
158
+ 79, 87, 124, 9, 13, 10, 78, 10,
159
+ 85, 10, 84, 10, 69, 10, 32, 10,
160
+ 67, 10, 65, 10, 78, 10, 32, 10,
161
+ 72, 10, 65, 10, 90, 10, 73, 10,
162
+ 83, 10, 72, 10, 85, 10, 78, 10,
163
+ 32, 58, 10, 83, 10, 82, 10, 83,
164
+ 10, 76, 10, 89, 10, 58, 10, 72,
165
+ 10, 32, 10, 72, 10, 65, 10, 73,
166
+ 84, 0
167
+ ]
168
+
169
+ class << self
170
+ attr_accessor :_lexer_single_lengths
171
+ private :_lexer_single_lengths, :_lexer_single_lengths=
172
+ end
173
+ self._lexer_single_lengths = [
174
+ 0, 17, 1, 1, 16, 1, 1, 2,
175
+ 2, 3, 3, 3, 3, 2, 2, 2,
176
+ 1, 1, 1, 1, 1, 1, 1, 1,
177
+ 1, 1, 1, 1, 1, 1, 1, 1,
178
+ 1, 2, 3, 5, 3, 1, 2, 1,
179
+ 1, 1, 13, 2, 2, 2, 2, 2,
180
+ 2, 2, 2, 2, 2, 2, 2, 2,
181
+ 2, 2, 16, 1, 1, 1, 1, 1,
182
+ 1, 1, 1, 1, 1, 5, 2, 2,
183
+ 2, 2, 2, 2, 1, 1, 1, 1,
184
+ 1, 1, 1, 1, 1, 1, 1, 1,
185
+ 1, 2, 1, 1, 1, 1, 1, 1,
186
+ 1, 1, 13, 2, 2, 2, 2, 2,
187
+ 2, 2, 2, 2, 2, 2, 2, 2,
188
+ 2, 2, 2, 2, 2, 2, 2, 2,
189
+ 2, 2, 2, 2, 2, 2, 2, 2,
190
+ 2, 2, 2, 2, 2, 2, 2, 2,
191
+ 2, 1, 1, 13, 2, 2, 2, 2,
192
+ 2, 2, 2, 2, 2, 2, 2, 2,
193
+ 2, 2, 2, 2, 3, 2, 2, 2,
194
+ 2, 2, 2, 2, 2, 2, 2, 2,
195
+ 2, 2, 2, 2, 2, 3, 2, 2,
196
+ 2, 2, 2, 2, 2, 2, 2, 2,
197
+ 1, 1, 1, 1, 1, 1, 1, 1,
198
+ 9, 2, 2, 2, 2, 2, 2, 2,
199
+ 2, 2, 2, 2, 2, 2, 2, 2,
200
+ 2, 2, 2, 2, 2, 2, 2, 2,
201
+ 2, 2, 2, 2, 3, 2, 2, 2,
202
+ 2, 2, 2, 2, 2, 2, 2, 2,
203
+ 4, 3, 2, 4, 16, 2, 2, 2,
204
+ 2, 2, 2, 2, 2, 2, 2, 2,
205
+ 2, 2, 2, 2, 2, 2, 3, 2,
206
+ 2, 2, 2, 2, 2, 2, 2, 2,
207
+ 2, 2, 1, 0
208
+ ]
209
+
210
+ class << self
211
+ attr_accessor :_lexer_range_lengths
212
+ private :_lexer_range_lengths, :_lexer_range_lengths=
213
+ end
214
+ self._lexer_range_lengths = [
215
+ 0, 1, 0, 0, 1, 0, 0, 0,
216
+ 0, 1, 1, 1, 1, 1, 1, 0,
217
+ 0, 0, 0, 0, 0, 0, 0, 0,
218
+ 0, 0, 0, 0, 0, 0, 0, 0,
219
+ 0, 0, 1, 1, 1, 0, 0, 0,
220
+ 0, 0, 1, 0, 0, 0, 0, 0,
221
+ 0, 0, 0, 0, 0, 0, 0, 0,
222
+ 0, 0, 1, 0, 0, 0, 0, 0,
223
+ 0, 0, 0, 0, 0, 1, 0, 0,
224
+ 0, 0, 0, 0, 0, 0, 0, 0,
225
+ 0, 0, 0, 0, 0, 0, 0, 0,
226
+ 0, 0, 0, 0, 0, 0, 0, 0,
227
+ 0, 0, 1, 0, 0, 0, 0, 0,
228
+ 0, 0, 0, 0, 0, 0, 0, 0,
229
+ 0, 0, 0, 0, 0, 0, 0, 0,
230
+ 0, 0, 0, 0, 0, 0, 0, 0,
231
+ 0, 0, 0, 0, 0, 0, 0, 0,
232
+ 0, 0, 0, 1, 0, 0, 0, 0,
233
+ 0, 0, 0, 0, 0, 0, 0, 0,
234
+ 0, 0, 0, 0, 0, 0, 0, 0,
235
+ 0, 0, 0, 0, 0, 0, 0, 0,
236
+ 0, 0, 0, 0, 0, 0, 0, 0,
237
+ 0, 0, 0, 0, 0, 0, 0, 0,
238
+ 0, 0, 0, 0, 0, 0, 0, 0,
239
+ 1, 0, 0, 0, 0, 0, 0, 0,
240
+ 0, 0, 0, 0, 0, 0, 0, 0,
241
+ 0, 0, 0, 0, 0, 0, 0, 0,
242
+ 0, 0, 0, 0, 0, 0, 0, 0,
243
+ 0, 0, 0, 0, 0, 0, 0, 1,
244
+ 1, 0, 0, 1, 1, 0, 0, 0,
245
+ 0, 0, 0, 0, 0, 0, 0, 0,
246
+ 0, 0, 0, 0, 0, 0, 0, 0,
247
+ 0, 0, 0, 0, 0, 0, 0, 0,
248
+ 0, 0, 0, 0
249
+ ]
250
+
251
+ class << self
252
+ attr_accessor :_lexer_index_offsets
253
+ private :_lexer_index_offsets, :_lexer_index_offsets=
254
+ end
255
+ self._lexer_index_offsets = [
256
+ 0, 0, 19, 21, 23, 41, 43, 45,
257
+ 48, 51, 56, 61, 66, 71, 75, 79,
258
+ 82, 84, 86, 88, 90, 92, 94, 96,
259
+ 98, 100, 102, 104, 106, 108, 110, 112,
260
+ 114, 116, 119, 124, 131, 136, 138, 141,
261
+ 143, 145, 147, 162, 165, 168, 171, 174,
262
+ 177, 180, 183, 186, 189, 192, 195, 198,
263
+ 201, 204, 207, 225, 227, 229, 231, 233,
264
+ 235, 237, 239, 241, 243, 245, 252, 255,
265
+ 258, 261, 264, 267, 270, 272, 274, 276,
266
+ 278, 280, 282, 284, 286, 288, 290, 292,
267
+ 294, 296, 299, 301, 303, 305, 307, 309,
268
+ 311, 313, 315, 330, 333, 336, 339, 342,
269
+ 345, 348, 351, 354, 357, 360, 363, 366,
270
+ 369, 372, 375, 378, 381, 384, 387, 390,
271
+ 393, 396, 399, 402, 405, 408, 411, 414,
272
+ 417, 420, 423, 426, 429, 432, 435, 438,
273
+ 441, 444, 446, 448, 463, 466, 469, 472,
274
+ 475, 478, 481, 484, 487, 490, 493, 496,
275
+ 499, 502, 505, 508, 511, 515, 518, 521,
276
+ 524, 527, 530, 533, 536, 539, 542, 545,
277
+ 548, 551, 554, 557, 560, 563, 567, 570,
278
+ 573, 576, 579, 582, 585, 588, 591, 594,
279
+ 597, 599, 601, 603, 605, 607, 609, 611,
280
+ 613, 624, 627, 630, 633, 636, 639, 642,
281
+ 645, 648, 651, 654, 657, 660, 663, 666,
282
+ 669, 672, 675, 678, 681, 684, 687, 690,
283
+ 693, 696, 699, 702, 705, 709, 712, 715,
284
+ 718, 721, 724, 727, 730, 733, 736, 739,
285
+ 743, 749, 753, 756, 762, 780, 783, 786,
286
+ 789, 792, 795, 798, 801, 804, 807, 810,
287
+ 813, 816, 819, 822, 825, 828, 831, 835,
288
+ 838, 841, 844, 847, 850, 853, 856, 859,
289
+ 862, 865, 868, 870
290
+ ]
291
+
292
+ class << self
293
+ attr_accessor :_lexer_indicies
294
+ private :_lexer_indicies, :_lexer_indicies=
295
+ end
296
+ self._lexer_indicies = [
297
+ 1, 3, 2, 4, 5, 6, 7, 8,
298
+ 9, 10, 11, 12, 13, 14, 15, 11,
299
+ 16, 2, 0, 17, 0, 2, 0, 3,
300
+ 2, 4, 5, 6, 7, 8, 9, 10,
301
+ 11, 12, 13, 14, 15, 11, 16, 2,
302
+ 0, 18, 0, 19, 0, 21, 22, 20,
303
+ 24, 25, 23, 28, 27, 29, 27, 26,
304
+ 32, 31, 33, 31, 30, 32, 31, 34,
305
+ 31, 30, 32, 31, 35, 31, 30, 37,
306
+ 36, 36, 0, 3, 38, 38, 0, 40,
307
+ 41, 39, 3, 0, 42, 0, 43, 0,
308
+ 44, 0, 45, 0, 46, 0, 47, 0,
309
+ 48, 0, 49, 0, 50, 0, 51, 0,
310
+ 52, 0, 53, 0, 54, 0, 55, 0,
311
+ 56, 0, 0, 57, 59, 60, 58, 0,
312
+ 0, 0, 0, 61, 62, 63, 62, 62,
313
+ 65, 64, 61, 3, 66, 8, 66, 0,
314
+ 67, 0, 68, 69, 0, 70, 0, 72,
315
+ 71, 74, 73, 74, 75, 76, 77, 78,
316
+ 76, 79, 80, 81, 82, 83, 84, 81,
317
+ 75, 73, 74, 85, 73, 74, 86, 73,
318
+ 74, 87, 73, 74, 88, 73, 74, 89,
319
+ 73, 74, 90, 73, 74, 91, 73, 74,
320
+ 92, 73, 74, 93, 73, 74, 94, 73,
321
+ 74, 95, 73, 74, 96, 73, 74, 97,
322
+ 73, 74, 98, 73, 74, 99, 73, 101,
323
+ 100, 102, 103, 104, 105, 106, 107, 108,
324
+ 109, 110, 111, 112, 113, 109, 114, 100,
325
+ 0, 115, 0, 116, 0, 117, 0, 118,
326
+ 0, 119, 0, 120, 0, 121, 0, 122,
327
+ 0, 124, 123, 126, 125, 126, 127, 128,
328
+ 129, 128, 127, 125, 126, 130, 125, 126,
329
+ 131, 125, 126, 132, 125, 126, 133, 125,
330
+ 126, 134, 125, 126, 135, 125, 136, 0,
331
+ 137, 0, 138, 0, 139, 0, 140, 0,
332
+ 141, 0, 142, 0, 67, 0, 143, 0,
333
+ 144, 0, 145, 0, 146, 0, 147, 0,
334
+ 148, 149, 0, 150, 0, 151, 0, 152,
335
+ 0, 153, 0, 154, 0, 155, 0, 157,
336
+ 156, 159, 158, 159, 160, 161, 162, 163,
337
+ 161, 164, 165, 166, 167, 168, 169, 166,
338
+ 160, 158, 159, 170, 158, 159, 171, 158,
339
+ 159, 172, 158, 159, 173, 158, 159, 174,
340
+ 158, 159, 175, 158, 159, 176, 158, 159,
341
+ 177, 158, 159, 178, 158, 159, 179, 158,
342
+ 159, 180, 158, 159, 181, 158, 159, 182,
343
+ 158, 159, 183, 158, 159, 184, 158, 159,
344
+ 185, 158, 159, 186, 158, 159, 185, 158,
345
+ 159, 187, 158, 159, 188, 158, 159, 189,
346
+ 158, 159, 190, 158, 159, 191, 158, 159,
347
+ 192, 158, 159, 193, 158, 159, 194, 158,
348
+ 159, 185, 158, 159, 195, 158, 159, 196,
349
+ 158, 159, 197, 158, 159, 198, 158, 159,
350
+ 199, 158, 159, 184, 158, 159, 200, 158,
351
+ 159, 201, 158, 159, 202, 158, 159, 203,
352
+ 158, 159, 199, 158, 205, 204, 207, 206,
353
+ 207, 208, 209, 210, 211, 209, 212, 213,
354
+ 214, 215, 216, 217, 214, 208, 206, 207,
355
+ 218, 206, 207, 219, 206, 207, 220, 206,
356
+ 207, 221, 206, 207, 222, 206, 207, 223,
357
+ 206, 207, 224, 206, 207, 225, 206, 207,
358
+ 226, 206, 207, 227, 206, 207, 228, 206,
359
+ 207, 229, 206, 207, 230, 206, 207, 231,
360
+ 206, 207, 232, 206, 207, 233, 206, 207,
361
+ 234, 235, 206, 207, 232, 206, 207, 233,
362
+ 206, 207, 236, 206, 207, 237, 206, 207,
363
+ 238, 206, 207, 239, 206, 207, 240, 206,
364
+ 207, 241, 206, 207, 242, 206, 207, 243,
365
+ 206, 207, 233, 206, 207, 244, 206, 207,
366
+ 245, 206, 207, 246, 206, 207, 247, 206,
367
+ 207, 248, 206, 207, 249, 232, 206, 207,
368
+ 250, 206, 207, 251, 206, 207, 252, 206,
369
+ 207, 253, 206, 207, 234, 206, 207, 254,
370
+ 206, 207, 255, 206, 207, 256, 206, 207,
371
+ 257, 206, 207, 234, 206, 258, 0, 259,
372
+ 0, 260, 0, 261, 0, 262, 0, 263,
373
+ 0, 265, 264, 267, 266, 267, 268, 269,
374
+ 270, 269, 271, 272, 273, 274, 268, 266,
375
+ 267, 275, 266, 267, 276, 266, 267, 277,
376
+ 266, 267, 278, 266, 267, 279, 266, 267,
377
+ 280, 266, 267, 281, 266, 267, 282, 266,
378
+ 267, 283, 266, 267, 284, 266, 267, 285,
379
+ 266, 267, 286, 266, 267, 287, 266, 267,
380
+ 288, 266, 267, 289, 266, 267, 290, 266,
381
+ 267, 291, 266, 267, 292, 266, 267, 293,
382
+ 266, 267, 294, 266, 267, 295, 266, 267,
383
+ 289, 266, 267, 296, 266, 267, 297, 266,
384
+ 267, 298, 266, 267, 299, 266, 267, 300,
385
+ 266, 267, 301, 290, 266, 267, 302, 266,
386
+ 267, 303, 266, 267, 304, 266, 267, 305,
387
+ 266, 267, 289, 266, 267, 306, 266, 267,
388
+ 307, 266, 267, 308, 266, 267, 309, 266,
389
+ 267, 289, 266, 310, 311, 310, 0, 314,
390
+ 313, 315, 316, 313, 312, 0, 318, 319,
391
+ 317, 0, 318, 317, 314, 320, 318, 319,
392
+ 320, 317, 314, 321, 322, 323, 324, 325,
393
+ 326, 327, 328, 329, 330, 331, 332, 333,
394
+ 329, 334, 321, 0, 74, 335, 73, 74,
395
+ 336, 73, 74, 335, 73, 74, 337, 73,
396
+ 74, 338, 73, 74, 339, 73, 74, 340,
397
+ 73, 74, 341, 73, 74, 342, 73, 74,
398
+ 343, 73, 74, 344, 73, 74, 335, 73,
399
+ 74, 345, 73, 74, 346, 73, 74, 347,
400
+ 73, 74, 348, 73, 74, 349, 73, 74,
401
+ 350, 99, 73, 74, 351, 73, 74, 352,
402
+ 73, 74, 353, 73, 74, 354, 73, 74,
403
+ 355, 73, 74, 99, 73, 74, 356, 73,
404
+ 74, 357, 73, 74, 358, 73, 74, 359,
405
+ 73, 74, 355, 73, 67, 0, 360, 0
406
+ ]
407
+
408
+ class << self
409
+ attr_accessor :_lexer_trans_targs
410
+ private :_lexer_trans_targs, :_lexer_trans_targs=
411
+ end
412
+ self._lexer_trans_targs = [
413
+ 0, 2, 4, 4, 5, 15, 17, 31,
414
+ 34, 37, 38, 59, 60, 76, 84, 184,
415
+ 231, 3, 6, 7, 8, 9, 8, 8,
416
+ 9, 8, 10, 10, 10, 11, 10, 10,
417
+ 10, 11, 12, 13, 14, 4, 14, 15,
418
+ 4, 16, 18, 19, 20, 21, 22, 23,
419
+ 24, 25, 26, 27, 28, 29, 30, 267,
420
+ 32, 33, 33, 4, 16, 35, 36, 4,
421
+ 35, 34, 36, 31, 39, 266, 40, 41,
422
+ 42, 41, 42, 42, 4, 43, 57, 237,
423
+ 238, 240, 241, 249, 261, 44, 45, 46,
424
+ 47, 48, 49, 50, 51, 52, 53, 54,
425
+ 55, 56, 4, 58, 4, 4, 5, 15,
426
+ 17, 31, 34, 37, 38, 59, 60, 76,
427
+ 84, 184, 231, 37, 61, 62, 63, 64,
428
+ 65, 66, 67, 68, 69, 68, 69, 69,
429
+ 4, 70, 71, 72, 73, 74, 75, 58,
430
+ 77, 78, 79, 80, 81, 82, 83, 85,
431
+ 86, 87, 88, 89, 90, 137, 91, 92,
432
+ 93, 94, 95, 96, 97, 98, 97, 98,
433
+ 98, 4, 99, 113, 114, 115, 117, 118,
434
+ 126, 132, 100, 101, 102, 103, 104, 105,
435
+ 106, 107, 108, 109, 110, 111, 112, 4,
436
+ 58, 113, 116, 114, 119, 120, 121, 122,
437
+ 123, 124, 125, 127, 128, 129, 130, 131,
438
+ 133, 134, 135, 136, 138, 139, 138, 139,
439
+ 139, 4, 140, 154, 155, 156, 159, 160,
440
+ 168, 179, 141, 142, 143, 144, 145, 146,
441
+ 147, 148, 149, 150, 151, 152, 153, 4,
442
+ 58, 154, 157, 158, 155, 161, 162, 163,
443
+ 164, 165, 166, 167, 169, 170, 171, 172,
444
+ 173, 174, 175, 176, 177, 178, 180, 181,
445
+ 182, 183, 185, 186, 187, 188, 189, 190,
446
+ 191, 192, 191, 192, 192, 4, 193, 207,
447
+ 209, 215, 226, 194, 195, 196, 197, 198,
448
+ 199, 200, 201, 202, 203, 204, 205, 206,
449
+ 4, 208, 58, 210, 211, 212, 213, 214,
450
+ 216, 217, 218, 219, 220, 221, 222, 223,
451
+ 224, 225, 227, 228, 229, 230, 231, 232,
452
+ 233, 235, 236, 234, 232, 233, 234, 232,
453
+ 235, 236, 5, 15, 17, 31, 34, 37,
454
+ 38, 59, 60, 76, 84, 184, 231, 57,
455
+ 239, 237, 242, 243, 244, 245, 246, 247,
456
+ 248, 250, 251, 252, 253, 254, 255, 256,
457
+ 257, 258, 259, 260, 262, 263, 264, 265,
458
+ 0
459
+ ]
460
+
461
+ class << self
462
+ attr_accessor :_lexer_trans_actions
463
+ private :_lexer_trans_actions, :_lexer_trans_actions=
464
+ end
465
+ self._lexer_trans_actions = [
466
+ 43, 0, 0, 54, 3, 1, 0, 29,
467
+ 1, 29, 29, 29, 29, 29, 29, 29,
468
+ 35, 0, 0, 0, 7, 135, 48, 0,
469
+ 102, 9, 5, 45, 130, 45, 0, 33,
470
+ 122, 33, 33, 0, 11, 106, 0, 0,
471
+ 114, 25, 0, 0, 0, 0, 0, 0,
472
+ 0, 0, 0, 0, 0, 0, 0, 0,
473
+ 0, 57, 0, 110, 23, 0, 27, 118,
474
+ 27, 51, 0, 0, 0, 0, 0, 57,
475
+ 140, 0, 54, 0, 72, 33, 84, 84,
476
+ 84, 84, 84, 84, 84, 0, 0, 0,
477
+ 0, 0, 0, 0, 0, 0, 0, 0,
478
+ 0, 0, 15, 15, 31, 126, 60, 57,
479
+ 31, 63, 57, 63, 63, 63, 63, 63,
480
+ 63, 63, 66, 0, 0, 0, 0, 0,
481
+ 0, 0, 0, 57, 140, 0, 54, 0,
482
+ 81, 84, 0, 0, 0, 0, 0, 21,
483
+ 0, 0, 0, 0, 0, 0, 0, 0,
484
+ 0, 0, 0, 0, 0, 0, 0, 0,
485
+ 0, 0, 0, 0, 57, 140, 0, 54,
486
+ 0, 78, 33, 84, 84, 84, 84, 84,
487
+ 84, 84, 0, 0, 0, 0, 0, 0,
488
+ 0, 0, 0, 0, 0, 0, 0, 19,
489
+ 19, 0, 0, 0, 0, 0, 0, 0,
490
+ 0, 0, 0, 0, 0, 0, 0, 0,
491
+ 0, 0, 0, 0, 57, 140, 0, 54,
492
+ 0, 75, 33, 84, 84, 84, 84, 84,
493
+ 84, 84, 0, 0, 0, 0, 0, 0,
494
+ 0, 0, 0, 0, 0, 0, 0, 17,
495
+ 17, 0, 0, 0, 0, 0, 0, 0,
496
+ 0, 0, 0, 0, 0, 0, 0, 0,
497
+ 0, 0, 0, 0, 0, 0, 0, 0,
498
+ 0, 0, 0, 0, 0, 0, 0, 0,
499
+ 57, 140, 0, 54, 0, 69, 33, 84,
500
+ 84, 84, 84, 0, 0, 0, 0, 0,
501
+ 0, 0, 0, 0, 0, 0, 0, 0,
502
+ 13, 0, 13, 0, 0, 0, 0, 0,
503
+ 0, 0, 0, 0, 0, 0, 0, 0,
504
+ 0, 0, 0, 0, 0, 0, 0, 0,
505
+ 37, 37, 54, 37, 87, 0, 0, 39,
506
+ 0, 0, 93, 90, 41, 96, 90, 96,
507
+ 96, 96, 96, 96, 96, 96, 99, 0,
508
+ 0, 0, 0, 0, 0, 0, 0, 0,
509
+ 0, 0, 0, 0, 0, 0, 0, 0,
510
+ 0, 0, 0, 0, 0, 0, 0, 0,
511
+ 0
512
+ ]
513
+
514
+ class << self
515
+ attr_accessor :_lexer_eof_actions
516
+ private :_lexer_eof_actions, :_lexer_eof_actions=
517
+ end
518
+ self._lexer_eof_actions = [
519
+ 0, 43, 43, 43, 43, 43, 43, 43,
520
+ 43, 43, 43, 43, 43, 43, 43, 43,
521
+ 43, 43, 43, 43, 43, 43, 43, 43,
522
+ 43, 43, 43, 43, 43, 43, 43, 43,
523
+ 43, 43, 43, 43, 43, 43, 43, 43,
524
+ 43, 43, 43, 43, 43, 43, 43, 43,
525
+ 43, 43, 43, 43, 43, 43, 43, 43,
526
+ 43, 43, 43, 43, 43, 43, 43, 43,
527
+ 43, 43, 43, 43, 43, 43, 43, 43,
528
+ 43, 43, 43, 43, 43, 43, 43, 43,
529
+ 43, 43, 43, 43, 43, 43, 43, 43,
530
+ 43, 43, 43, 43, 43, 43, 43, 43,
531
+ 43, 43, 43, 43, 43, 43, 43, 43,
532
+ 43, 43, 43, 43, 43, 43, 43, 43,
533
+ 43, 43, 43, 43, 43, 43, 43, 43,
534
+ 43, 43, 43, 43, 43, 43, 43, 43,
535
+ 43, 43, 43, 43, 43, 43, 43, 43,
536
+ 43, 43, 43, 43, 43, 43, 43, 43,
537
+ 43, 43, 43, 43, 43, 43, 43, 43,
538
+ 43, 43, 43, 43, 43, 43, 43, 43,
539
+ 43, 43, 43, 43, 43, 43, 43, 43,
540
+ 43, 43, 43, 43, 43, 43, 43, 43,
541
+ 43, 43, 43, 43, 43, 43, 43, 43,
542
+ 43, 43, 43, 43, 43, 43, 43, 43,
543
+ 43, 43, 43, 43, 43, 43, 43, 43,
544
+ 43, 43, 43, 43, 43, 43, 43, 43,
545
+ 43, 43, 43, 43, 43, 43, 43, 43,
546
+ 43, 43, 43, 43, 43, 43, 43, 43,
547
+ 43, 43, 43, 43, 43, 43, 43, 43,
548
+ 43, 43, 43, 43, 43, 43, 43, 43,
549
+ 43, 43, 43, 43, 43, 43, 43, 43,
550
+ 43, 43, 43, 43, 43, 43, 43, 43,
551
+ 43, 43, 43, 43, 43, 43, 43, 43,
552
+ 43, 43, 43, 43
553
+ ]
554
+
555
+ class << self
556
+ attr_accessor :lexer_start
557
+ end
558
+ self.lexer_start = 1;
559
+ class << self
560
+ attr_accessor :lexer_first_final
561
+ end
562
+ self.lexer_first_final = 267;
563
+ class << self
564
+ attr_accessor :lexer_error
565
+ end
566
+ self.lexer_error = 0;
567
+
568
+ class << self
569
+ attr_accessor :lexer_en_main
570
+ end
571
+ self.lexer_en_main = 1;
572
+
573
+
574
+ # line 128 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
575
+ end
576
+
577
+ def scan(data)
578
+ data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably
579
+ eof = pe = data.length
580
+
581
+ @line_number = 1
582
+ @last_newline = 0
583
+
584
+
585
+ # line 586 "lib/gherkin/rb_lexer/en_lol.rb"
586
+ begin
587
+ p ||= 0
588
+ pe ||= data.length
589
+ cs = lexer_start
590
+ end
591
+
592
+ # line 138 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
593
+
594
+ # line 595 "lib/gherkin/rb_lexer/en_lol.rb"
595
+ begin
596
+ _klen, _trans, _keys, _acts, _nacts = nil
597
+ _goto_level = 0
598
+ _resume = 10
599
+ _eof_trans = 15
600
+ _again = 20
601
+ _test_eof = 30
602
+ _out = 40
603
+ while true
604
+ _trigger_goto = false
605
+ if _goto_level <= 0
606
+ if p == pe
607
+ _goto_level = _test_eof
608
+ next
609
+ end
610
+ if cs == 0
611
+ _goto_level = _out
612
+ next
613
+ end
614
+ end
615
+ if _goto_level <= _resume
616
+ _keys = _lexer_key_offsets[cs]
617
+ _trans = _lexer_index_offsets[cs]
618
+ _klen = _lexer_single_lengths[cs]
619
+ _break_match = false
620
+
621
+ begin
622
+ if _klen > 0
623
+ _lower = _keys
624
+ _upper = _keys + _klen - 1
625
+
626
+ loop do
627
+ break if _upper < _lower
628
+ _mid = _lower + ( (_upper - _lower) >> 1 )
629
+
630
+ if data[p] < _lexer_trans_keys[_mid]
631
+ _upper = _mid - 1
632
+ elsif data[p] > _lexer_trans_keys[_mid]
633
+ _lower = _mid + 1
634
+ else
635
+ _trans += (_mid - _keys)
636
+ _break_match = true
637
+ break
638
+ end
639
+ end # loop
640
+ break if _break_match
641
+ _keys += _klen
642
+ _trans += _klen
643
+ end
644
+ _klen = _lexer_range_lengths[cs]
645
+ if _klen > 0
646
+ _lower = _keys
647
+ _upper = _keys + (_klen << 1) - 2
648
+ loop do
649
+ break if _upper < _lower
650
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1)
651
+ if data[p] < _lexer_trans_keys[_mid]
652
+ _upper = _mid - 2
653
+ elsif data[p] > _lexer_trans_keys[_mid+1]
654
+ _lower = _mid + 2
655
+ else
656
+ _trans += ((_mid - _keys) >> 1)
657
+ _break_match = true
658
+ break
659
+ end
660
+ end # loop
661
+ break if _break_match
662
+ _trans += _klen
663
+ end
664
+ end while false
665
+ _trans = _lexer_indicies[_trans]
666
+ cs = _lexer_trans_targs[_trans]
667
+ if _lexer_trans_actions[_trans] != 0
668
+ _acts = _lexer_trans_actions[_trans]
669
+ _nacts = _lexer_actions[_acts]
670
+ _acts += 1
671
+ while _nacts > 0
672
+ _nacts -= 1
673
+ _acts += 1
674
+ case _lexer_actions[_acts - 1]
675
+ when 0 then
676
+ # line 9 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
677
+ begin
678
+
679
+ @content_start = p
680
+ @current_line = @line_number
681
+ @start_col = p - @last_newline - "#{@keyword}:".length
682
+ end
683
+ when 1 then
684
+ # line 15 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
685
+ begin
686
+
687
+ @current_line = @line_number
688
+ @start_col = p - @last_newline
689
+ end
690
+ when 2 then
691
+ # line 20 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
692
+ begin
693
+
694
+ @content_start = p
695
+ end
696
+ when 3 then
697
+ # line 24 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
698
+ begin
699
+
700
+ @docstring_content_type_start = p
701
+ end
702
+ when 4 then
703
+ # line 27 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
704
+ begin
705
+
706
+ @docstring_content_type_end = p
707
+ end
708
+ when 5 then
709
+ # line 31 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
710
+ begin
711
+
712
+ con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""'))
713
+ con_type = utf8_pack(data[@docstring_content_type_start...@docstring_content_type_end]).strip
714
+ @listener.doc_string(con_type, con, @current_line)
715
+ end
716
+ when 6 then
717
+ # line 36 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
718
+ begin
719
+
720
+ p = store_keyword_content(:feature, data, p, eof)
721
+ end
722
+ when 7 then
723
+ # line 40 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
724
+ begin
725
+
726
+ p = store_keyword_content(:background, data, p, eof)
727
+ end
728
+ when 8 then
729
+ # line 44 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
730
+ begin
731
+
732
+ p = store_keyword_content(:scenario, data, p, eof)
733
+ end
734
+ when 9 then
735
+ # line 48 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
736
+ begin
737
+
738
+ p = store_keyword_content(:scenario_outline, data, p, eof)
739
+ end
740
+ when 10 then
741
+ # line 52 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
742
+ begin
743
+
744
+ p = store_keyword_content(:examples, data, p, eof)
745
+ end
746
+ when 11 then
747
+ # line 56 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
748
+ begin
749
+
750
+ con = utf8_pack(data[@content_start...p]).strip
751
+ @listener.step(@keyword, con, @current_line)
752
+ end
753
+ when 12 then
754
+ # line 61 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
755
+ begin
756
+
757
+ con = utf8_pack(data[@content_start...p]).strip
758
+ @listener.comment(con, @line_number)
759
+ @keyword_start = nil
760
+ end
761
+ when 13 then
762
+ # line 67 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
763
+ begin
764
+
765
+ con = utf8_pack(data[@content_start...p]).strip
766
+ @listener.tag(con, @current_line)
767
+ @keyword_start = nil
768
+ end
769
+ when 14 then
770
+ # line 73 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
771
+ begin
772
+
773
+ @line_number += 1
774
+ end
775
+ when 15 then
776
+ # line 77 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
777
+ begin
778
+
779
+ @last_newline = p + 1
780
+ end
781
+ when 16 then
782
+ # line 81 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
783
+ begin
784
+
785
+ @keyword_start ||= p
786
+ end
787
+ when 17 then
788
+ # line 85 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
789
+ begin
790
+
791
+ @keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'')
792
+ @keyword_start = nil
793
+ end
794
+ when 18 then
795
+ # line 90 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
796
+ begin
797
+
798
+ @next_keyword_start = p
799
+ end
800
+ when 19 then
801
+ # line 94 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
802
+ begin
803
+
804
+ p = p - 1
805
+ current_row = []
806
+ @current_line = @line_number
807
+ end
808
+ when 20 then
809
+ # line 100 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
810
+ begin
811
+
812
+ @content_start = p
813
+ end
814
+ when 21 then
815
+ # line 104 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
816
+ begin
817
+
818
+ con = utf8_pack(data[@content_start...p]).strip
819
+ current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\")
820
+ end
821
+ when 22 then
822
+ # line 109 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
823
+ begin
824
+
825
+ @listener.row(current_row, @current_line)
826
+ end
827
+ when 23 then
828
+ # line 113 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
829
+ begin
830
+
831
+ if cs < lexer_first_final
832
+ content = current_line_content(data, p)
833
+ 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])
834
+ else
835
+ @listener.eof
836
+ end
837
+ end
838
+ # line 839 "lib/gherkin/rb_lexer/en_lol.rb"
839
+ end # action switch
840
+ end
841
+ end
842
+ if _trigger_goto
843
+ next
844
+ end
845
+ end
846
+ if _goto_level <= _again
847
+ if cs == 0
848
+ _goto_level = _out
849
+ next
850
+ end
851
+ p += 1
852
+ if p != pe
853
+ _goto_level = _resume
854
+ next
855
+ end
856
+ end
857
+ if _goto_level <= _test_eof
858
+ if p == eof
859
+ __acts = _lexer_eof_actions[cs]
860
+ __nacts = _lexer_actions[__acts]
861
+ __acts += 1
862
+ while __nacts > 0
863
+ __nacts -= 1
864
+ __acts += 1
865
+ case _lexer_actions[__acts - 1]
866
+ when 23 then
867
+ # line 113 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
868
+ begin
869
+
870
+ if cs < lexer_first_final
871
+ content = current_line_content(data, p)
872
+ 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])
873
+ else
874
+ @listener.eof
875
+ end
876
+ end
877
+ # line 878 "lib/gherkin/rb_lexer/en_lol.rb"
878
+ end # eof action switch
879
+ end
880
+ if _trigger_goto
881
+ next
882
+ end
883
+ end
884
+ end
885
+ if _goto_level <= _out
886
+ break
887
+ end
888
+ end
889
+ end
890
+
891
+ # line 139 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/en_lol.rb.rl"
892
+ end
893
+
894
+ def unindent(startcol, text)
895
+ text.gsub(/^[\t ]{0,#{startcol}}/, "")
896
+ end
897
+
898
+ def store_keyword_content(event, data, p, eof)
899
+ end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
900
+ content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
901
+ content_lines = content.split("\n")
902
+ name = content_lines.shift || ""
903
+ name.strip!
904
+ description = content_lines.join("\n")
905
+ @listener.__send__(event, @keyword, name, description, @current_line)
906
+ @next_keyword_start ? @next_keyword_start - 1 : p
907
+ ensure
908
+ @next_keyword_start = nil
909
+ end
910
+
911
+ def current_line_content(data, p)
912
+ rest = data[@last_newline..-1]
913
+ utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
914
+ end
915
+
916
+ if (RUBY_VERSION =~ /^1\.9/)
917
+ def utf8_pack(array)
918
+ array.pack("c*").force_encoding("UTF-8")
919
+ end
920
+ else
921
+ def utf8_pack(array)
922
+ array.pack("c*")
923
+ end
924
+ end
925
+ end
926
+ end
927
+ end