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