gherkin 2.12.2 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (333) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -15
  3. data/CONTRIBUTING.md +23 -0
  4. data/Gemfile +0 -3
  5. data/LICENSE +18 -17
  6. data/Makefile +65 -0
  7. data/README.md +9 -268
  8. data/Rakefile +17 -19
  9. data/bin/gherkin-generate-ast +21 -0
  10. data/bin/gherkin-generate-pickles +25 -0
  11. data/bin/gherkin-generate-tokens +12 -0
  12. data/gherkin-ruby.razor +218 -0
  13. data/gherkin.gemspec +22 -76
  14. data/lib/gherkin/ast_builder.rb +243 -0
  15. data/lib/gherkin/ast_node.rb +30 -0
  16. data/lib/gherkin/dialect.rb +58 -0
  17. data/lib/gherkin/errors.rb +45 -0
  18. data/lib/gherkin/gherkin-languages.json +2968 -0
  19. data/lib/gherkin/gherkin_line.rb +95 -0
  20. data/lib/gherkin/parser.rb +1910 -0
  21. data/lib/gherkin/pickles/compiler.rb +164 -0
  22. data/lib/gherkin/token.rb +18 -0
  23. data/lib/gherkin/token_formatter_builder.rb +39 -0
  24. data/lib/gherkin/token_matcher.rb +169 -0
  25. data/lib/gherkin/token_scanner.rb +40 -0
  26. data/spec/capture_warnings.rb +68 -0
  27. data/spec/coverage.rb +10 -0
  28. data/spec/gherkin/parser_spec.rb +146 -0
  29. metadata +60 -567
  30. data/.gitattributes +0 -2
  31. data/.mailmap +0 -2
  32. data/.rbenv-gemsets +0 -1
  33. data/.rspec +0 -1
  34. data/.ruby-gemset +0 -1
  35. data/.ruby-version +0 -1
  36. data/.yardopts +0 -5
  37. data/History.md +0 -881
  38. data/build_native_gems.sh +0 -7
  39. data/cucumber.yml +0 -5
  40. data/examples/parse_and_output_json.rb +0 -19
  41. data/ext/gherkin_lexer_ar/extconf.rb +0 -6
  42. data/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +0 -1432
  43. data/ext/gherkin_lexer_bg/extconf.rb +0 -6
  44. data/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +0 -1655
  45. data/ext/gherkin_lexer_bm/extconf.rb +0 -6
  46. data/ext/gherkin_lexer_bm/gherkin_lexer_bm.c +0 -1516
  47. data/ext/gherkin_lexer_ca/extconf.rb +0 -6
  48. data/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +0 -1581
  49. data/ext/gherkin_lexer_cs/extconf.rb +0 -6
  50. data/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +0 -1515
  51. data/ext/gherkin_lexer_cy_gb/extconf.rb +0 -6
  52. data/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +0 -1282
  53. data/ext/gherkin_lexer_da/extconf.rb +0 -6
  54. data/ext/gherkin_lexer_da/gherkin_lexer_da.c +0 -1298
  55. data/ext/gherkin_lexer_de/extconf.rb +0 -6
  56. data/ext/gherkin_lexer_de/gherkin_lexer_de.c +0 -1425
  57. data/ext/gherkin_lexer_el/extconf.rb +0 -6
  58. data/ext/gherkin_lexer_el/gherkin_lexer_el.c +0 -1919
  59. data/ext/gherkin_lexer_en/extconf.rb +0 -6
  60. data/ext/gherkin_lexer_en/gherkin_lexer_en.c +0 -1418
  61. data/ext/gherkin_lexer_en_au/extconf.rb +0 -6
  62. data/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +0 -1765
  63. data/ext/gherkin_lexer_en_lol/extconf.rb +0 -6
  64. data/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +0 -1177
  65. data/ext/gherkin_lexer_en_old/extconf.rb +0 -6
  66. data/ext/gherkin_lexer_en_old/gherkin_lexer_en_old.c +0 -1309
  67. data/ext/gherkin_lexer_en_pirate/extconf.rb +0 -6
  68. data/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +0 -1471
  69. data/ext/gherkin_lexer_en_scouse/extconf.rb +0 -6
  70. data/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +0 -1634
  71. data/ext/gherkin_lexer_en_tx/extconf.rb +0 -6
  72. data/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +0 -1265
  73. data/ext/gherkin_lexer_eo/extconf.rb +0 -6
  74. data/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +0 -1241
  75. data/ext/gherkin_lexer_es/extconf.rb +0 -6
  76. data/ext/gherkin_lexer_es/gherkin_lexer_es.c +0 -1399
  77. data/ext/gherkin_lexer_et/extconf.rb +0 -6
  78. data/ext/gherkin_lexer_et/gherkin_lexer_et.c +0 -1236
  79. data/ext/gherkin_lexer_fa/extconf.rb +0 -6
  80. data/ext/gherkin_lexer_fa/gherkin_lexer_fa.c +0 -1475
  81. data/ext/gherkin_lexer_fi/extconf.rb +0 -6
  82. data/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +0 -1215
  83. data/ext/gherkin_lexer_fr/extconf.rb +0 -6
  84. data/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +0 -1493
  85. data/ext/gherkin_lexer_gl/extconf.rb +0 -6
  86. data/ext/gherkin_lexer_gl/gherkin_lexer_gl.c +0 -1374
  87. data/ext/gherkin_lexer_he/extconf.rb +0 -6
  88. data/ext/gherkin_lexer_he/gherkin_lexer_he.c +0 -1374
  89. data/ext/gherkin_lexer_hi/extconf.rb +0 -6
  90. data/ext/gherkin_lexer_hi/gherkin_lexer_hi.c +0 -1848
  91. data/ext/gherkin_lexer_hr/extconf.rb +0 -6
  92. data/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +0 -1323
  93. data/ext/gherkin_lexer_hu/extconf.rb +0 -6
  94. data/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +0 -1376
  95. data/ext/gherkin_lexer_id/extconf.rb +0 -6
  96. data/ext/gherkin_lexer_id/gherkin_lexer_id.c +0 -1208
  97. data/ext/gherkin_lexer_is/extconf.rb +0 -6
  98. data/ext/gherkin_lexer_is/gherkin_lexer_is.c +0 -1376
  99. data/ext/gherkin_lexer_it/extconf.rb +0 -6
  100. data/ext/gherkin_lexer_it/gherkin_lexer_it.c +0 -1340
  101. data/ext/gherkin_lexer_ja/extconf.rb +0 -6
  102. data/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +0 -1699
  103. data/ext/gherkin_lexer_kn/extconf.rb +0 -6
  104. data/ext/gherkin_lexer_kn/gherkin_lexer_kn.c +0 -1965
  105. data/ext/gherkin_lexer_ko/extconf.rb +0 -6
  106. data/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +0 -1360
  107. data/ext/gherkin_lexer_lt/extconf.rb +0 -6
  108. data/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +0 -1296
  109. data/ext/gherkin_lexer_lu/extconf.rb +0 -6
  110. data/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +0 -1389
  111. data/ext/gherkin_lexer_lv/extconf.rb +0 -6
  112. data/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +0 -1425
  113. data/ext/gherkin_lexer_nl/extconf.rb +0 -6
  114. data/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +0 -1368
  115. data/ext/gherkin_lexer_no/extconf.rb +0 -6
  116. data/ext/gherkin_lexer_no/gherkin_lexer_no.c +0 -1311
  117. data/ext/gherkin_lexer_pa/extconf.rb +0 -6
  118. data/ext/gherkin_lexer_pa/gherkin_lexer_pa.c +0 -2160
  119. data/ext/gherkin_lexer_pl/extconf.rb +0 -6
  120. data/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +0 -1738
  121. data/ext/gherkin_lexer_pt/extconf.rb +0 -6
  122. data/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +0 -1711
  123. data/ext/gherkin_lexer_ro/extconf.rb +0 -6
  124. data/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +0 -1427
  125. data/ext/gherkin_lexer_ru/extconf.rb +0 -6
  126. data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +0 -2071
  127. data/ext/gherkin_lexer_sk/extconf.rb +0 -6
  128. data/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +0 -1739
  129. data/ext/gherkin_lexer_sr_cyrl/extconf.rb +0 -6
  130. data/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +0 -2112
  131. data/ext/gherkin_lexer_sr_latn/extconf.rb +0 -6
  132. data/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +0 -1567
  133. data/ext/gherkin_lexer_sv/extconf.rb +0 -6
  134. data/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +0 -1324
  135. data/ext/gherkin_lexer_th/extconf.rb +0 -6
  136. data/ext/gherkin_lexer_th/gherkin_lexer_th.c +0 -2840
  137. data/ext/gherkin_lexer_tl/extconf.rb +0 -6
  138. data/ext/gherkin_lexer_tl/gherkin_lexer_tl.c +0 -2021
  139. data/ext/gherkin_lexer_tr/extconf.rb +0 -6
  140. data/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +0 -1347
  141. data/ext/gherkin_lexer_tt/extconf.rb +0 -6
  142. data/ext/gherkin_lexer_tt/gherkin_lexer_tt.c +0 -1936
  143. data/ext/gherkin_lexer_uk/extconf.rb +0 -6
  144. data/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +0 -1941
  145. data/ext/gherkin_lexer_uz/extconf.rb +0 -6
  146. data/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +0 -1651
  147. data/ext/gherkin_lexer_vi/extconf.rb +0 -6
  148. data/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +0 -1458
  149. data/ext/gherkin_lexer_zh_cn/extconf.rb +0 -6
  150. data/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +0 -1314
  151. data/ext/gherkin_lexer_zh_tw/extconf.rb +0 -6
  152. data/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +0 -1307
  153. data/features/.cucumber/stepdefs.json +0 -244
  154. data/features/escaped_pipes.feature +0 -8
  155. data/features/feature_parser.feature +0 -237
  156. data/features/json_formatter.feature +0 -498
  157. data/features/json_parser.feature +0 -331
  158. data/features/native_lexer.feature +0 -19
  159. data/features/parser_with_native_lexer.feature +0 -205
  160. data/features/pretty_formatter.feature +0 -17
  161. data/features/step_definitions/eyeball_steps.rb +0 -3
  162. data/features/step_definitions/gherkin_steps.rb +0 -29
  163. data/features/step_definitions/json_formatter_steps.rb +0 -30
  164. data/features/step_definitions/json_parser_steps.rb +0 -21
  165. data/features/step_definitions/pretty_formatter_steps.rb +0 -85
  166. data/features/steps_parser.feature +0 -46
  167. data/features/support/env.rb +0 -41
  168. data/install_mingw_os_x.sh +0 -5
  169. data/js/.npmignore +0 -1
  170. data/js/lib/gherkin/lexer/.npmignore +0 -0
  171. data/lib/gherkin.rb +0 -2
  172. data/lib/gherkin/README.md +0 -7
  173. data/lib/gherkin/c_lexer.rb +0 -17
  174. data/lib/gherkin/formatter/ansi_escapes.rb +0 -97
  175. data/lib/gherkin/formatter/argument.rb +0 -16
  176. data/lib/gherkin/formatter/escaping.rb +0 -15
  177. data/lib/gherkin/formatter/filter_formatter.rb +0 -150
  178. data/lib/gherkin/formatter/hashable.rb +0 -25
  179. data/lib/gherkin/formatter/json_formatter.rb +0 -133
  180. data/lib/gherkin/formatter/line_filter.rb +0 -26
  181. data/lib/gherkin/formatter/model.rb +0 -281
  182. data/lib/gherkin/formatter/pretty_formatter.rb +0 -245
  183. data/lib/gherkin/formatter/regexp_filter.rb +0 -21
  184. data/lib/gherkin/formatter/step_printer.rb +0 -21
  185. data/lib/gherkin/formatter/tag_count_formatter.rb +0 -47
  186. data/lib/gherkin/formatter/tag_filter.rb +0 -19
  187. data/lib/gherkin/i18n.json +0 -786
  188. data/lib/gherkin/i18n.rb +0 -176
  189. data/lib/gherkin/json_parser.rb +0 -177
  190. data/lib/gherkin/lexer/ar.rb +0 -1170
  191. data/lib/gherkin/lexer/bg.rb +0 -1382
  192. data/lib/gherkin/lexer/bm.rb +0 -1250
  193. data/lib/gherkin/lexer/ca.rb +0 -1310
  194. data/lib/gherkin/lexer/cs.rb +0 -1246
  195. data/lib/gherkin/lexer/cy_gb.rb +0 -1032
  196. data/lib/gherkin/lexer/da.rb +0 -1048
  197. data/lib/gherkin/lexer/de.rb +0 -1166
  198. data/lib/gherkin/lexer/el.rb +0 -1628
  199. data/lib/gherkin/lexer/en.rb +0 -1156
  200. data/lib/gherkin/lexer/en_au.rb +0 -1486
  201. data/lib/gherkin/lexer/en_lol.rb +0 -934
  202. data/lib/gherkin/lexer/en_old.rb +0 -1037
  203. data/lib/gherkin/lexer/en_pirate.rb +0 -1210
  204. data/lib/gherkin/lexer/en_scouse.rb +0 -1362
  205. data/lib/gherkin/lexer/en_tx.rb +0 -1016
  206. data/lib/gherkin/lexer/encoding.rb +0 -41
  207. data/lib/gherkin/lexer/eo.rb +0 -995
  208. data/lib/gherkin/lexer/es.rb +0 -1140
  209. data/lib/gherkin/lexer/et.rb +0 -990
  210. data/lib/gherkin/lexer/fa.rb +0 -1214
  211. data/lib/gherkin/lexer/fi.rb +0 -969
  212. data/lib/gherkin/lexer/fr.rb +0 -1228
  213. data/lib/gherkin/lexer/gl.rb +0 -1117
  214. data/lib/gherkin/lexer/he.rb +0 -1118
  215. data/lib/gherkin/lexer/hi.rb +0 -1559
  216. data/lib/gherkin/lexer/hr.rb +0 -1066
  217. data/lib/gherkin/lexer/hu.rb +0 -1118
  218. data/lib/gherkin/lexer/i18n_lexer.rb +0 -48
  219. data/lib/gherkin/lexer/id.rb +0 -963
  220. data/lib/gherkin/lexer/is.rb +0 -1120
  221. data/lib/gherkin/lexer/it.rb +0 -1086
  222. data/lib/gherkin/lexer/ja.rb +0 -1418
  223. data/lib/gherkin/lexer/kn.rb +0 -1672
  224. data/lib/gherkin/lexer/ko.rb +0 -1102
  225. data/lib/gherkin/lexer/lt.rb +0 -1045
  226. data/lib/gherkin/lexer/lu.rb +0 -1132
  227. data/lib/gherkin/lexer/lv.rb +0 -1166
  228. data/lib/gherkin/lexer/nl.rb +0 -1115
  229. data/lib/gherkin/lexer/no.rb +0 -1060
  230. data/lib/gherkin/lexer/pa.rb +0 -1852
  231. data/lib/gherkin/lexer/pl.rb +0 -1457
  232. data/lib/gherkin/lexer/pt.rb +0 -1430
  233. data/lib/gherkin/lexer/ro.rb +0 -1164
  234. data/lib/gherkin/lexer/ru.rb +0 -1766
  235. data/lib/gherkin/lexer/sk.rb +0 -1452
  236. data/lib/gherkin/lexer/sr_cyrl.rb +0 -1803
  237. data/lib/gherkin/lexer/sr_latn.rb +0 -1294
  238. data/lib/gherkin/lexer/sv.rb +0 -1070
  239. data/lib/gherkin/lexer/th.rb +0 -2492
  240. data/lib/gherkin/lexer/tl.rb +0 -1726
  241. data/lib/gherkin/lexer/tr.rb +0 -1092
  242. data/lib/gherkin/lexer/tt.rb +0 -1643
  243. data/lib/gherkin/lexer/uk.rb +0 -1646
  244. data/lib/gherkin/lexer/uz.rb +0 -1376
  245. data/lib/gherkin/lexer/vi.rb +0 -1198
  246. data/lib/gherkin/lexer/zh_cn.rb +0 -1058
  247. data/lib/gherkin/lexer/zh_tw.rb +0 -1052
  248. data/lib/gherkin/listener/event.rb +0 -45
  249. data/lib/gherkin/listener/formatter_listener.rb +0 -150
  250. data/lib/gherkin/native.rb +0 -7
  251. data/lib/gherkin/native/java.rb +0 -72
  252. data/lib/gherkin/native/null.rb +0 -5
  253. data/lib/gherkin/native/therubyracer.rb +0 -41
  254. data/lib/gherkin/parser/meta.txt +0 -5
  255. data/lib/gherkin/parser/parser.rb +0 -166
  256. data/lib/gherkin/parser/root.txt +0 -11
  257. data/lib/gherkin/parser/steps.txt +0 -4
  258. data/lib/gherkin/platform.rb +0 -13
  259. data/lib/gherkin/rubify.rb +0 -31
  260. data/lib/gherkin/tag_expression.rb +0 -63
  261. data/ragel/lexer.c.rl.erb +0 -454
  262. data/ragel/lexer.java.rl.erb +0 -219
  263. data/ragel/lexer.js.rl.erb +0 -322
  264. data/ragel/lexer.rb.rl.erb +0 -179
  265. data/ragel/lexer_common.rl.erb +0 -50
  266. data/spec/gherkin/c_lexer_spec.rb +0 -22
  267. data/spec/gherkin/fixtures/1.feature +0 -8
  268. data/spec/gherkin/fixtures/comments_in_table.feature +0 -9
  269. data/spec/gherkin/fixtures/complex.feature +0 -45
  270. data/spec/gherkin/fixtures/complex.json +0 -139
  271. data/spec/gherkin/fixtures/complex_for_filtering.feature +0 -60
  272. data/spec/gherkin/fixtures/complex_with_tags.feature +0 -61
  273. data/spec/gherkin/fixtures/dos_line_endings.feature +0 -45
  274. data/spec/gherkin/fixtures/examples_with_only_header.feature +0 -14
  275. data/spec/gherkin/fixtures/hantu_pisang.feature +0 -35
  276. data/spec/gherkin/fixtures/i18n_fr.feature +0 -14
  277. data/spec/gherkin/fixtures/i18n_fr2.feature +0 -8
  278. data/spec/gherkin/fixtures/i18n_no.feature +0 -7
  279. data/spec/gherkin/fixtures/i18n_pt1.feature +0 -44
  280. data/spec/gherkin/fixtures/i18n_pt2.feature +0 -4
  281. data/spec/gherkin/fixtures/i18n_pt3.feature +0 -4
  282. data/spec/gherkin/fixtures/i18n_pt4.feature +0 -4
  283. data/spec/gherkin/fixtures/i18n_zh-CN.feature +0 -9
  284. data/spec/gherkin/fixtures/iso-8859-1.feature +0 -6
  285. data/spec/gherkin/fixtures/issue_145.feature +0 -22
  286. data/spec/gherkin/fixtures/scenario_outline_with_tags.feature +0 -13
  287. data/spec/gherkin/fixtures/scenario_without_steps.feature +0 -5
  288. data/spec/gherkin/fixtures/simple_with_comments.feature +0 -7
  289. data/spec/gherkin/fixtures/simple_with_tags.feature +0 -11
  290. data/spec/gherkin/fixtures/with_bom.feature +0 -3
  291. data/spec/gherkin/fixtures/with_bom_and_language_spec.feature +0 -4
  292. data/spec/gherkin/formatter/ansi_escapes_spec.rb +0 -32
  293. data/spec/gherkin/formatter/filter_formatter_spec.rb +0 -204
  294. data/spec/gherkin/formatter/json_formatter_spec.rb +0 -179
  295. data/spec/gherkin/formatter/model_spec.rb +0 -28
  296. data/spec/gherkin/formatter/pretty_formatter_spec.rb +0 -184
  297. data/spec/gherkin/formatter/spaces.feature +0 -9
  298. data/spec/gherkin/formatter/step_printer_spec.rb +0 -55
  299. data/spec/gherkin/formatter/tabs.feature +0 -9
  300. data/spec/gherkin/formatter/tag_count_formatter_spec.rb +0 -30
  301. data/spec/gherkin/i18n_spec.rb +0 -256
  302. data/spec/gherkin/java_lexer_spec.rb +0 -20
  303. data/spec/gherkin/json_parser_spec.rb +0 -165
  304. data/spec/gherkin/lexer/i18n_lexer_spec.rb +0 -65
  305. data/spec/gherkin/native_lexer_spec.rb +0 -29
  306. data/spec/gherkin/parser/parser_spec.rb +0 -16
  307. data/spec/gherkin/rubify_spec.rb +0 -23
  308. data/spec/gherkin/sexp_recorder.rb +0 -59
  309. data/spec/gherkin/shared/doc_string_group.rb +0 -161
  310. data/spec/gherkin/shared/encoding_group.rb +0 -48
  311. data/spec/gherkin/shared/lexer_group.rb +0 -589
  312. data/spec/gherkin/shared/row_group.rb +0 -123
  313. data/spec/gherkin/shared/tags_group.rb +0 -52
  314. data/spec/gherkin/tag_expression_spec.rb +0 -146
  315. data/spec/spec_helper.rb +0 -94
  316. data/tasks/apidoc.rake +0 -32
  317. data/tasks/bench.rake +0 -184
  318. data/tasks/bench/feature_builder.rb +0 -49
  319. data/tasks/bench/null_listener.rb +0 -4
  320. data/tasks/compile.rake +0 -83
  321. data/tasks/cucumber.rake +0 -23
  322. data/tasks/gems.rake +0 -46
  323. data/tasks/ikvm.rake +0 -126
  324. data/tasks/ragel_task.rb +0 -124
  325. data/tasks/release.rake +0 -34
  326. data/tasks/rspec.rake +0 -6
  327. data/tasks/yard/default/layout/html/bubble_32x32.png +0 -0
  328. data/tasks/yard/default/layout/html/bubble_48x48.png +0 -0
  329. data/tasks/yard/default/layout/html/footer.erb +0 -5
  330. data/tasks/yard/default/layout/html/index.erb +0 -1
  331. data/tasks/yard/default/layout/html/layout.erb +0 -25
  332. data/tasks/yard/default/layout/html/logo.erb +0 -1
  333. data/tasks/yard/default/layout/html/setup.rb +0 -4
