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