@@ -1,990 +0,0 @@
1
-
2
- # line 1 "ragel/i18n/et.rb.rl"
3
- require 'gherkin/native'
4
-
5
- module Gherkin
6
- module Lexer
7
- class Et #:nodoc:
8
- native_impl('gherkin')
9
-
10
-
11
- # line 125 "ragel/i18n/et.rb.rl"
12
-
13
-
14
- def initialize(listener)
15
- @listener = listener
16
-
17
- # Initialize ivars to avoid warnings
18
- @keyword = nil
19
-
20
- # line 21 "lib/gherkin/lexer/et.rb"
21
- class << self
22
- attr_accessor :_lexer_actions
23
- private :_lexer_actions, :_lexer_actions=
24
- end
25
- self._lexer_actions = [
26
- 0, 1, 0, 1, 1, 1, 2, 1,
27
- 3, 1, 4, 1, 5, 1, 6, 1,
28
- 7, 1, 8, 1, 9, 1, 10, 1,
29
- 11, 1, 12, 1, 13, 1, 16, 1,
30
- 17, 1, 18, 1, 19, 1, 20, 1,
31
- 21, 1, 22, 1, 23, 2, 2, 18,
32
- 2, 3, 4, 2, 13, 0, 2, 14,
33
- 15, 2, 17, 0, 2, 17, 1, 2,
34
- 17, 16, 2, 17, 19, 2, 18, 6,
35
- 2, 18, 7, 2, 18, 8, 2, 18,
36
- 9, 2, 18, 10, 2, 18, 16, 2,
37
- 20, 21, 2, 22, 0, 2, 22, 1,
38
- 2, 22, 16, 2, 22, 19, 3, 4,
39
- 14, 15, 3, 5, 14, 15, 3, 11,
40
- 14, 15, 3, 12, 14, 15, 3, 13,
41
- 14, 15, 3, 14, 15, 18, 3, 17,
42
- 0, 11, 3, 17, 14, 15, 4, 2,
43
- 14, 15, 18, 4, 3, 4, 14, 15,
44
- 4, 17, 0, 14, 15, 5, 17, 0,
45
- 11, 14, 15
46
- ]
47
-
48
- class << self
49
- attr_accessor :_lexer_key_offsets
50
- private :_lexer_key_offsets, :_lexer_key_offsets=
51
- end
52
- self._lexer_key_offsets = [
53
- 0, 0, 18, 19, 20, 37, 38, 39,
54
- 41, 43, 48, 53, 58, 63, 67, 71,
55
- 73, 74, 75, 76, 77, 78, 79, 80,
56
- 81, 82, 83, 84, 85, 86, 87, 88,
57
- 89, 91, 93, 98, 105, 110, 111, 112,
58
- 113, 114, 115, 116, 117, 119, 120, 121,
59
- 122, 123, 124, 125, 126, 127, 128, 135,
60
- 137, 139, 141, 143, 145, 147, 164, 165,
61
- 166, 168, 169, 170, 171, 172, 173, 174,
62
- 175, 176, 188, 190, 192, 194, 196, 198,
63
- 200, 202, 204, 206, 208, 210, 212, 214,
64
- 216, 218, 220, 222, 224, 226, 228, 230,
65
- 232, 234, 236, 238, 240, 242, 244, 246,
66
- 248, 250, 252, 254, 256, 258, 260, 262,
67
- 264, 266, 268, 270, 272, 274, 276, 278,
68
- 279, 280, 281, 282, 283, 284, 285, 286,
69
- 287, 288, 289, 290, 291, 292, 293, 294,
70
- 295, 308, 310, 312, 314, 316, 318, 320,
71
- 322, 324, 326, 328, 330, 332, 334, 336,
72
- 338, 340, 342, 344, 346, 348, 350, 352,
73
- 354, 356, 358, 361, 363, 365, 367, 369,
74
- 371, 373, 376, 378, 380, 382, 384, 386,
75
- 388, 390, 392, 394, 396, 398, 399, 400,
76
- 401, 402, 403, 404, 405, 406, 407, 408,
77
- 409, 410, 411, 426, 428, 430, 432, 434,
78
- 436, 438, 440, 442, 444, 446, 448, 450,
79
- 452, 454, 456, 458, 460, 462, 464, 466,
80
- 468, 470, 472, 474, 476, 479, 481, 483,
81
- 485, 487, 489, 491, 493, 495, 497, 499,
82
- 501, 503, 505, 507, 509, 511, 513, 515,
83
- 517, 519, 522, 524, 526, 528, 530, 532,
84
- 533, 534, 535, 536, 537, 538, 539, 553,
85
- 555, 557, 559, 561, 563, 565, 567, 569,
86
- 571, 573, 575, 577, 579, 581, 583, 585,
87
- 587, 589, 591, 593, 595, 597, 599, 601,
88
- 603, 606, 608, 610, 612, 614, 616, 618,
89
- 620, 622, 624, 626, 628, 630, 632, 634,
90
- 636, 638, 640, 642, 644, 646, 649, 651,
91
- 655, 661, 664, 666, 672, 689
92
- ]
93
-
94
- class << self
95
- attr_accessor :_lexer_trans_keys
96
- private :_lexer_trans_keys, :_lexer_trans_keys=
97
- end
98
- self._lexer_trans_keys = [
99
- -17, 10, 32, 34, 35, 37, 42, 64,
100
- 69, 74, 75, 79, 82, 83, 84, 124,
101
- 9, 13, -69, -65, 10, 32, 34, 35,
102
- 37, 42, 64, 69, 74, 75, 79, 82,
103
- 83, 84, 124, 9, 13, 34, 34, 10,
104
- 13, 10, 13, 10, 32, 34, 9, 13,
105
- 10, 32, 34, 9, 13, 10, 32, 34,
106
- 9, 13, 10, 32, 34, 9, 13, 10,
107
- 32, 9, 13, 10, 32, 9, 13, 10,
108
- 13, 10, 95, 70, 69, 65, 84, 85,
109
- 82, 69, 95, 69, 78, 68, 95, 37,
110
- 32, 10, 13, 10, 13, 13, 32, 64,
111
- 9, 10, 9, 10, 13, 32, 64, 11,
112
- 12, 10, 32, 64, 9, 13, 101, 108,
113
- 100, 97, 100, 101, 115, 97, 117, 104,
114
- 116, 117, 109, 105, 100, 58, 10, 10,
115
- 10, 32, 35, 79, 124, 9, 13, 10,
116
- 109, 10, 97, 10, 100, 10, 117, 10,
117
- 115, 10, 58, 10, 32, 34, 35, 37,
118
- 42, 64, 69, 74, 75, 79, 82, 83,
119
- 84, 124, 9, 13, 117, 105, 32, 100,
120
- 109, 97, 100, 117, 115, 58, 10, 10,
121
- 10, 32, 35, 37, 64, 74, 79, 82,
122
- 83, 84, 9, 13, 10, 95, 10, 70,
123
- 10, 69, 10, 65, 10, 84, 10, 85,
124
- 10, 82, 10, 69, 10, 95, 10, 69,
125
- 10, 78, 10, 68, 10, 95, 10, 37,
126
- 10, 117, 10, 104, 10, 116, 10, 117,
127
- 10, 109, 10, 105, 10, 100, 10, 58,
128
- 10, 109, 10, 97, 10, 100, 10, 117,
129
- 10, 115, 10, 97, 10, 97, 10, 109,
130
- 10, 115, 10, 116, 10, 115, 10, 101,
131
- 10, 110, 10, 97, 10, 97, 10, 114,
132
- 10, 105, 10, 117, 10, 109, 10, 97,
133
- 10, 117, 10, 115, 10, 116, 97, 97,
134
- 109, 115, 116, 115, 101, 110, 97, 97,
135
- 114, 105, 117, 109, 58, 10, 10, 10,
136
- 32, 35, 37, 42, 64, 69, 74, 75,
137
- 79, 83, 9, 13, 10, 95, 10, 70,
138
- 10, 69, 10, 65, 10, 84, 10, 85,
139
- 10, 82, 10, 69, 10, 95, 10, 69,
140
- 10, 78, 10, 68, 10, 95, 10, 37,
141
- 10, 32, 10, 101, 10, 108, 10, 100,
142
- 10, 97, 10, 100, 10, 101, 10, 115,
143
- 10, 97, 10, 117, 10, 105, 10, 32,
144
- 100, 10, 109, 10, 97, 10, 100, 10,
145
- 117, 10, 115, 10, 58, 10, 105, 116,
146
- 10, 105, 10, 115, 10, 101, 10, 110,
147
- 10, 97, 10, 97, 10, 114, 10, 105,
148
- 10, 117, 10, 109, 105, 116, 105, 115,
149
- 101, 110, 97, 97, 114, 105, 117, 109,
150
- 58, 10, 10, 10, 32, 35, 37, 42,
151
- 64, 69, 74, 75, 79, 82, 83, 84,
152
- 9, 13, 10, 95, 10, 70, 10, 69,
153
- 10, 65, 10, 84, 10, 85, 10, 82,
154
- 10, 69, 10, 95, 10, 69, 10, 78,
155
- 10, 68, 10, 95, 10, 37, 10, 32,
156
- 10, 101, 10, 108, 10, 100, 10, 97,
157
- 10, 100, 10, 101, 10, 115, 10, 97,
158
- 10, 117, 10, 105, 10, 32, 100, 10,
159
- 109, 10, 97, 10, 100, 10, 117, 10,
160
- 115, 10, 58, 10, 97, 10, 97, 10,
161
- 109, 10, 115, 10, 116, 10, 115, 10,
162
- 101, 10, 110, 10, 97, 10, 97, 10,
163
- 114, 10, 105, 10, 117, 10, 109, 10,
164
- 105, 116, 10, 105, 10, 97, 10, 117,
165
- 10, 115, 10, 116, 97, 117, 115, 116,
166
- 58, 10, 10, 10, 32, 35, 37, 42,
167
- 64, 69, 74, 75, 79, 82, 83, 9,
168
- 13, 10, 95, 10, 70, 10, 69, 10,
169
- 65, 10, 84, 10, 85, 10, 82, 10,
170
- 69, 10, 95, 10, 69, 10, 78, 10,
171
- 68, 10, 95, 10, 37, 10, 32, 10,
172
- 101, 10, 108, 10, 100, 10, 97, 10,
173
- 100, 10, 101, 10, 115, 10, 97, 10,
174
- 117, 10, 105, 10, 32, 100, 10, 109,
175
- 10, 97, 10, 100, 10, 117, 10, 115,
176
- 10, 58, 10, 97, 10, 97, 10, 109,
177
- 10, 115, 10, 116, 10, 115, 10, 101,
178
- 10, 110, 10, 97, 10, 97, 10, 114,
179
- 10, 105, 10, 117, 10, 109, 10, 105,
180
- 116, 10, 105, 32, 124, 9, 13, 10,
181
- 32, 92, 124, 9, 13, 10, 92, 124,
182
- 10, 92, 10, 32, 92, 124, 9, 13,
183
- 10, 32, 34, 35, 37, 42, 64, 69,
184
- 74, 75, 79, 82, 83, 84, 124, 9,
185
- 13, 0
186
- ]
187
-
188
- class << self
189
- attr_accessor :_lexer_single_lengths
190
- private :_lexer_single_lengths, :_lexer_single_lengths=
191
- end
192
- self._lexer_single_lengths = [
193
- 0, 16, 1, 1, 15, 1, 1, 2,
194
- 2, 3, 3, 3, 3, 2, 2, 2,
195
- 1, 1, 1, 1, 1, 1, 1, 1,
196
- 1, 1, 1, 1, 1, 1, 1, 1,
197
- 2, 2, 3, 5, 3, 1, 1, 1,
198
- 1, 1, 1, 1, 2, 1, 1, 1,
199
- 1, 1, 1, 1, 1, 1, 5, 2,
200
- 2, 2, 2, 2, 2, 15, 1, 1,
201
- 2, 1, 1, 1, 1, 1, 1, 1,
202
- 1, 10, 2, 2, 2, 2, 2, 2,
203
- 2, 2, 2, 2, 2, 2, 2, 2,
204
- 2, 2, 2, 2, 2, 2, 2, 2,
205
- 2, 2, 2, 2, 2, 2, 2, 2,
206
- 2, 2, 2, 2, 2, 2, 2, 2,
207
- 2, 2, 2, 2, 2, 2, 2, 1,
208
- 1, 1, 1, 1, 1, 1, 1, 1,
209
- 1, 1, 1, 1, 1, 1, 1, 1,
210
- 11, 2, 2, 2, 2, 2, 2, 2,
211
- 2, 2, 2, 2, 2, 2, 2, 2,
212
- 2, 2, 2, 2, 2, 2, 2, 2,
213
- 2, 2, 3, 2, 2, 2, 2, 2,
214
- 2, 3, 2, 2, 2, 2, 2, 2,
215
- 2, 2, 2, 2, 2, 1, 1, 1,
216
- 1, 1, 1, 1, 1, 1, 1, 1,
217
- 1, 1, 13, 2, 2, 2, 2, 2,
218
- 2, 2, 2, 2, 2, 2, 2, 2,
219
- 2, 2, 2, 2, 2, 2, 2, 2,
220
- 2, 2, 2, 2, 3, 2, 2, 2,
221
- 2, 2, 2, 2, 2, 2, 2, 2,
222
- 2, 2, 2, 2, 2, 2, 2, 2,
223
- 2, 3, 2, 2, 2, 2, 2, 1,
224
- 1, 1, 1, 1, 1, 1, 12, 2,
225
- 2, 2, 2, 2, 2, 2, 2, 2,
226
- 2, 2, 2, 2, 2, 2, 2, 2,
227
- 2, 2, 2, 2, 2, 2, 2, 2,
228
- 3, 2, 2, 2, 2, 2, 2, 2,
229
- 2, 2, 2, 2, 2, 2, 2, 2,
230
- 2, 2, 2, 2, 2, 3, 2, 2,
231
- 4, 3, 2, 4, 15, 0
232
- ]
233
-
234
- class << self
235
- attr_accessor :_lexer_range_lengths
236
- private :_lexer_range_lengths, :_lexer_range_lengths=
237
- end
238
- self._lexer_range_lengths = [
239
- 0, 1, 0, 0, 1, 0, 0, 0,
240
- 0, 1, 1, 1, 1, 1, 1, 0,
241
- 0, 0, 0, 0, 0, 0, 0, 0,
242
- 0, 0, 0, 0, 0, 0, 0, 0,
243
- 0, 0, 1, 1, 1, 0, 0, 0,
244
- 0, 0, 0, 0, 0, 0, 0, 0,
245
- 0, 0, 0, 0, 0, 0, 1, 0,
246
- 0, 0, 0, 0, 0, 1, 0, 0,
247
- 0, 0, 0, 0, 0, 0, 0, 0,
248
- 0, 1, 0, 0, 0, 0, 0, 0,
249
- 0, 0, 0, 0, 0, 0, 0, 0,
250
- 0, 0, 0, 0, 0, 0, 0, 0,
251
- 0, 0, 0, 0, 0, 0, 0, 0,
252
- 0, 0, 0, 0, 0, 0, 0, 0,
253
- 0, 0, 0, 0, 0, 0, 0, 0,
254
- 0, 0, 0, 0, 0, 0, 0, 0,
255
- 0, 0, 0, 0, 0, 0, 0, 0,
256
- 1, 0, 0, 0, 0, 0, 0, 0,
257
- 0, 0, 0, 0, 0, 0, 0, 0,
258
- 0, 0, 0, 0, 0, 0, 0, 0,
259
- 0, 0, 0, 0, 0, 0, 0, 0,
260
- 0, 0, 0, 0, 0, 0, 0, 0,
261
- 0, 0, 0, 0, 0, 0, 0, 0,
262
- 0, 0, 0, 0, 0, 0, 0, 0,
263
- 0, 0, 1, 0, 0, 0, 0, 0,
264
- 0, 0, 0, 0, 0, 0, 0, 0,
265
- 0, 0, 0, 0, 0, 0, 0, 0,
266
- 0, 0, 0, 0, 0, 0, 0, 0,
267
- 0, 0, 0, 0, 0, 0, 0, 0,
268
- 0, 0, 0, 0, 0, 0, 0, 0,
269
- 0, 0, 0, 0, 0, 0, 0, 0,
270
- 0, 0, 0, 0, 0, 0, 1, 0,
271
- 0, 0, 0, 0, 0, 0, 0, 0,
272
- 0, 0, 0, 0, 0, 0, 0, 0,
273
- 0, 0, 0, 0, 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, 1,
277
- 1, 0, 0, 1, 1, 0
278
- ]
279
-
280
- class << self
281
- attr_accessor :_lexer_index_offsets
282
- private :_lexer_index_offsets, :_lexer_index_offsets=
283
- end
284
- self._lexer_index_offsets = [
285
- 0, 0, 18, 20, 22, 39, 41, 43,
286
- 46, 49, 54, 59, 64, 69, 73, 77,
287
- 80, 82, 84, 86, 88, 90, 92, 94,
288
- 96, 98, 100, 102, 104, 106, 108, 110,
289
- 112, 115, 118, 123, 130, 135, 137, 139,
290
- 141, 143, 145, 147, 149, 152, 154, 156,
291
- 158, 160, 162, 164, 166, 168, 170, 177,
292
- 180, 183, 186, 189, 192, 195, 212, 214,
293
- 216, 219, 221, 223, 225, 227, 229, 231,
294
- 233, 235, 247, 250, 253, 256, 259, 262,
295
- 265, 268, 271, 274, 277, 280, 283, 286,
296
- 289, 292, 295, 298, 301, 304, 307, 310,
297
- 313, 316, 319, 322, 325, 328, 331, 334,
298
- 337, 340, 343, 346, 349, 352, 355, 358,
299
- 361, 364, 367, 370, 373, 376, 379, 382,
300
- 384, 386, 388, 390, 392, 394, 396, 398,
301
- 400, 402, 404, 406, 408, 410, 412, 414,
302
- 416, 429, 432, 435, 438, 441, 444, 447,
303
- 450, 453, 456, 459, 462, 465, 468, 471,
304
- 474, 477, 480, 483, 486, 489, 492, 495,
305
- 498, 501, 504, 508, 511, 514, 517, 520,
306
- 523, 526, 530, 533, 536, 539, 542, 545,
307
- 548, 551, 554, 557, 560, 563, 565, 567,
308
- 569, 571, 573, 575, 577, 579, 581, 583,
309
- 585, 587, 589, 604, 607, 610, 613, 616,
310
- 619, 622, 625, 628, 631, 634, 637, 640,
311
- 643, 646, 649, 652, 655, 658, 661, 664,
312
- 667, 670, 673, 676, 679, 683, 686, 689,
313
- 692, 695, 698, 701, 704, 707, 710, 713,
314
- 716, 719, 722, 725, 728, 731, 734, 737,
315
- 740, 743, 747, 750, 753, 756, 759, 762,
316
- 764, 766, 768, 770, 772, 774, 776, 790,
317
- 793, 796, 799, 802, 805, 808, 811, 814,
318
- 817, 820, 823, 826, 829, 832, 835, 838,
319
- 841, 844, 847, 850, 853, 856, 859, 862,
320
- 865, 869, 872, 875, 878, 881, 884, 887,
321
- 890, 893, 896, 899, 902, 905, 908, 911,
322
- 914, 917, 920, 923, 926, 929, 933, 936,
323
- 940, 946, 950, 953, 959, 976
324
- ]
325
-
326
- class << self
327
- attr_accessor :_lexer_indicies
328
- private :_lexer_indicies, :_lexer_indicies=
329
- end
330
- self._lexer_indicies = [
331
- 1, 3, 2, 4, 5, 6, 7, 8,
332
- 9, 10, 11, 12, 13, 14, 15, 16,
333
- 2, 0, 17, 0, 2, 0, 3, 2,
334
- 4, 5, 6, 7, 8, 9, 10, 11,
335
- 12, 13, 14, 15, 16, 2, 0, 18,
336
- 0, 19, 0, 21, 22, 20, 24, 25,
337
- 23, 28, 27, 29, 27, 26, 32, 31,
338
- 33, 31, 30, 32, 31, 34, 31, 30,
339
- 32, 31, 35, 31, 30, 37, 36, 36,
340
- 0, 3, 38, 38, 0, 40, 41, 39,
341
- 3, 0, 42, 0, 43, 0, 44, 0,
342
- 45, 0, 46, 0, 47, 0, 48, 0,
343
- 49, 0, 50, 0, 51, 0, 52, 0,
344
- 53, 0, 54, 0, 55, 0, 56, 0,
345
- 58, 59, 57, 61, 62, 60, 0, 0,
346
- 0, 0, 63, 64, 65, 64, 64, 67,
347
- 66, 63, 3, 68, 8, 68, 0, 69,
348
- 0, 70, 0, 71, 0, 72, 0, 73,
349
- 0, 74, 0, 75, 0, 75, 76, 0,
350
- 77, 0, 78, 0, 79, 0, 80, 0,
351
- 81, 0, 82, 0, 83, 0, 85, 84,
352
- 87, 86, 87, 88, 89, 90, 89, 88,
353
- 86, 87, 91, 86, 87, 92, 86, 87,
354
- 93, 86, 87, 94, 86, 87, 95, 86,
355
- 87, 96, 86, 98, 97, 99, 100, 101,
356
- 102, 103, 104, 105, 106, 107, 108, 109,
357
- 110, 111, 97, 0, 112, 0, 113, 0,
358
- 56, 75, 0, 114, 0, 115, 0, 116,
359
- 0, 117, 0, 118, 0, 119, 0, 121,
360
- 120, 123, 122, 123, 124, 125, 126, 125,
361
- 127, 128, 129, 130, 131, 124, 122, 123,
362
- 132, 122, 123, 133, 122, 123, 134, 122,
363
- 123, 135, 122, 123, 136, 122, 123, 137,
364
- 122, 123, 138, 122, 123, 139, 122, 123,
365
- 140, 122, 123, 141, 122, 123, 142, 122,
366
- 123, 143, 122, 123, 144, 122, 123, 145,
367
- 122, 123, 146, 122, 123, 147, 122, 123,
368
- 148, 122, 123, 149, 122, 123, 150, 122,
369
- 123, 151, 122, 123, 152, 122, 123, 153,
370
- 122, 123, 154, 122, 123, 155, 122, 123,
371
- 156, 122, 123, 157, 122, 123, 152, 122,
372
- 123, 158, 122, 123, 159, 122, 123, 160,
373
- 122, 123, 161, 122, 123, 162, 122, 123,
374
- 163, 122, 123, 164, 122, 123, 165, 122,
375
- 123, 166, 122, 123, 167, 122, 123, 168,
376
- 122, 123, 169, 122, 123, 170, 122, 123,
377
- 152, 122, 123, 171, 122, 123, 172, 122,
378
- 123, 173, 122, 123, 152, 122, 174, 0,
379
- 175, 0, 176, 0, 177, 0, 178, 0,
380
- 179, 0, 180, 0, 181, 0, 182, 0,
381
- 183, 0, 184, 0, 185, 0, 186, 0,
382
- 187, 0, 188, 0, 190, 189, 192, 191,
383
- 192, 193, 194, 195, 196, 194, 197, 198,
384
- 199, 200, 201, 193, 191, 192, 202, 191,
385
- 192, 203, 191, 192, 204, 191, 192, 205,
386
- 191, 192, 206, 191, 192, 207, 191, 192,
387
- 208, 191, 192, 209, 191, 192, 210, 191,
388
- 192, 211, 191, 192, 212, 191, 192, 213,
389
- 191, 192, 214, 191, 192, 215, 191, 192,
390
- 216, 191, 192, 217, 191, 192, 218, 191,
391
- 192, 219, 191, 192, 220, 191, 192, 221,
392
- 191, 192, 222, 191, 192, 223, 191, 192,
393
- 223, 191, 192, 224, 191, 192, 225, 191,
394
- 192, 216, 223, 191, 192, 226, 191, 192,
395
- 227, 191, 192, 228, 191, 192, 229, 191,
396
- 192, 230, 191, 192, 216, 191, 192, 231,
397
- 232, 191, 192, 222, 191, 192, 233, 191,
398
- 192, 234, 191, 192, 235, 191, 192, 236,
399
- 191, 192, 237, 191, 192, 238, 191, 192,
400
- 239, 191, 192, 240, 191, 192, 230, 191,
401
- 241, 242, 0, 74, 0, 243, 0, 244,
402
- 0, 245, 0, 246, 0, 247, 0, 248,
403
- 0, 249, 0, 250, 0, 251, 0, 252,
404
- 0, 254, 253, 256, 255, 256, 257, 258,
405
- 259, 260, 258, 261, 262, 263, 264, 265,
406
- 266, 267, 257, 255, 256, 268, 255, 256,
407
- 269, 255, 256, 270, 255, 256, 271, 255,
408
- 256, 272, 255, 256, 273, 255, 256, 274,
409
- 255, 256, 275, 255, 256, 276, 255, 256,
410
- 277, 255, 256, 278, 255, 256, 279, 255,
411
- 256, 280, 255, 256, 281, 255, 256, 282,
412
- 255, 256, 283, 255, 256, 284, 255, 256,
413
- 285, 255, 256, 286, 255, 256, 287, 255,
414
- 256, 288, 255, 256, 289, 255, 256, 289,
415
- 255, 256, 290, 255, 256, 291, 255, 256,
416
- 282, 289, 255, 256, 292, 255, 256, 293,
417
- 255, 256, 294, 255, 256, 295, 255, 256,
418
- 296, 255, 256, 282, 255, 256, 297, 255,
419
- 256, 298, 255, 256, 299, 255, 256, 300,
420
- 255, 256, 301, 255, 256, 302, 255, 256,
421
- 303, 255, 256, 304, 255, 256, 305, 255,
422
- 256, 306, 255, 256, 307, 255, 256, 308,
423
- 255, 256, 309, 255, 256, 296, 255, 256,
424
- 310, 301, 255, 256, 288, 255, 256, 311,
425
- 255, 256, 312, 255, 256, 313, 255, 256,
426
- 296, 255, 314, 0, 315, 0, 316, 0,
427
- 317, 0, 318, 0, 320, 319, 322, 321,
428
- 322, 323, 324, 325, 326, 324, 327, 328,
429
- 329, 330, 331, 332, 323, 321, 322, 333,
430
- 321, 322, 334, 321, 322, 335, 321, 322,
431
- 336, 321, 322, 337, 321, 322, 338, 321,
432
- 322, 339, 321, 322, 340, 321, 322, 341,
433
- 321, 322, 342, 321, 322, 343, 321, 322,
434
- 344, 321, 322, 345, 321, 322, 346, 321,
435
- 322, 347, 321, 322, 348, 321, 322, 349,
436
- 321, 322, 350, 321, 322, 351, 321, 322,
437
- 352, 321, 322, 353, 321, 322, 354, 321,
438
- 322, 354, 321, 322, 355, 321, 322, 356,
439
- 321, 322, 347, 354, 321, 322, 357, 321,
440
- 322, 358, 321, 322, 359, 321, 322, 360,
441
- 321, 322, 361, 321, 322, 347, 321, 322,
442
- 362, 321, 322, 363, 321, 322, 364, 321,
443
- 322, 365, 321, 322, 366, 321, 322, 367,
444
- 321, 322, 368, 321, 322, 369, 321, 322,
445
- 370, 321, 322, 371, 321, 322, 372, 321,
446
- 322, 373, 321, 322, 374, 321, 322, 361,
447
- 321, 322, 375, 366, 321, 322, 353, 321,
448
- 376, 377, 376, 0, 380, 379, 381, 382,
449
- 379, 378, 0, 384, 385, 383, 0, 384,
450
- 383, 380, 386, 384, 385, 386, 383, 380,
451
- 387, 388, 389, 390, 391, 392, 393, 394,
452
- 395, 396, 397, 398, 399, 400, 387, 0,
453
- 401, 0
454
- ]
455
-
456
- class << self
457
- attr_accessor :_lexer_trans_targs
458
- private :_lexer_trans_targs, :_lexer_trans_targs=
459
- end
460
- self._lexer_trans_targs = [
461
- 0, 2, 4, 4, 5, 15, 17, 31,
462
- 34, 37, 44, 62, 65, 119, 180, 247,
463
- 303, 3, 6, 7, 8, 9, 8, 8,
464
- 9, 8, 10, 10, 10, 11, 10, 10,
465
- 10, 11, 12, 13, 14, 4, 14, 15,
466
- 4, 16, 18, 19, 20, 21, 22, 23,
467
- 24, 25, 26, 27, 28, 29, 30, 309,
468
- 32, 33, 4, 16, 33, 4, 16, 35,
469
- 36, 4, 35, 34, 36, 38, 39, 40,
470
- 41, 42, 43, 31, 45, 46, 47, 48,
471
- 49, 50, 51, 52, 53, 54, 53, 54,
472
- 54, 4, 55, 56, 57, 58, 59, 60,
473
- 61, 4, 4, 5, 15, 17, 31, 34,
474
- 37, 44, 62, 65, 119, 180, 247, 303,
475
- 63, 64, 66, 67, 68, 69, 70, 71,
476
- 72, 73, 72, 73, 73, 4, 74, 88,
477
- 96, 101, 105, 115, 75, 76, 77, 78,
478
- 79, 80, 81, 82, 83, 84, 85, 86,
479
- 87, 4, 89, 90, 91, 92, 93, 94,
480
- 95, 61, 97, 98, 99, 100, 102, 103,
481
- 104, 105, 106, 107, 108, 109, 110, 111,
482
- 112, 113, 114, 116, 117, 118, 120, 121,
483
- 122, 123, 124, 125, 126, 127, 128, 129,
484
- 130, 131, 132, 133, 134, 135, 136, 135,
485
- 136, 136, 4, 137, 151, 152, 159, 160,
486
- 163, 169, 138, 139, 140, 141, 142, 143,
487
- 144, 145, 146, 147, 148, 149, 150, 4,
488
- 61, 153, 154, 155, 156, 157, 158, 151,
489
- 161, 162, 164, 165, 166, 167, 168, 170,
490
- 171, 172, 173, 174, 175, 176, 177, 178,
491
- 179, 181, 182, 183, 184, 185, 186, 187,
492
- 188, 189, 190, 191, 192, 193, 194, 193,
493
- 194, 194, 4, 195, 209, 210, 217, 218,
494
- 221, 227, 241, 243, 196, 197, 198, 199,
495
- 200, 201, 202, 203, 204, 205, 206, 207,
496
- 208, 4, 61, 211, 212, 213, 214, 215,
497
- 216, 209, 219, 220, 222, 223, 224, 225,
498
- 226, 228, 229, 230, 231, 232, 233, 234,
499
- 235, 236, 237, 238, 239, 240, 242, 244,
500
- 245, 246, 248, 249, 250, 251, 252, 253,
501
- 254, 253, 254, 254, 4, 255, 269, 270,
502
- 277, 278, 281, 287, 301, 256, 257, 258,
503
- 259, 260, 261, 262, 263, 264, 265, 266,
504
- 267, 268, 4, 61, 271, 272, 273, 274,
505
- 275, 276, 269, 279, 280, 282, 283, 284,
506
- 285, 286, 288, 289, 290, 291, 292, 293,
507
- 294, 295, 296, 297, 298, 299, 300, 302,
508
- 303, 304, 305, 307, 308, 306, 304, 305,
509
- 306, 304, 307, 308, 5, 15, 17, 31,
510
- 34, 37, 44, 62, 65, 119, 180, 247,
511
- 303, 0
512
- ]
513
-
514
- class << self
515
- attr_accessor :_lexer_trans_actions
516
- private :_lexer_trans_actions, :_lexer_trans_actions=
517
- end
518
- self._lexer_trans_actions = [
519
- 43, 0, 0, 54, 3, 1, 0, 29,
520
- 1, 29, 29, 29, 29, 29, 29, 29,
521
- 35, 0, 0, 0, 7, 139, 48, 0,
522
- 102, 9, 5, 45, 134, 45, 0, 33,
523
- 122, 33, 33, 0, 11, 106, 0, 0,
524
- 114, 25, 0, 0, 0, 0, 0, 0,
525
- 0, 0, 0, 0, 0, 0, 0, 0,
526
- 0, 57, 149, 126, 0, 110, 23, 0,
527
- 27, 118, 27, 51, 0, 0, 0, 0,
528
- 0, 0, 0, 0, 0, 0, 0, 0,
529
- 0, 0, 0, 0, 57, 144, 0, 54,
530
- 0, 81, 84, 0, 0, 0, 0, 0,
531
- 21, 31, 130, 60, 57, 31, 63, 57,
532
- 63, 63, 63, 63, 63, 63, 63, 66,
533
- 0, 0, 0, 0, 0, 0, 0, 0,
534
- 57, 144, 0, 54, 0, 69, 33, 84,
535
- 84, 84, 84, 84, 0, 0, 0, 0,
536
- 0, 0, 0, 0, 0, 0, 0, 0,
537
- 0, 13, 0, 0, 0, 0, 0, 0,
538
- 0, 13, 0, 0, 0, 0, 0, 0,
539
- 0, 0, 0, 0, 0, 0, 0, 0,
540
- 0, 0, 0, 0, 0, 0, 0, 0,
541
- 0, 0, 0, 0, 0, 0, 0, 0,
542
- 0, 0, 0, 0, 0, 57, 144, 0,
543
- 54, 0, 78, 33, 84, 84, 84, 84,
544
- 84, 84, 0, 0, 0, 0, 0, 0,
545
- 0, 0, 0, 0, 0, 0, 0, 19,
546
- 19, 0, 0, 0, 0, 0, 0, 0,
547
- 0, 0, 0, 0, 0, 0, 0, 0,
548
- 0, 0, 0, 0, 0, 0, 0, 0,
549
- 0, 0, 0, 0, 0, 0, 0, 0,
550
- 0, 0, 0, 0, 0, 57, 144, 0,
551
- 54, 0, 75, 33, 84, 84, 84, 84,
552
- 84, 84, 84, 84, 0, 0, 0, 0,
553
- 0, 0, 0, 0, 0, 0, 0, 0,
554
- 0, 17, 17, 0, 0, 0, 0, 0,
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, 57,
559
- 144, 0, 54, 0, 72, 33, 84, 84,
560
- 84, 84, 84, 84, 84, 0, 0, 0,
561
- 0, 0, 0, 0, 0, 0, 0, 0,
562
- 0, 0, 15, 15, 0, 0, 0, 0,
563
- 0, 0, 0, 0, 0, 0, 0, 0,
564
- 0, 0, 0, 0, 0, 0, 0, 0,
565
- 0, 0, 0, 0, 0, 0, 0, 0,
566
- 0, 0, 37, 37, 54, 37, 87, 0,
567
- 0, 39, 0, 0, 93, 90, 41, 96,
568
- 90, 96, 96, 96, 96, 96, 96, 96,
569
- 99, 0
570
- ]
571
-
572
- class << self
573
- attr_accessor :_lexer_eof_actions
574
- private :_lexer_eof_actions, :_lexer_eof_actions=
575
- end
576
- self._lexer_eof_actions = [
577
- 0, 43, 43, 43, 43, 43, 43, 43,
578
- 43, 43, 43, 43, 43, 43, 43, 43,
579
- 43, 43, 43, 43, 43, 43, 43, 43,
580
- 43, 43, 43, 43, 43, 43, 43, 43,
581
- 43, 43, 43, 43, 43, 43, 43, 43,
582
- 43, 43, 43, 43, 43, 43, 43, 43,
583
- 43, 43, 43, 43, 43, 43, 43, 43,
584
- 43, 43, 43, 43, 43, 43, 43, 43,
585
- 43, 43, 43, 43, 43, 43, 43, 43,
586
- 43, 43, 43, 43, 43, 43, 43, 43,
587
- 43, 43, 43, 43, 43, 43, 43, 43,
588
- 43, 43, 43, 43, 43, 43, 43, 43,
589
- 43, 43, 43, 43, 43, 43, 43, 43,
590
- 43, 43, 43, 43, 43, 43, 43, 43,
591
- 43, 43, 43, 43, 43, 43, 43, 43,
592
- 43, 43, 43, 43, 43, 43, 43, 43,
593
- 43, 43, 43, 43, 43, 43, 43, 43,
594
- 43, 43, 43, 43, 43, 43, 43, 43,
595
- 43, 43, 43, 43, 43, 43, 43, 43,
596
- 43, 43, 43, 43, 43, 43, 43, 43,
597
- 43, 43, 43, 43, 43, 43, 43, 43,
598
- 43, 43, 43, 43, 43, 43, 43, 43,
599
- 43, 43, 43, 43, 43, 43, 43, 43,
600
- 43, 43, 43, 43, 43, 43, 43, 43,
601
- 43, 43, 43, 43, 43, 43, 43, 43,
602
- 43, 43, 43, 43, 43, 43, 43, 43,
603
- 43, 43, 43, 43, 43, 43, 43, 43,
604
- 43, 43, 43, 43, 43, 43, 43, 43,
605
- 43, 43, 43, 43, 43, 43, 43, 43,
606
- 43, 43, 43, 43, 43, 43, 43, 43,
607
- 43, 43, 43, 43, 43, 43, 43, 43,
608
- 43, 43, 43, 43, 43, 43, 43, 43,
609
- 43, 43, 43, 43, 43, 43, 43, 43,
610
- 43, 43, 43, 43, 43, 43, 43, 43,
611
- 43, 43, 43, 43, 43, 43, 43, 43,
612
- 43, 43, 43, 43, 43, 43, 43, 43,
613
- 43, 43, 43, 43, 43, 43, 43, 43,
614
- 43, 43, 43, 43, 43, 43, 43, 43,
615
- 43, 43, 43, 43, 43, 43
616
- ]
617
-
618
- class << self
619
- attr_accessor :lexer_start
620
- end
621
- self.lexer_start = 1;
622
- class << self
623
- attr_accessor :lexer_first_final
624
- end
625
- self.lexer_first_final = 309;
626
- class << self
627
- attr_accessor :lexer_error
628
- end
629
- self.lexer_error = 0;
630
-
631
- class << self
632
- attr_accessor :lexer_en_main
633
- end
634
- self.lexer_en_main = 1;
635
-
636
-
637
- # line 133 "ragel/i18n/et.rb.rl"
638
- end
639
-
640
- def scan(data)
641
- data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably
642
- eof = pe = data.length
643
-
644
- @line_number = 1
645
- @last_newline = 0
646
-
647
-
648
- # line 649 "lib/gherkin/lexer/et.rb"
649
- begin
650
- p ||= 0
651
- pe ||= data.length
652
- cs = lexer_start
653
- end
654
-
655
- # line 143 "ragel/i18n/et.rb.rl"
656
-
657
- # line 658 "lib/gherkin/lexer/et.rb"
658
- begin
659
- _klen, _trans, _keys, _acts, _nacts = nil
660
- _goto_level = 0
661
- _resume = 10
662
- _eof_trans = 15
663
- _again = 20
664
- _test_eof = 30
665
- _out = 40
666
- while true
667
- _trigger_goto = false
668
- if _goto_level <= 0
669
- if p == pe
670
- _goto_level = _test_eof
671
- next
672
- end
673
- if cs == 0
674
- _goto_level = _out
675
- next
676
- end
677
- end
678
- if _goto_level <= _resume
679
- _keys = _lexer_key_offsets[cs]
680
- _trans = _lexer_index_offsets[cs]
681
- _klen = _lexer_single_lengths[cs]
682
- _break_match = false
683
-
684
- begin
685
- if _klen > 0
686
- _lower = _keys
687
- _upper = _keys + _klen - 1
688
-
689
- loop do
690
- break if _upper < _lower
691
- _mid = _lower + ( (_upper - _lower) >> 1 )
692
-
693
- if data[p].ord < _lexer_trans_keys[_mid]
694
- _upper = _mid - 1
695
- elsif data[p].ord > _lexer_trans_keys[_mid]
696
- _lower = _mid + 1
697
- else
698
- _trans += (_mid - _keys)
699
- _break_match = true
700
- break
701
- end
702
- end # loop
703
- break if _break_match
704
- _keys += _klen
705
- _trans += _klen
706
- end
707
- _klen = _lexer_range_lengths[cs]
708
- if _klen > 0
709
- _lower = _keys
710
- _upper = _keys + (_klen << 1) - 2
711
- loop do
712
- break if _upper < _lower
713
- _mid = _lower + (((_upper-_lower) >> 1) & ~1)
714
- if data[p].ord < _lexer_trans_keys[_mid]
715
- _upper = _mid - 2
716
- elsif data[p].ord > _lexer_trans_keys[_mid+1]
717
- _lower = _mid + 2
718
- else
719
- _trans += ((_mid - _keys) >> 1)
720
- _break_match = true
721
- break
722
- end
723
- end # loop
724
- break if _break_match
725
- _trans += _klen
726
- end
727
- end while false
728
- _trans = _lexer_indicies[_trans]
729
- cs = _lexer_trans_targs[_trans]
730
- if _lexer_trans_actions[_trans] != 0
731
- _acts = _lexer_trans_actions[_trans]
732
- _nacts = _lexer_actions[_acts]
733
- _acts += 1
734
- while _nacts > 0
735
- _nacts -= 1
736
- _acts += 1
737
- case _lexer_actions[_acts - 1]
738
- when 0 then
739
- # line 11 "ragel/i18n/et.rb.rl"
740
- begin
741
-
742
- @content_start = p
743
- @current_line = @line_number
744
- @start_col = p - @last_newline - "#{@keyword}:".length
745
- end
746
- when 1 then
747
- # line 17 "ragel/i18n/et.rb.rl"
748
- begin
749
-
750
- @current_line = @line_number
751
- @start_col = p - @last_newline
752
- end
753
- when 2 then
754
- # line 22 "ragel/i18n/et.rb.rl"
755
- begin
756
-
757
- @content_start = p
758
- end
759
- when 3 then
760
- # line 26 "ragel/i18n/et.rb.rl"
761
- begin
762
-
763
- @docstring_content_type_start = p
764
- end
765
- when 4 then
766
- # line 29 "ragel/i18n/et.rb.rl"
767
- begin
768
-
769
- @docstring_content_type_end = p
770
- end
771
- when 5 then
772
- # line 33 "ragel/i18n/et.rb.rl"
773
- begin
774
-
775
- con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""'))
776
- con_type = utf8_pack(data[@docstring_content_type_start...@docstring_content_type_end]).strip
777
- @listener.doc_string(con_type, con, @current_line)
778
- end
779
- when 6 then
780
- # line 38 "ragel/i18n/et.rb.rl"
781
- begin
782
-
783
- p = store_keyword_content(:feature, data, p, eof)
784
- end
785
- when 7 then
786
- # line 42 "ragel/i18n/et.rb.rl"
787
- begin
788
-
789
- p = store_keyword_content(:background, data, p, eof)
790
- end
791
- when 8 then
792
- # line 46 "ragel/i18n/et.rb.rl"
793
- begin
794
-
795
- p = store_keyword_content(:scenario, data, p, eof)
796
- end
797
- when 9 then
798
- # line 50 "ragel/i18n/et.rb.rl"
799
- begin
800
-
801
- p = store_keyword_content(:scenario_outline, data, p, eof)
802
- end
803
- when 10 then
804
- # line 54 "ragel/i18n/et.rb.rl"
805
- begin
806
-
807
- p = store_keyword_content(:examples, data, p, eof)
808
- end
809
- when 11 then
810
- # line 58 "ragel/i18n/et.rb.rl"
811
- begin
812
-
813
- con = utf8_pack(data[@content_start...p]).strip
814
- @listener.step(@keyword, con, @current_line)
815
- end
816
- when 12 then
817
- # line 63 "ragel/i18n/et.rb.rl"
818
- begin
819
-
820
- con = utf8_pack(data[@content_start...p]).strip
821
- @listener.comment(con, @line_number)
822
- @keyword_start = nil
823
- end
824
- when 13 then
825
- # line 69 "ragel/i18n/et.rb.rl"
826
- begin
827
-
828
- con = utf8_pack(data[@content_start...p]).strip
829
- @listener.tag(con, @current_line)
830
- @keyword_start = nil
831
- end
832
- when 14 then
833
- # line 75 "ragel/i18n/et.rb.rl"
834
- begin
835
-
836
- @line_number += 1
837
- end
838
- when 15 then
839
- # line 79 "ragel/i18n/et.rb.rl"
840
- begin
841
-
842
- @last_newline = p + 1
843
- end
844
- when 16 then
845
- # line 83 "ragel/i18n/et.rb.rl"
846
- begin
847
-
848
- @keyword_start ||= p
849
- end
850
- when 17 then
851
- # line 87 "ragel/i18n/et.rb.rl"
852
- begin
853
-
854
- @keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'')
855
- @keyword_start = nil
856
- end
857
- when 18 then
858
- # line 92 "ragel/i18n/et.rb.rl"
859
- begin
860
-
861
- @next_keyword_start = p
862
- end
863
- when 19 then
864
- # line 96 "ragel/i18n/et.rb.rl"
865
- begin
866
-
867
- p = p - 1
868
- current_row = []
869
- @current_line = @line_number
870
- end
871
- when 20 then
872
- # line 102 "ragel/i18n/et.rb.rl"
873
- begin
874
-
875
- @content_start = p
876
- end
877
- when 21 then
878
- # line 106 "ragel/i18n/et.rb.rl"
879
- begin
880
-
881
- con = utf8_pack(data[@content_start...p]).strip
882
- current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\")
883
- end
884
- when 22 then
885
- # line 111 "ragel/i18n/et.rb.rl"
886
- begin
887
-
888
- @listener.row(current_row, @current_line)
889
- end
890
- when 23 then
891
- # line 115 "ragel/i18n/et.rb.rl"
892
- begin
893
-
894
- if cs < lexer_first_final
895
- content = current_line_content(data, p)
896
- 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])
897
- else
898
- @listener.eof
899
- end
900
- end
901
- # line 902 "lib/gherkin/lexer/et.rb"
902
- end # action switch
903
- end
904
- end
905
- if _trigger_goto
906
- next
907
- end
908
- end
909
- if _goto_level <= _again
910
- if cs == 0
911
- _goto_level = _out
912
- next
913
- end
914
- p += 1
915
- if p != pe
916
- _goto_level = _resume
917
- next
918
- end
919
- end
920
- if _goto_level <= _test_eof
921
- if p == eof
922
- __acts = _lexer_eof_actions[cs]
923
- __nacts = _lexer_actions[__acts]
924
- __acts += 1
925
- while __nacts > 0
926
- __nacts -= 1
927
- __acts += 1
928
- case _lexer_actions[__acts - 1]
929
- when 23 then
930
- # line 115 "ragel/i18n/et.rb.rl"
931
- begin
932
-
933
- if cs < lexer_first_final
934
- content = current_line_content(data, p)
935
- 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])
936
- else
937
- @listener.eof
938
- end
939
- end
940
- # line 941 "lib/gherkin/lexer/et.rb"
941
- end # eof action switch
942
- end
943
- if _trigger_goto
944
- next
945
- end
946
- end
947
- end
948
- if _goto_level <= _out
949
- break
950
- end
951
- end
952
- end
953
-
954
- # line 144 "ragel/i18n/et.rb.rl"
955
- end
956
-
957
- def unindent(startcol, text)
958
- text.gsub(/^[\t ]{0,#{startcol}}/, "")
959
- end
960
-
961
- def store_keyword_content(event, data, p, eof)
962
- end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
963
- content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
964
- content_lines = content.split("\n")
965
- name = content_lines.shift || ""
966
- name.strip!
967
- description = content_lines.join("\n")
968
- @listener.__send__(event, @keyword, name, description, @current_line)
969
- @next_keyword_start ? @next_keyword_start - 1 : p
970
- ensure
971
- @next_keyword_start = nil
972
- end
973
-
974
- def current_line_content(data, p)
975
- rest = data[@last_newline..-1]
976
- utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
977
- end
978
-
979
- if (RUBY_VERSION =~ /^1\.9|2\.0/)
980
- def utf8_pack(array)
981
- array.pack("c*").force_encoding("UTF-8")
982
- end
983
- else
984
- def utf8_pack(array)
985
- array.pack("c*")
986
- end
987
- end
988
- end
989
- end
990
- end