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,1452 +0,0 @@
1
-
2
- # line 1 "ragel/i18n/sk.rb.rl"
3
- require 'gherkin/native'
4
-
5
- module Gherkin
6
- module Lexer
7
- class Sk #:nodoc:
8
- native_impl('gherkin')
9
-
10
-
11
- # line 125 "ragel/i18n/sk.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/sk.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, 21, 22, 23, 43, 44, 45,
54
- 47, 49, 54, 59, 64, 69, 73, 77,
55
- 79, 80, 81, 82, 83, 84, 85, 86,
56
- 87, 88, 89, 90, 91, 92, 93, 94,
57
- 95, 97, 99, 104, 111, 116, 119, 123,
58
- 127, 130, 133, 136, 139, 142, 145, 148,
59
- 151, 154, 157, 160, 163, 166, 169, 172,
60
- 173, 174, 175, 176, 177, 178, 179, 180,
61
- 181, 182, 195, 197, 199, 201, 203, 205,
62
- 207, 209, 211, 213, 215, 217, 219, 221,
63
- 223, 225, 227, 229, 231, 233, 235, 237,
64
- 257, 258, 259, 260, 261, 262, 263, 264,
65
- 265, 266, 267, 268, 269, 270, 271, 272,
66
- 273, 274, 276, 277, 278, 279, 295, 297,
67
- 299, 301, 303, 305, 307, 309, 311, 313,
68
- 315, 317, 319, 321, 323, 325, 329, 351,
69
- 352, 353, 354, 355, 356, 357, 358, 359,
70
- 360, 361, 362, 363, 364, 365, 367, 371,
71
- 372, 373, 374, 375, 376, 377, 378, 379,
72
- 380, 381, 382, 383, 384, 385, 386, 387,
73
- 388, 389, 390, 391, 409, 411, 413, 415,
74
- 417, 419, 421, 423, 425, 427, 429, 431,
75
- 433, 435, 437, 439, 443, 465, 466, 467,
76
- 468, 469, 470, 471, 472, 473, 474, 492,
77
- 494, 496, 498, 500, 502, 504, 506, 508,
78
- 510, 512, 514, 516, 518, 520, 522, 526,
79
- 548, 549, 550, 551, 552, 553, 554, 555,
80
- 556, 557, 558, 559, 560, 561, 562, 563,
81
- 564, 565, 566, 567, 568, 569, 570, 571,
82
- 572, 574, 575, 576, 577, 578, 579, 580,
83
- 581, 582, 583, 584, 585, 586, 587, 588,
84
- 589, 593, 599, 602, 604, 610, 630, 632,
85
- 634, 636, 638, 640, 642, 644, 646, 648,
86
- 650, 652, 654, 656, 658, 660, 662, 664,
87
- 666, 668, 670, 672, 674, 676, 678, 680,
88
- 683, 685, 687, 689, 691, 693, 695, 697,
89
- 699, 701, 703, 705, 707, 709, 711, 716,
90
- 718, 720, 722, 724, 726, 728, 730, 732,
91
- 734, 736, 738, 740, 742, 744, 746, 748,
92
- 750, 752, 754, 756, 758, 760, 762, 764,
93
- 766, 768, 770, 772, 774, 776, 778, 780,
94
- 782, 784, 786, 788, 790, 792, 794, 796,
95
- 798, 800, 802, 804, 806, 808, 810, 812,
96
- 813, 814, 815, 816, 817, 818, 819, 820,
97
- 821, 822, 823, 824, 825, 826, 827, 829,
98
- 831, 833, 835, 837, 839, 841, 843, 845,
99
- 847, 849, 851, 853, 855, 857, 859, 861,
100
- 863, 865, 867, 869, 871, 873, 875, 877,
101
- 880, 882, 884, 886, 888, 890, 892, 894,
102
- 896, 898, 900, 902, 904, 906, 908, 912,
103
- 914, 916, 918, 920, 922, 924, 926, 928,
104
- 930, 932, 934, 936, 938, 940, 942, 944,
105
- 946, 948, 950, 952, 954, 956, 958, 960,
106
- 962, 964, 966, 968, 970, 972, 974, 976,
107
- 978, 980, 982, 984, 986, 988, 990, 992,
108
- 994, 996, 998, 999, 1000, 1001, 1002, 1003,
109
- 1004, 1005, 1006, 1007, 1008, 1017, 1019, 1021,
110
- 1023, 1025, 1027, 1029, 1031, 1033, 1035, 1037,
111
- 1039, 1041, 1043, 1045, 1047, 1049, 1051, 1053,
112
- 1055, 1057, 1059, 1061, 1063, 1065, 1067, 1069,
113
- 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077,
114
- 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1086,
115
- 1088, 1090, 1092, 1094, 1096, 1098, 1100, 1102,
116
- 1104, 1106, 1108, 1112, 1114, 1116, 1118, 1120,
117
- 1122, 1124, 1126, 1128, 1130, 1132, 1134, 1136,
118
- 1138, 1140, 1142, 1144, 1146, 1148, 1150, 1152,
119
- 1154, 1156, 1158, 1160, 1162, 1164, 1166, 1168,
120
- 1170, 1172, 1174, 1176, 1178, 1180, 1182, 1184,
121
- 1186, 1188, 1190, 1192, 1194, 1196, 1198, 1200,
122
- 1202, 1204, 1206, 1208, 1210, 1212, 1214, 1216,
123
- 1218, 1220, 1222, 1224, 1226, 1229, 1231, 1233,
124
- 1235, 1237, 1239, 1241, 1243, 1245, 1247, 1249,
125
- 1251, 1253, 1255, 1258, 1261, 1263, 1265, 1267,
126
- 1269, 1271, 1273, 1275, 1277, 1279, 1281, 1283,
127
- 1285, 1287, 1289, 1291, 1293, 1295, 1297, 1299,
128
- 1301, 1303, 1305, 1307, 1309, 1311, 1313, 1315,
129
- 1317, 1319, 1321, 1323, 1325, 1327
130
- ]
131
-
132
- class << self
133
- attr_accessor :_lexer_trans_keys
134
- private :_lexer_trans_keys, :_lexer_trans_keys=
135
- end
136
- self._lexer_trans_keys = [
137
- -17, 10, 32, 34, 35, 37, 42, 64,
138
- 65, 70, 75, 78, 79, 80, 83, 84,
139
- 86, 90, 124, 9, 13, -69, -65, 10,
140
- 32, 34, 35, 37, 42, 64, 65, 70,
141
- 75, 78, 79, 80, 83, 84, 86, 90,
142
- 124, 9, 13, 34, 34, 10, 13, 10,
143
- 13, 10, 32, 34, 9, 13, 10, 32,
144
- 34, 9, 13, 10, 32, 34, 9, 13,
145
- 10, 32, 34, 9, 13, 10, 32, 9,
146
- 13, 10, 32, 9, 13, 10, 13, 10,
147
- 95, 70, 69, 65, 84, 85, 82, 69,
148
- 95, 69, 78, 68, 95, 37, 32, 10,
149
- 13, 10, 13, 13, 32, 64, 9, 10,
150
- 9, 10, 13, 32, 64, 11, 12, 10,
151
- 32, 64, 9, 13, 32, 107, 108, 10,
152
- 13, 116, 122, 10, 13, 97, 105, 10,
153
- 13, 107, 10, 13, 116, 10, 13, 105,
154
- 10, 13, 101, -59, 10, 13, -66, 10,
155
- 13, 10, 13, 32, -61, 10, 13, -95,
156
- 10, 13, 10, 13, 114, 10, 13, 111,
157
- 10, 13, 118, 10, 13, 101, -59, 10,
158
- 13, -120, 10, 13, 101, 117, 110, 107,
159
- 99, 105, 97, 58, 10, 10, 10, 32,
160
- 35, 37, 64, 70, 78, 79, 80, 83,
161
- 86, 9, 13, 10, 95, 10, 70, 10,
162
- 69, 10, 65, 10, 84, 10, 85, 10,
163
- 82, 10, 69, 10, 95, 10, 69, 10,
164
- 78, 10, 68, 10, 95, 10, 37, 10,
165
- 117, 10, 110, 10, 107, 10, 99, 10,
166
- 105, 10, 97, 10, 58, 10, 32, 34,
167
- 35, 37, 42, 64, 65, 70, 75, 78,
168
- 79, 80, 83, 84, 86, 90, 124, 9,
169
- 13, 101, -60, -113, -61, -95, -60, -115,
170
- 114, 116, 32, 83, 99, 101, 110, -61,
171
- -95, 114, 97, 117, 58, 10, 10, 10,
172
- 32, 35, 37, 42, 64, 65, 70, 75,
173
- 80, 83, 84, 86, 90, 9, 13, 10,
174
- 95, 10, 70, 10, 69, 10, 65, 10,
175
- 84, 10, 85, 10, 82, 10, 69, 10,
176
- 95, 10, 69, 10, 78, 10, 68, 10,
177
- 95, 10, 37, 10, 32, 10, 32, 107,
178
- 108, 10, 32, 34, 35, 37, 42, 64,
179
- 65, 70, 75, 78, 79, 80, 83, 84,
180
- 86, 90, 116, 122, 124, 9, 13, 115,
181
- 110, 111, 118, 97, 32, 83, 99, 101,
182
- 110, -61, -95, 114, 97, 111, 114, -59,
183
- 107, 116, 122, -66, 105, 97, 100, 97,
184
- 118, 107, 105, 97, -60, -66, 111, 109,
185
- 97, 100, 105, 101, 58, 10, 10, 10,
186
- 32, 35, 37, 42, 64, 65, 70, 75,
187
- 78, 79, 80, 83, 84, 86, 90, 9,
188
- 13, 10, 95, 10, 70, 10, 69, 10,
189
- 65, 10, 84, 10, 85, 10, 82, 10,
190
- 69, 10, 95, 10, 69, 10, 78, 10,
191
- 68, 10, 95, 10, 37, 10, 32, 10,
192
- 32, 107, 108, 10, 32, 34, 35, 37,
193
- 42, 64, 65, 70, 75, 78, 79, 80,
194
- 83, 84, 86, 90, 116, 122, 124, 9,
195
- 13, 99, 101, 110, -61, -95, 114, 58,
196
- 10, 10, 10, 32, 35, 37, 42, 64,
197
- 65, 70, 75, 78, 79, 80, 83, 84,
198
- 86, 90, 9, 13, 10, 95, 10, 70,
199
- 10, 69, 10, 65, 10, 84, 10, 85,
200
- 10, 82, 10, 69, 10, 95, 10, 69,
201
- 10, 78, 10, 68, 10, 95, 10, 37,
202
- 10, 32, 10, 32, 107, 108, 10, 32,
203
- 34, 35, 37, 42, 64, 65, 70, 75,
204
- 78, 79, 80, 83, 84, 86, 90, 116,
205
- 122, 124, 9, 13, 97, 107, 108, 97,
206
- 115, 116, 110, 111, 115, -59, -91, 97,
207
- 32, 112, 114, 101, 100, 112, 111, 107,
208
- 108, 97, 100, 117, 97, 105, 107, 116,
209
- 105, 101, -59, -66, 32, -61, -95, 114,
210
- 111, 118, 101, -59, -120, 32, 124, 9,
211
- 13, 10, 32, 92, 124, 9, 13, 10,
212
- 92, 124, 10, 92, 10, 32, 92, 124,
213
- 9, 13, 10, 32, 34, 35, 37, 42,
214
- 64, 65, 70, 75, 78, 79, 80, 83,
215
- 84, 86, 90, 124, 9, 13, 10, 101,
216
- 10, 117, 10, 110, 10, 107, 10, 99,
217
- 10, 105, 10, 97, 10, 58, 10, 101,
218
- -60, 10, -113, 10, -61, 10, -95, 10,
219
- -60, 10, -115, 10, 10, 114, 10, 116,
220
- 10, 32, 10, 83, 10, 99, 10, 101,
221
- 10, 110, -61, 10, -95, 10, 10, 114,
222
- 10, 97, 117, 10, 115, 10, 110, 10,
223
- 111, 10, 118, 10, 97, 10, 32, 10,
224
- 83, 10, 99, 10, 101, 10, 110, -61,
225
- 10, -95, 10, 10, 114, 10, 111, -59,
226
- 10, 107, 116, 122, -66, 10, 10, 105,
227
- 10, 97, 10, 100, 10, 97, 10, 118,
228
- 10, 107, 10, 105, 10, 97, -60, 10,
229
- -66, 10, 10, 111, 10, 109, 10, 97,
230
- 10, 100, 10, 105, 10, 101, 10, 99,
231
- 10, 101, 10, 110, -61, 10, -95, 10,
232
- 10, 114, 10, 97, 10, 107, 10, 108,
233
- 10, 97, 10, 115, 10, 116, 10, 110,
234
- 10, 111, 10, 115, -59, 10, -91, 10,
235
- 10, 97, 10, 32, 10, 112, 10, 114,
236
- 10, 101, 10, 100, 10, 112, 10, 111,
237
- 10, 107, 10, 108, 10, 97, 10, 100,
238
- 10, 117, 97, 105, 107, 116, 105, 101,
239
- -59, -66, 32, -61, -95, 114, 111, 118,
240
- 101, -59, -120, 10, 101, 10, 117, 10,
241
- 110, 10, 107, 10, 99, 10, 105, 10,
242
- 97, 10, 58, 10, 101, -60, 10, -113,
243
- 10, -61, 10, -95, 10, -60, 10, -115,
244
- 10, 10, 114, 10, 116, 10, 32, 10,
245
- 83, 10, 99, 10, 101, 10, 110, -61,
246
- 10, -95, 10, 10, 114, 10, 97, 117,
247
- 10, 115, 10, 110, 10, 111, 10, 118,
248
- 10, 97, 10, 32, 10, 83, 10, 99,
249
- 10, 101, 10, 110, -61, 10, -95, 10,
250
- 10, 114, 10, 111, -59, 10, 107, 116,
251
- -66, 10, 10, 105, 10, 97, 10, 100,
252
- 10, 97, 10, 118, 10, 107, 10, 105,
253
- 10, 97, -60, 10, -66, 10, 10, 111,
254
- 10, 109, 10, 99, 10, 101, 10, 110,
255
- -61, 10, -95, 10, 10, 114, 10, 97,
256
- 10, 107, 10, 108, 10, 97, 10, 115,
257
- 10, 116, 10, 110, 10, 111, 10, 115,
258
- -59, 10, -91, 10, 10, 97, 10, 32,
259
- 10, 112, 10, 114, 10, 101, 10, 100,
260
- 10, 112, 10, 111, 10, 107, 10, 108,
261
- 10, 97, 10, 100, 10, 117, -61, -83,
262
- 107, 108, 97, 100, 121, 58, 10, 10,
263
- 10, 32, 35, 70, 80, 86, 124, 9,
264
- 13, 10, 117, 10, 110, 10, 107, 10,
265
- 99, 10, 105, 10, 97, 10, 58, 10,
266
- 111, -59, 10, -66, 10, 10, 105, 10,
267
- 97, 10, 100, 10, 97, 10, 118, 10,
268
- 107, 10, 108, 10, 97, 10, 115, 10,
269
- 116, 10, 110, 10, 111, 10, 115, -59,
270
- 10, -91, 10, 97, 105, 107, 116, 105,
271
- 101, -59, -66, 32, -61, -95, 114, 111,
272
- 118, 101, -59, -120, 10, 101, 10, 117,
273
- 10, 110, 10, 107, 10, 99, 10, 105,
274
- 10, 97, 10, 58, 10, 101, -60, 10,
275
- -113, 10, 10, 111, -59, 10, 107, 116,
276
- -66, 10, 10, 105, 10, 97, 10, 100,
277
- 10, 97, 10, 118, 10, 107, 10, 105,
278
- 10, 97, -60, 10, -66, 10, 10, 111,
279
- 10, 109, 10, 99, 10, 101, 10, 110,
280
- -61, 10, -95, 10, 10, 114, 10, 97,
281
- 10, 107, 10, 108, 10, 97, 10, 115,
282
- 10, 116, 10, 110, 10, 111, 10, 115,
283
- -59, 10, -91, 10, 10, 97, 10, 32,
284
- 10, 112, 10, 114, 10, 101, 10, 100,
285
- 10, 112, 10, 111, 10, 107, 10, 108,
286
- 10, 97, 10, 100, 10, 117, -61, 10,
287
- -95, 10, -60, 10, -115, 10, 10, 114,
288
- 10, 116, 10, 32, 10, 83, 10, 99,
289
- 10, 101, 10, 110, -61, 10, -95, 10,
290
- 10, 114, 10, 97, 117, 10, 115, 10,
291
- 110, 10, 111, 10, 118, 10, 97, 10,
292
- 32, 10, 83, 10, 99, 10, 101, 10,
293
- 110, -61, 10, -95, 10, 10, 114, 10,
294
- 111, 114, -59, 10, 122, -66, 10, 10,
295
- 105, 10, 97, 10, 100, 10, 97, 10,
296
- 118, 10, 107, 10, 97, 10, 100, 10,
297
- 105, 10, 101, -61, 10, -83, 10, 10,
298
- 107, 10, 108, 10, 97, 10, 100, 10,
299
- 121, 10, 99, 10, 101, 10, 110, -61,
300
- 10, -95, 10, 10, 114, 10, 108, 10,
301
- 97, 10, 115, 10, 116, 10, 110, 10,
302
- 111, 10, 115, -59, 10, -91, 10, 0
303
- ]
304
-
305
- class << self
306
- attr_accessor :_lexer_single_lengths
307
- private :_lexer_single_lengths, :_lexer_single_lengths=
308
- end
309
- self._lexer_single_lengths = [
310
- 0, 19, 1, 1, 18, 1, 1, 2,
311
- 2, 3, 3, 3, 3, 2, 2, 2,
312
- 1, 1, 1, 1, 1, 1, 1, 1,
313
- 1, 1, 1, 1, 1, 1, 1, 1,
314
- 2, 2, 3, 5, 3, 3, 4, 4,
315
- 3, 3, 3, 3, 3, 3, 3, 3,
316
- 3, 3, 3, 3, 3, 3, 3, 1,
317
- 1, 1, 1, 1, 1, 1, 1, 1,
318
- 1, 11, 2, 2, 2, 2, 2, 2,
319
- 2, 2, 2, 2, 2, 2, 2, 2,
320
- 2, 2, 2, 2, 2, 2, 2, 18,
321
- 1, 1, 1, 1, 1, 1, 1, 1,
322
- 1, 1, 1, 1, 1, 1, 1, 1,
323
- 1, 2, 1, 1, 1, 14, 2, 2,
324
- 2, 2, 2, 2, 2, 2, 2, 2,
325
- 2, 2, 2, 2, 2, 4, 20, 1,
326
- 1, 1, 1, 1, 1, 1, 1, 1,
327
- 1, 1, 1, 1, 1, 2, 4, 1,
328
- 1, 1, 1, 1, 1, 1, 1, 1,
329
- 1, 1, 1, 1, 1, 1, 1, 1,
330
- 1, 1, 1, 16, 2, 2, 2, 2,
331
- 2, 2, 2, 2, 2, 2, 2, 2,
332
- 2, 2, 2, 4, 20, 1, 1, 1,
333
- 1, 1, 1, 1, 1, 1, 16, 2,
334
- 2, 2, 2, 2, 2, 2, 2, 2,
335
- 2, 2, 2, 2, 2, 2, 4, 20,
336
- 1, 1, 1, 1, 1, 1, 1, 1,
337
- 1, 1, 1, 1, 1, 1, 1, 1,
338
- 1, 1, 1, 1, 1, 1, 1, 1,
339
- 2, 1, 1, 1, 1, 1, 1, 1,
340
- 1, 1, 1, 1, 1, 1, 1, 1,
341
- 2, 4, 3, 2, 4, 18, 2, 2,
342
- 2, 2, 2, 2, 2, 2, 2, 2,
343
- 2, 2, 2, 2, 2, 2, 2, 2,
344
- 2, 2, 2, 2, 2, 2, 2, 3,
345
- 2, 2, 2, 2, 2, 2, 2, 2,
346
- 2, 2, 2, 2, 2, 2, 5, 2,
347
- 2, 2, 2, 2, 2, 2, 2, 2,
348
- 2, 2, 2, 2, 2, 2, 2, 2,
349
- 2, 2, 2, 2, 2, 2, 2, 2,
350
- 2, 2, 2, 2, 2, 2, 2, 2,
351
- 2, 2, 2, 2, 2, 2, 2, 2,
352
- 2, 2, 2, 2, 2, 2, 2, 1,
353
- 1, 1, 1, 1, 1, 1, 1, 1,
354
- 1, 1, 1, 1, 1, 1, 2, 2,
355
- 2, 2, 2, 2, 2, 2, 2, 2,
356
- 2, 2, 2, 2, 2, 2, 2, 2,
357
- 2, 2, 2, 2, 2, 2, 2, 3,
358
- 2, 2, 2, 2, 2, 2, 2, 2,
359
- 2, 2, 2, 2, 2, 2, 4, 2,
360
- 2, 2, 2, 2, 2, 2, 2, 2,
361
- 2, 2, 2, 2, 2, 2, 2, 2,
362
- 2, 2, 2, 2, 2, 2, 2, 2,
363
- 2, 2, 2, 2, 2, 2, 2, 2,
364
- 2, 2, 2, 2, 2, 2, 2, 2,
365
- 2, 2, 1, 1, 1, 1, 1, 1,
366
- 1, 1, 1, 1, 7, 2, 2, 2,
367
- 2, 2, 2, 2, 2, 2, 2, 2,
368
- 2, 2, 2, 2, 2, 2, 2, 2,
369
- 2, 2, 2, 2, 2, 2, 2, 1,
370
- 1, 1, 1, 1, 1, 1, 1, 1,
371
- 1, 1, 1, 1, 1, 1, 2, 2,
372
- 2, 2, 2, 2, 2, 2, 2, 2,
373
- 2, 2, 4, 2, 2, 2, 2, 2,
374
- 2, 2, 2, 2, 2, 2, 2, 2,
375
- 2, 2, 2, 2, 2, 2, 2, 2,
376
- 2, 2, 2, 2, 2, 2, 2, 2,
377
- 2, 2, 2, 2, 2, 2, 2, 2,
378
- 2, 2, 2, 2, 2, 2, 2, 2,
379
- 2, 2, 2, 2, 2, 2, 2, 2,
380
- 2, 2, 2, 2, 3, 2, 2, 2,
381
- 2, 2, 2, 2, 2, 2, 2, 2,
382
- 2, 2, 3, 3, 2, 2, 2, 2,
383
- 2, 2, 2, 2, 2, 2, 2, 2,
384
- 2, 2, 2, 2, 2, 2, 2, 2,
385
- 2, 2, 2, 2, 2, 2, 2, 2,
386
- 2, 2, 2, 2, 2, 0
387
- ]
388
-
389
- class << self
390
- attr_accessor :_lexer_range_lengths
391
- private :_lexer_range_lengths, :_lexer_range_lengths=
392
- end
393
- self._lexer_range_lengths = [
394
- 0, 1, 0, 0, 1, 0, 0, 0,
395
- 0, 1, 1, 1, 1, 1, 1, 0,
396
- 0, 0, 0, 0, 0, 0, 0, 0,
397
- 0, 0, 0, 0, 0, 0, 0, 0,
398
- 0, 0, 1, 1, 1, 0, 0, 0,
399
- 0, 0, 0, 0, 0, 0, 0, 0,
400
- 0, 0, 0, 0, 0, 0, 0, 0,
401
- 0, 0, 0, 0, 0, 0, 0, 0,
402
- 0, 1, 0, 0, 0, 0, 0, 0,
403
- 0, 0, 0, 0, 0, 0, 0, 0,
404
- 0, 0, 0, 0, 0, 0, 0, 1,
405
- 0, 0, 0, 0, 0, 0, 0, 0,
406
- 0, 0, 0, 0, 0, 0, 0, 0,
407
- 0, 0, 0, 0, 0, 1, 0, 0,
408
- 0, 0, 0, 0, 0, 0, 0, 0,
409
- 0, 0, 0, 0, 0, 0, 1, 0,
410
- 0, 0, 0, 0, 0, 0, 0, 0,
411
- 0, 0, 0, 0, 0, 0, 0, 0,
412
- 0, 0, 0, 0, 0, 0, 0, 0,
413
- 0, 0, 0, 0, 0, 0, 0, 0,
414
- 0, 0, 0, 1, 0, 0, 0, 0,
415
- 0, 0, 0, 0, 0, 0, 0, 0,
416
- 0, 0, 0, 0, 1, 0, 0, 0,
417
- 0, 0, 0, 0, 0, 0, 1, 0,
418
- 0, 0, 0, 0, 0, 0, 0, 0,
419
- 0, 0, 0, 0, 0, 0, 0, 1,
420
- 0, 0, 0, 0, 0, 0, 0, 0,
421
- 0, 0, 0, 0, 0, 0, 0, 0,
422
- 0, 0, 0, 0, 0, 0, 0, 0,
423
- 0, 0, 0, 0, 0, 0, 0, 0,
424
- 0, 0, 0, 0, 0, 0, 0, 0,
425
- 1, 1, 0, 0, 1, 1, 0, 0,
426
- 0, 0, 0, 0, 0, 0, 0, 0,
427
- 0, 0, 0, 0, 0, 0, 0, 0,
428
- 0, 0, 0, 0, 0, 0, 0, 0,
429
- 0, 0, 0, 0, 0, 0, 0, 0,
430
- 0, 0, 0, 0, 0, 0, 0, 0,
431
- 0, 0, 0, 0, 0, 0, 0, 0,
432
- 0, 0, 0, 0, 0, 0, 0, 0,
433
- 0, 0, 0, 0, 0, 0, 0, 0,
434
- 0, 0, 0, 0, 0, 0, 0, 0,
435
- 0, 0, 0, 0, 0, 0, 0, 0,
436
- 0, 0, 0, 0, 0, 0, 0, 0,
437
- 0, 0, 0, 0, 0, 0, 0, 0,
438
- 0, 0, 0, 0, 0, 0, 0, 0,
439
- 0, 0, 0, 0, 0, 0, 0, 0,
440
- 0, 0, 0, 0, 0, 0, 0, 0,
441
- 0, 0, 0, 0, 0, 0, 0, 0,
442
- 0, 0, 0, 0, 0, 0, 0, 0,
443
- 0, 0, 0, 0, 0, 0, 0, 0,
444
- 0, 0, 0, 0, 0, 0, 0, 0,
445
- 0, 0, 0, 0, 0, 0, 0, 0,
446
- 0, 0, 0, 0, 0, 0, 0, 0,
447
- 0, 0, 0, 0, 0, 0, 0, 0,
448
- 0, 0, 0, 0, 0, 0, 0, 0,
449
- 0, 0, 0, 0, 0, 0, 0, 0,
450
- 0, 0, 0, 0, 1, 0, 0, 0,
451
- 0, 0, 0, 0, 0, 0, 0, 0,
452
- 0, 0, 0, 0, 0, 0, 0, 0,
453
- 0, 0, 0, 0, 0, 0, 0, 0,
454
- 0, 0, 0, 0, 0, 0, 0, 0,
455
- 0, 0, 0, 0, 0, 0, 0, 0,
456
- 0, 0, 0, 0, 0, 0, 0, 0,
457
- 0, 0, 0, 0, 0, 0, 0, 0,
458
- 0, 0, 0, 0, 0, 0, 0, 0,
459
- 0, 0, 0, 0, 0, 0, 0, 0,
460
- 0, 0, 0, 0, 0, 0, 0, 0,
461
- 0, 0, 0, 0, 0, 0, 0, 0,
462
- 0, 0, 0, 0, 0, 0, 0, 0,
463
- 0, 0, 0, 0, 0, 0, 0, 0,
464
- 0, 0, 0, 0, 0, 0, 0, 0,
465
- 0, 0, 0, 0, 0, 0, 0, 0,
466
- 0, 0, 0, 0, 0, 0, 0, 0,
467
- 0, 0, 0, 0, 0, 0, 0, 0,
468
- 0, 0, 0, 0, 0, 0, 0, 0,
469
- 0, 0, 0, 0, 0, 0, 0, 0,
470
- 0, 0, 0, 0, 0, 0
471
- ]
472
-
473
- class << self
474
- attr_accessor :_lexer_index_offsets
475
- private :_lexer_index_offsets, :_lexer_index_offsets=
476
- end
477
- self._lexer_index_offsets = [
478
- 0, 0, 21, 23, 25, 45, 47, 49,
479
- 52, 55, 60, 65, 70, 75, 79, 83,
480
- 86, 88, 90, 92, 94, 96, 98, 100,
481
- 102, 104, 106, 108, 110, 112, 114, 116,
482
- 118, 121, 124, 129, 136, 141, 145, 150,
483
- 155, 159, 163, 167, 171, 175, 179, 183,
484
- 187, 191, 195, 199, 203, 207, 211, 215,
485
- 217, 219, 221, 223, 225, 227, 229, 231,
486
- 233, 235, 248, 251, 254, 257, 260, 263,
487
- 266, 269, 272, 275, 278, 281, 284, 287,
488
- 290, 293, 296, 299, 302, 305, 308, 311,
489
- 331, 333, 335, 337, 339, 341, 343, 345,
490
- 347, 349, 351, 353, 355, 357, 359, 361,
491
- 363, 365, 368, 370, 372, 374, 390, 393,
492
- 396, 399, 402, 405, 408, 411, 414, 417,
493
- 420, 423, 426, 429, 432, 435, 440, 462,
494
- 464, 466, 468, 470, 472, 474, 476, 478,
495
- 480, 482, 484, 486, 488, 490, 493, 498,
496
- 500, 502, 504, 506, 508, 510, 512, 514,
497
- 516, 518, 520, 522, 524, 526, 528, 530,
498
- 532, 534, 536, 538, 556, 559, 562, 565,
499
- 568, 571, 574, 577, 580, 583, 586, 589,
500
- 592, 595, 598, 601, 606, 628, 630, 632,
501
- 634, 636, 638, 640, 642, 644, 646, 664,
502
- 667, 670, 673, 676, 679, 682, 685, 688,
503
- 691, 694, 697, 700, 703, 706, 709, 714,
504
- 736, 738, 740, 742, 744, 746, 748, 750,
505
- 752, 754, 756, 758, 760, 762, 764, 766,
506
- 768, 770, 772, 774, 776, 778, 780, 782,
507
- 784, 787, 789, 791, 793, 795, 797, 799,
508
- 801, 803, 805, 807, 809, 811, 813, 815,
509
- 817, 821, 827, 831, 834, 840, 860, 863,
510
- 866, 869, 872, 875, 878, 881, 884, 887,
511
- 890, 893, 896, 899, 902, 905, 908, 911,
512
- 914, 917, 920, 923, 926, 929, 932, 935,
513
- 939, 942, 945, 948, 951, 954, 957, 960,
514
- 963, 966, 969, 972, 975, 978, 981, 987,
515
- 990, 993, 996, 999, 1002, 1005, 1008, 1011,
516
- 1014, 1017, 1020, 1023, 1026, 1029, 1032, 1035,
517
- 1038, 1041, 1044, 1047, 1050, 1053, 1056, 1059,
518
- 1062, 1065, 1068, 1071, 1074, 1077, 1080, 1083,
519
- 1086, 1089, 1092, 1095, 1098, 1101, 1104, 1107,
520
- 1110, 1113, 1116, 1119, 1122, 1125, 1128, 1131,
521
- 1133, 1135, 1137, 1139, 1141, 1143, 1145, 1147,
522
- 1149, 1151, 1153, 1155, 1157, 1159, 1161, 1164,
523
- 1167, 1170, 1173, 1176, 1179, 1182, 1185, 1188,
524
- 1191, 1194, 1197, 1200, 1203, 1206, 1209, 1212,
525
- 1215, 1218, 1221, 1224, 1227, 1230, 1233, 1236,
526
- 1240, 1243, 1246, 1249, 1252, 1255, 1258, 1261,
527
- 1264, 1267, 1270, 1273, 1276, 1279, 1282, 1287,
528
- 1290, 1293, 1296, 1299, 1302, 1305, 1308, 1311,
529
- 1314, 1317, 1320, 1323, 1326, 1329, 1332, 1335,
530
- 1338, 1341, 1344, 1347, 1350, 1353, 1356, 1359,
531
- 1362, 1365, 1368, 1371, 1374, 1377, 1380, 1383,
532
- 1386, 1389, 1392, 1395, 1398, 1401, 1404, 1407,
533
- 1410, 1413, 1416, 1418, 1420, 1422, 1424, 1426,
534
- 1428, 1430, 1432, 1434, 1436, 1445, 1448, 1451,
535
- 1454, 1457, 1460, 1463, 1466, 1469, 1472, 1475,
536
- 1478, 1481, 1484, 1487, 1490, 1493, 1496, 1499,
537
- 1502, 1505, 1508, 1511, 1514, 1517, 1520, 1523,
538
- 1525, 1527, 1529, 1531, 1533, 1535, 1537, 1539,
539
- 1541, 1543, 1545, 1547, 1549, 1551, 1553, 1556,
540
- 1559, 1562, 1565, 1568, 1571, 1574, 1577, 1580,
541
- 1583, 1586, 1589, 1594, 1597, 1600, 1603, 1606,
542
- 1609, 1612, 1615, 1618, 1621, 1624, 1627, 1630,
543
- 1633, 1636, 1639, 1642, 1645, 1648, 1651, 1654,
544
- 1657, 1660, 1663, 1666, 1669, 1672, 1675, 1678,
545
- 1681, 1684, 1687, 1690, 1693, 1696, 1699, 1702,
546
- 1705, 1708, 1711, 1714, 1717, 1720, 1723, 1726,
547
- 1729, 1732, 1735, 1738, 1741, 1744, 1747, 1750,
548
- 1753, 1756, 1759, 1762, 1765, 1769, 1772, 1775,
549
- 1778, 1781, 1784, 1787, 1790, 1793, 1796, 1799,
550
- 1802, 1805, 1808, 1812, 1816, 1819, 1822, 1825,
551
- 1828, 1831, 1834, 1837, 1840, 1843, 1846, 1849,
552
- 1852, 1855, 1858, 1861, 1864, 1867, 1870, 1873,
553
- 1876, 1879, 1882, 1885, 1888, 1891, 1894, 1897,
554
- 1900, 1903, 1906, 1909, 1912, 1915
555
- ]
556
-
557
- class << self
558
- attr_accessor :_lexer_indicies
559
- private :_lexer_indicies, :_lexer_indicies=
560
- end
561
- self._lexer_indicies = [
562
- 1, 3, 2, 4, 5, 6, 7, 8,
563
- 9, 10, 11, 12, 13, 14, 15, 16,
564
- 17, 18, 19, 2, 0, 20, 0, 2,
565
- 0, 3, 2, 4, 5, 6, 7, 8,
566
- 9, 10, 11, 12, 13, 14, 15, 16,
567
- 17, 18, 19, 2, 0, 21, 0, 22,
568
- 0, 24, 25, 23, 27, 28, 26, 31,
569
- 30, 32, 30, 29, 35, 34, 36, 34,
570
- 33, 35, 34, 37, 34, 33, 35, 34,
571
- 38, 34, 33, 40, 39, 39, 0, 3,
572
- 41, 41, 0, 43, 44, 42, 3, 0,
573
- 45, 0, 46, 0, 47, 0, 48, 0,
574
- 49, 0, 50, 0, 51, 0, 52, 0,
575
- 53, 0, 54, 0, 55, 0, 56, 0,
576
- 57, 0, 58, 0, 59, 0, 61, 62,
577
- 60, 64, 65, 63, 0, 0, 0, 0,
578
- 66, 67, 68, 67, 67, 70, 69, 66,
579
- 3, 71, 8, 71, 0, 72, 73, 74,
580
- 0, 61, 62, 75, 76, 60, 64, 65,
581
- 77, 78, 63, 64, 65, 79, 63, 64,
582
- 65, 80, 63, 64, 65, 78, 63, 64,
583
- 65, 81, 63, 82, 64, 65, 63, 83,
584
- 64, 65, 63, 64, 65, 59, 63, 84,
585
- 64, 65, 63, 85, 64, 65, 63, 64,
586
- 65, 86, 63, 64, 65, 87, 63, 64,
587
- 65, 88, 63, 64, 65, 89, 63, 90,
588
- 64, 65, 63, 83, 64, 65, 63, 73,
589
- 0, 91, 0, 92, 0, 93, 0, 94,
590
- 0, 95, 0, 96, 0, 97, 0, 99,
591
- 98, 101, 100, 101, 102, 103, 104, 103,
592
- 105, 106, 107, 108, 109, 110, 102, 100,
593
- 101, 111, 100, 101, 112, 100, 101, 113,
594
- 100, 101, 114, 100, 101, 115, 100, 101,
595
- 116, 100, 101, 117, 100, 101, 118, 100,
596
- 101, 119, 100, 101, 120, 100, 101, 121,
597
- 100, 101, 122, 100, 101, 123, 100, 101,
598
- 124, 100, 101, 125, 100, 101, 126, 100,
599
- 101, 127, 100, 101, 128, 100, 101, 129,
600
- 100, 101, 130, 100, 101, 131, 100, 133,
601
- 132, 134, 135, 136, 137, 138, 139, 140,
602
- 141, 142, 143, 144, 145, 146, 147, 148,
603
- 149, 132, 0, 150, 0, 151, 0, 73,
604
- 0, 152, 0, 153, 0, 154, 0, 155,
605
- 0, 156, 0, 157, 0, 158, 0, 159,
606
- 0, 160, 0, 161, 0, 162, 0, 163,
607
- 0, 164, 0, 165, 0, 166, 166, 0,
608
- 167, 0, 169, 168, 171, 170, 171, 172,
609
- 173, 174, 175, 173, 176, 177, 178, 179,
610
- 180, 181, 182, 183, 172, 170, 171, 184,
611
- 170, 171, 185, 170, 171, 186, 170, 171,
612
- 187, 170, 171, 188, 170, 171, 189, 170,
613
- 171, 190, 170, 171, 191, 170, 171, 192,
614
- 170, 171, 193, 170, 171, 194, 170, 171,
615
- 195, 170, 171, 196, 170, 171, 197, 170,
616
- 171, 198, 170, 171, 199, 200, 201, 170,
617
- 133, 132, 134, 135, 136, 137, 138, 139,
618
- 140, 141, 142, 143, 144, 145, 146, 147,
619
- 148, 202, 203, 149, 132, 0, 204, 0,
620
- 205, 0, 206, 0, 207, 0, 208, 0,
621
- 209, 0, 210, 0, 211, 0, 212, 0,
622
- 213, 0, 214, 0, 215, 0, 216, 0,
623
- 166, 0, 217, 218, 0, 219, 220, 221,
624
- 222, 0, 223, 0, 224, 0, 225, 0,
625
- 226, 0, 227, 0, 228, 0, 95, 0,
626
- 229, 0, 230, 0, 231, 0, 73, 0,
627
- 232, 0, 73, 0, 233, 0, 234, 0,
628
- 235, 0, 236, 0, 237, 0, 239, 238,
629
- 241, 240, 241, 242, 243, 244, 245, 243,
630
- 246, 247, 248, 249, 250, 251, 252, 253,
631
- 254, 255, 242, 240, 241, 256, 240, 241,
632
- 257, 240, 241, 258, 240, 241, 259, 240,
633
- 241, 260, 240, 241, 261, 240, 241, 262,
634
- 240, 241, 263, 240, 241, 264, 240, 241,
635
- 265, 240, 241, 266, 240, 241, 267, 240,
636
- 241, 268, 240, 241, 269, 240, 241, 270,
637
- 240, 241, 271, 272, 273, 240, 133, 132,
638
- 134, 135, 136, 137, 138, 139, 140, 141,
639
- 142, 143, 144, 145, 146, 147, 148, 274,
640
- 275, 149, 132, 0, 276, 0, 277, 0,
641
- 278, 0, 279, 0, 280, 0, 281, 0,
642
- 282, 0, 284, 283, 286, 285, 286, 287,
643
- 288, 289, 290, 288, 291, 292, 293, 294,
644
- 295, 296, 297, 298, 299, 300, 287, 285,
645
- 286, 301, 285, 286, 302, 285, 286, 303,
646
- 285, 286, 304, 285, 286, 305, 285, 286,
647
- 306, 285, 286, 307, 285, 286, 308, 285,
648
- 286, 309, 285, 286, 310, 285, 286, 311,
649
- 285, 286, 312, 285, 286, 313, 285, 286,
650
- 314, 285, 286, 315, 285, 286, 316, 317,
651
- 318, 285, 133, 132, 134, 135, 136, 137,
652
- 138, 139, 140, 141, 142, 143, 144, 145,
653
- 146, 147, 148, 319, 320, 149, 132, 0,
654
- 321, 0, 73, 0, 322, 0, 323, 0,
655
- 324, 0, 325, 0, 326, 0, 327, 0,
656
- 328, 0, 329, 0, 96, 0, 330, 0,
657
- 331, 0, 332, 0, 333, 0, 334, 0,
658
- 335, 0, 336, 0, 337, 0, 338, 0,
659
- 339, 0, 340, 0, 341, 0, 73, 0,
660
- 342, 343, 0, 344, 0, 345, 0, 343,
661
- 0, 346, 0, 347, 0, 348, 0, 315,
662
- 0, 349, 0, 350, 0, 351, 0, 352,
663
- 0, 353, 0, 354, 0, 355, 0, 348,
664
- 0, 356, 357, 356, 0, 360, 359, 361,
665
- 362, 359, 358, 0, 364, 365, 363, 0,
666
- 364, 363, 360, 366, 364, 365, 366, 363,
667
- 360, 367, 368, 369, 370, 371, 372, 373,
668
- 374, 375, 376, 377, 378, 379, 380, 381,
669
- 382, 383, 367, 0, 286, 317, 285, 286,
670
- 384, 285, 286, 385, 285, 286, 386, 285,
671
- 286, 387, 285, 286, 388, 285, 286, 389,
672
- 285, 286, 315, 285, 286, 390, 285, 391,
673
- 286, 285, 317, 286, 285, 392, 286, 285,
674
- 393, 286, 285, 394, 286, 285, 395, 286,
675
- 285, 286, 396, 285, 286, 397, 285, 286,
676
- 398, 285, 286, 399, 285, 286, 400, 285,
677
- 286, 401, 285, 286, 402, 285, 403, 286,
678
- 285, 404, 286, 285, 286, 405, 285, 286,
679
- 389, 389, 285, 286, 406, 285, 286, 407,
680
- 285, 286, 408, 285, 286, 409, 285, 286,
681
- 410, 285, 286, 411, 285, 286, 412, 285,
682
- 286, 413, 285, 286, 414, 285, 286, 415,
683
- 285, 416, 286, 285, 417, 286, 285, 286,
684
- 388, 285, 286, 418, 285, 419, 286, 420,
685
- 421, 422, 285, 423, 286, 285, 286, 424,
686
- 285, 286, 425, 285, 286, 426, 285, 286,
687
- 427, 285, 286, 428, 285, 286, 388, 285,
688
- 286, 429, 285, 286, 430, 285, 431, 286,
689
- 285, 317, 286, 285, 286, 432, 285, 286,
690
- 317, 285, 286, 433, 285, 286, 434, 285,
691
- 286, 435, 285, 286, 389, 285, 286, 436,
692
- 285, 286, 437, 285, 286, 438, 285, 439,
693
- 286, 285, 440, 286, 285, 286, 389, 285,
694
- 286, 441, 285, 286, 317, 285, 286, 442,
695
- 285, 286, 443, 285, 286, 444, 285, 286,
696
- 445, 285, 286, 446, 285, 286, 447, 285,
697
- 286, 448, 285, 449, 286, 285, 389, 286,
698
- 285, 286, 450, 285, 286, 451, 285, 286,
699
- 452, 285, 286, 453, 285, 286, 454, 285,
700
- 286, 455, 285, 286, 456, 285, 286, 457,
701
- 285, 286, 458, 285, 286, 459, 285, 286,
702
- 460, 285, 286, 461, 285, 286, 317, 285,
703
- 462, 463, 0, 464, 0, 465, 0, 463,
704
- 0, 466, 0, 467, 0, 468, 0, 270,
705
- 0, 469, 0, 470, 0, 471, 0, 472,
706
- 0, 473, 0, 474, 0, 475, 0, 468,
707
- 0, 241, 272, 240, 241, 476, 240, 241,
708
- 477, 240, 241, 478, 240, 241, 479, 240,
709
- 241, 480, 240, 241, 481, 240, 241, 270,
710
- 240, 241, 482, 240, 483, 241, 240, 272,
711
- 241, 240, 484, 241, 240, 485, 241, 240,
712
- 486, 241, 240, 487, 241, 240, 241, 488,
713
- 240, 241, 489, 240, 241, 490, 240, 241,
714
- 491, 240, 241, 492, 240, 241, 493, 240,
715
- 241, 494, 240, 495, 241, 240, 496, 241,
716
- 240, 241, 497, 240, 241, 481, 481, 240,
717
- 241, 498, 240, 241, 499, 240, 241, 500,
718
- 240, 241, 501, 240, 241, 502, 240, 241,
719
- 503, 240, 241, 504, 240, 241, 505, 240,
720
- 241, 506, 240, 241, 507, 240, 508, 241,
721
- 240, 509, 241, 240, 241, 480, 240, 241,
722
- 510, 240, 511, 241, 512, 513, 240, 514,
723
- 241, 240, 241, 515, 240, 241, 516, 240,
724
- 241, 517, 240, 241, 518, 240, 241, 519,
725
- 240, 241, 480, 240, 241, 520, 240, 241,
726
- 521, 240, 522, 241, 240, 272, 241, 240,
727
- 241, 523, 240, 241, 272, 240, 241, 524,
728
- 240, 241, 525, 240, 241, 526, 240, 527,
729
- 241, 240, 528, 241, 240, 241, 481, 240,
730
- 241, 529, 240, 241, 272, 240, 241, 530,
731
- 240, 241, 531, 240, 241, 532, 240, 241,
732
- 533, 240, 241, 534, 240, 241, 535, 240,
733
- 241, 536, 240, 537, 241, 240, 481, 241,
734
- 240, 241, 538, 240, 241, 539, 240, 241,
735
- 540, 240, 241, 541, 240, 241, 542, 240,
736
- 241, 543, 240, 241, 544, 240, 241, 545,
737
- 240, 241, 546, 240, 241, 547, 240, 241,
738
- 548, 240, 241, 549, 240, 241, 272, 240,
739
- 550, 0, 551, 0, 552, 0, 553, 0,
740
- 554, 0, 555, 0, 556, 0, 557, 0,
741
- 559, 558, 561, 560, 561, 562, 563, 564,
742
- 565, 566, 563, 562, 560, 561, 567, 560,
743
- 561, 568, 560, 561, 569, 560, 561, 570,
744
- 560, 561, 571, 560, 561, 572, 560, 561,
745
- 573, 560, 561, 574, 560, 575, 561, 560,
746
- 576, 561, 560, 561, 577, 560, 561, 578,
747
- 560, 561, 579, 560, 561, 580, 560, 561,
748
- 581, 560, 561, 571, 560, 561, 582, 560,
749
- 561, 583, 560, 561, 584, 560, 561, 585,
750
- 560, 561, 586, 560, 561, 587, 560, 561,
751
- 588, 560, 589, 561, 560, 572, 561, 560,
752
- 590, 591, 0, 592, 0, 593, 0, 591,
753
- 0, 594, 0, 595, 0, 596, 0, 198,
754
- 0, 597, 0, 598, 0, 599, 0, 600,
755
- 0, 601, 0, 602, 0, 603, 0, 596,
756
- 0, 171, 200, 170, 171, 604, 170, 171,
757
- 605, 170, 171, 606, 170, 171, 607, 170,
758
- 171, 608, 170, 171, 609, 170, 171, 198,
759
- 170, 171, 610, 170, 611, 171, 170, 200,
760
- 171, 170, 171, 612, 170, 613, 171, 614,
761
- 615, 170, 616, 171, 170, 171, 617, 170,
762
- 171, 618, 170, 171, 619, 170, 171, 620,
763
- 170, 171, 621, 170, 171, 608, 170, 171,
764
- 622, 170, 171, 623, 170, 624, 171, 170,
765
- 200, 171, 170, 171, 625, 170, 171, 200,
766
- 170, 171, 626, 170, 171, 627, 170, 171,
767
- 628, 170, 629, 171, 170, 630, 171, 170,
768
- 171, 609, 170, 171, 631, 170, 171, 200,
769
- 170, 171, 632, 170, 171, 633, 170, 171,
770
- 634, 170, 171, 635, 170, 171, 636, 170,
771
- 171, 637, 170, 171, 638, 170, 639, 171,
772
- 170, 609, 171, 170, 171, 640, 170, 171,
773
- 641, 170, 171, 642, 170, 171, 643, 170,
774
- 171, 644, 170, 171, 645, 170, 171, 646,
775
- 170, 171, 647, 170, 171, 648, 170, 171,
776
- 649, 170, 171, 650, 170, 171, 651, 170,
777
- 171, 200, 170, 652, 101, 100, 653, 101,
778
- 100, 654, 101, 100, 655, 101, 100, 101,
779
- 656, 100, 101, 657, 100, 101, 658, 100,
780
- 101, 659, 100, 101, 660, 100, 101, 661,
781
- 100, 101, 662, 100, 663, 101, 100, 664,
782
- 101, 100, 101, 665, 100, 101, 130, 130,
783
- 100, 101, 666, 100, 101, 667, 100, 101,
784
- 668, 100, 101, 669, 100, 101, 670, 100,
785
- 101, 671, 100, 101, 672, 100, 101, 673,
786
- 100, 101, 674, 100, 101, 675, 100, 676,
787
- 101, 100, 677, 101, 100, 101, 129, 100,
788
- 101, 678, 679, 100, 680, 101, 681, 100,
789
- 682, 101, 100, 101, 683, 100, 101, 684,
790
- 100, 101, 685, 100, 101, 686, 100, 101,
791
- 687, 100, 101, 129, 100, 101, 688, 100,
792
- 101, 689, 100, 101, 690, 100, 101, 130,
793
- 100, 691, 101, 100, 692, 101, 100, 101,
794
- 693, 100, 101, 694, 100, 101, 695, 100,
795
- 101, 696, 100, 101, 130, 100, 101, 697,
796
- 100, 101, 698, 100, 101, 699, 100, 700,
797
- 101, 100, 701, 101, 100, 101, 130, 100,
798
- 101, 702, 100, 101, 703, 100, 101, 704,
799
- 100, 101, 705, 100, 101, 706, 100, 101,
800
- 707, 100, 101, 708, 100, 709, 101, 100,
801
- 130, 101, 100, 710, 0
802
- ]
803
-
804
- class << self
805
- attr_accessor :_lexer_trans_targs
806
- private :_lexer_trans_targs, :_lexer_trans_targs=
807
- end
808
- self._lexer_trans_targs = [
809
- 0, 2, 4, 4, 5, 15, 17, 31,
810
- 34, 37, 56, 88, 91, 127, 141, 181,
811
- 208, 210, 219, 248, 3, 6, 7, 8,
812
- 9, 8, 8, 9, 8, 10, 10, 10,
813
- 11, 10, 10, 10, 11, 12, 13, 14,
814
- 4, 14, 15, 4, 16, 18, 19, 20,
815
- 21, 22, 23, 24, 25, 26, 27, 28,
816
- 29, 30, 613, 32, 33, 4, 16, 33,
817
- 4, 16, 35, 36, 4, 35, 34, 36,
818
- 38, 31, 55, 39, 47, 40, 43, 41,
819
- 42, 44, 45, 46, 48, 49, 50, 51,
820
- 52, 53, 54, 57, 58, 59, 60, 61,
821
- 62, 63, 64, 65, 64, 65, 65, 4,
822
- 66, 80, 550, 565, 578, 598, 604, 67,
823
- 68, 69, 70, 71, 72, 73, 74, 75,
824
- 76, 77, 78, 79, 4, 81, 82, 83,
825
- 84, 85, 86, 87, 4, 4, 5, 15,
826
- 17, 31, 34, 37, 56, 88, 91, 127,
827
- 141, 181, 208, 210, 219, 248, 89, 90,
828
- 92, 93, 94, 95, 96, 97, 98, 99,
829
- 100, 101, 102, 103, 104, 105, 106, 107,
830
- 108, 109, 108, 109, 109, 4, 110, 124,
831
- 125, 495, 502, 505, 520, 526, 528, 537,
832
- 111, 112, 113, 114, 115, 116, 117, 118,
833
- 119, 120, 121, 122, 123, 4, 87, 126,
834
- 124, 494, 478, 486, 128, 129, 130, 131,
835
- 132, 133, 134, 135, 136, 137, 138, 139,
836
- 140, 142, 442, 143, 150, 154, 156, 144,
837
- 145, 146, 147, 148, 149, 151, 152, 153,
838
- 155, 157, 158, 159, 160, 161, 162, 163,
839
- 162, 163, 163, 4, 164, 178, 179, 359,
840
- 366, 369, 384, 397, 412, 418, 420, 429,
841
- 165, 166, 167, 168, 169, 170, 171, 172,
842
- 173, 174, 175, 176, 177, 4, 87, 180,
843
- 178, 358, 342, 350, 182, 183, 184, 185,
844
- 186, 187, 188, 189, 190, 189, 190, 190,
845
- 4, 191, 205, 206, 255, 262, 265, 280,
846
- 293, 312, 318, 320, 329, 192, 193, 194,
847
- 195, 196, 197, 198, 199, 200, 201, 202,
848
- 203, 204, 4, 87, 207, 205, 254, 232,
849
- 240, 209, 211, 212, 213, 214, 215, 216,
850
- 217, 218, 220, 221, 222, 223, 224, 225,
851
- 226, 227, 228, 229, 230, 231, 233, 236,
852
- 234, 235, 237, 238, 239, 241, 242, 243,
853
- 244, 245, 246, 247, 248, 249, 250, 252,
854
- 253, 251, 249, 250, 251, 249, 252, 253,
855
- 5, 15, 17, 31, 34, 37, 56, 88,
856
- 91, 127, 141, 181, 208, 210, 219, 248,
857
- 256, 257, 258, 259, 260, 261, 263, 264,
858
- 266, 267, 268, 269, 270, 271, 272, 273,
859
- 274, 275, 276, 277, 278, 279, 281, 282,
860
- 283, 284, 285, 286, 287, 288, 289, 290,
861
- 291, 292, 294, 295, 302, 306, 308, 296,
862
- 297, 298, 299, 300, 301, 303, 304, 305,
863
- 307, 309, 310, 311, 313, 314, 315, 316,
864
- 317, 319, 321, 322, 323, 324, 325, 326,
865
- 327, 328, 330, 331, 332, 333, 334, 335,
866
- 336, 337, 338, 339, 340, 341, 343, 346,
867
- 344, 345, 347, 348, 349, 351, 352, 353,
868
- 354, 355, 356, 357, 360, 361, 362, 363,
869
- 364, 365, 367, 368, 370, 371, 372, 373,
870
- 374, 375, 376, 377, 378, 379, 380, 381,
871
- 382, 383, 385, 386, 387, 388, 389, 390,
872
- 391, 392, 393, 394, 395, 396, 398, 399,
873
- 406, 410, 400, 401, 402, 403, 404, 405,
874
- 407, 408, 409, 411, 413, 414, 415, 416,
875
- 417, 419, 421, 422, 423, 424, 425, 426,
876
- 427, 428, 430, 431, 432, 433, 434, 435,
877
- 436, 437, 438, 439, 440, 441, 443, 444,
878
- 445, 446, 447, 448, 449, 450, 451, 452,
879
- 451, 452, 452, 4, 453, 460, 469, 454,
880
- 455, 456, 457, 458, 459, 87, 461, 462,
881
- 463, 464, 465, 466, 467, 468, 470, 471,
882
- 472, 473, 474, 475, 476, 477, 479, 482,
883
- 480, 481, 483, 484, 485, 487, 488, 489,
884
- 490, 491, 492, 493, 496, 497, 498, 499,
885
- 500, 501, 503, 504, 506, 507, 514, 518,
886
- 508, 509, 510, 511, 512, 513, 515, 516,
887
- 517, 519, 521, 522, 523, 524, 525, 527,
888
- 529, 530, 531, 532, 533, 534, 535, 536,
889
- 538, 539, 540, 541, 542, 543, 544, 545,
890
- 546, 547, 548, 549, 551, 552, 553, 554,
891
- 555, 556, 557, 558, 559, 560, 561, 562,
892
- 563, 564, 566, 567, 568, 569, 570, 571,
893
- 572, 573, 574, 575, 576, 577, 579, 591,
894
- 580, 587, 581, 582, 583, 584, 585, 586,
895
- 588, 589, 590, 592, 593, 594, 595, 596,
896
- 597, 599, 600, 601, 602, 603, 605, 606,
897
- 607, 608, 609, 610, 611, 612, 0
898
- ]
899
-
900
- class << self
901
- attr_accessor :_lexer_trans_actions
902
- private :_lexer_trans_actions, :_lexer_trans_actions=
903
- end
904
- self._lexer_trans_actions = [
905
- 43, 0, 0, 54, 3, 1, 0, 29,
906
- 1, 29, 29, 29, 29, 29, 29, 29,
907
- 29, 29, 29, 35, 0, 0, 0, 7,
908
- 139, 48, 0, 102, 9, 5, 45, 134,
909
- 45, 0, 33, 122, 33, 33, 0, 11,
910
- 106, 0, 0, 114, 25, 0, 0, 0,
911
- 0, 0, 0, 0, 0, 0, 0, 0,
912
- 0, 0, 0, 0, 57, 149, 126, 0,
913
- 110, 23, 0, 27, 118, 27, 51, 0,
914
- 0, 0, 0, 57, 57, 0, 0, 0,
915
- 0, 0, 0, 0, 0, 0, 0, 0,
916
- 0, 0, 0, 0, 0, 0, 0, 0,
917
- 0, 0, 57, 144, 0, 54, 0, 69,
918
- 33, 84, 84, 84, 84, 84, 84, 0,
919
- 0, 0, 0, 0, 0, 0, 0, 0,
920
- 0, 0, 0, 0, 13, 0, 0, 0,
921
- 0, 0, 0, 13, 31, 130, 60, 57,
922
- 31, 63, 57, 63, 63, 63, 63, 63,
923
- 63, 63, 63, 63, 63, 66, 0, 0,
924
- 0, 0, 0, 0, 0, 0, 0, 0,
925
- 0, 0, 0, 0, 0, 0, 0, 0,
926
- 57, 144, 0, 54, 0, 78, 33, 84,
927
- 84, 84, 84, 84, 84, 84, 84, 84,
928
- 0, 0, 0, 0, 0, 0, 0, 0,
929
- 0, 0, 0, 0, 0, 19, 19, 19,
930
- 0, 0, 0, 0, 0, 0, 0, 0,
931
- 0, 0, 0, 0, 0, 0, 0, 0,
932
- 0, 0, 0, 0, 0, 0, 0, 0,
933
- 0, 0, 0, 0, 0, 0, 0, 0,
934
- 0, 0, 0, 0, 0, 0, 57, 144,
935
- 0, 54, 0, 72, 33, 84, 84, 84,
936
- 84, 84, 84, 84, 84, 84, 84, 84,
937
- 0, 0, 0, 0, 0, 0, 0, 0,
938
- 0, 0, 0, 0, 0, 15, 15, 15,
939
- 0, 0, 0, 0, 0, 0, 0, 0,
940
- 0, 0, 0, 57, 144, 0, 54, 0,
941
- 75, 33, 84, 84, 84, 84, 84, 84,
942
- 84, 84, 84, 84, 84, 0, 0, 0,
943
- 0, 0, 0, 0, 0, 0, 0, 0,
944
- 0, 0, 17, 17, 17, 0, 0, 0,
945
- 0, 0, 0, 0, 0, 0, 0, 0,
946
- 0, 0, 0, 0, 0, 0, 0, 0,
947
- 0, 0, 0, 0, 0, 0, 0, 0,
948
- 0, 0, 0, 0, 0, 0, 0, 0,
949
- 0, 0, 0, 0, 0, 0, 37, 37,
950
- 54, 37, 87, 0, 0, 39, 0, 0,
951
- 93, 90, 41, 96, 90, 96, 96, 96,
952
- 96, 96, 96, 96, 96, 96, 96, 99,
953
- 0, 0, 0, 0, 0, 0, 0, 0,
954
- 0, 0, 0, 0, 0, 0, 0, 0,
955
- 0, 0, 0, 0, 0, 0, 0, 0,
956
- 0, 0, 0, 0, 0, 0, 0, 0,
957
- 0, 0, 0, 0, 0, 0, 0, 0,
958
- 0, 0, 0, 0, 0, 0, 0, 0,
959
- 0, 0, 0, 0, 0, 0, 0, 0,
960
- 0, 0, 0, 0, 0, 0, 0, 0,
961
- 0, 0, 0, 0, 0, 0, 0, 0,
962
- 0, 0, 0, 0, 0, 0, 0, 0,
963
- 0, 0, 0, 0, 0, 0, 0, 0,
964
- 0, 0, 0, 0, 0, 0, 0, 0,
965
- 0, 0, 0, 0, 0, 0, 0, 0,
966
- 0, 0, 0, 0, 0, 0, 0, 0,
967
- 0, 0, 0, 0, 0, 0, 0, 0,
968
- 0, 0, 0, 0, 0, 0, 0, 0,
969
- 0, 0, 0, 0, 0, 0, 0, 0,
970
- 0, 0, 0, 0, 0, 0, 0, 0,
971
- 0, 0, 0, 0, 0, 0, 0, 0,
972
- 0, 0, 0, 0, 0, 0, 0, 0,
973
- 0, 0, 0, 0, 0, 0, 0, 0,
974
- 0, 0, 0, 0, 0, 0, 57, 144,
975
- 0, 54, 0, 81, 84, 84, 84, 0,
976
- 0, 0, 0, 0, 0, 21, 0, 0,
977
- 0, 0, 0, 0, 0, 0, 0, 0,
978
- 0, 0, 0, 0, 0, 0, 0, 0,
979
- 0, 0, 0, 0, 0, 0, 0, 0,
980
- 0, 0, 0, 0, 0, 0, 0, 0,
981
- 0, 0, 0, 0, 0, 0, 0, 0,
982
- 0, 0, 0, 0, 0, 0, 0, 0,
983
- 0, 0, 0, 0, 0, 0, 0, 0,
984
- 0, 0, 0, 0, 0, 0, 0, 0,
985
- 0, 0, 0, 0, 0, 0, 0, 0,
986
- 0, 0, 0, 0, 0, 0, 0, 0,
987
- 0, 0, 0, 0, 0, 0, 0, 0,
988
- 0, 0, 0, 0, 0, 0, 0, 0,
989
- 0, 0, 0, 0, 0, 0, 0, 0,
990
- 0, 0, 0, 0, 0, 0, 0, 0,
991
- 0, 0, 0, 0, 0, 0, 0, 0,
992
- 0, 0, 0, 0, 0, 0, 0, 0,
993
- 0, 0, 0, 0, 0, 0, 0
994
- ]
995
-
996
- class << self
997
- attr_accessor :_lexer_eof_actions
998
- private :_lexer_eof_actions, :_lexer_eof_actions=
999
- end
1000
- self._lexer_eof_actions = [
1001
- 0, 43, 43, 43, 43, 43, 43, 43,
1002
- 43, 43, 43, 43, 43, 43, 43, 43,
1003
- 43, 43, 43, 43, 43, 43, 43, 43,
1004
- 43, 43, 43, 43, 43, 43, 43, 43,
1005
- 43, 43, 43, 43, 43, 43, 43, 43,
1006
- 43, 43, 43, 43, 43, 43, 43, 43,
1007
- 43, 43, 43, 43, 43, 43, 43, 43,
1008
- 43, 43, 43, 43, 43, 43, 43, 43,
1009
- 43, 43, 43, 43, 43, 43, 43, 43,
1010
- 43, 43, 43, 43, 43, 43, 43, 43,
1011
- 43, 43, 43, 43, 43, 43, 43, 43,
1012
- 43, 43, 43, 43, 43, 43, 43, 43,
1013
- 43, 43, 43, 43, 43, 43, 43, 43,
1014
- 43, 43, 43, 43, 43, 43, 43, 43,
1015
- 43, 43, 43, 43, 43, 43, 43, 43,
1016
- 43, 43, 43, 43, 43, 43, 43, 43,
1017
- 43, 43, 43, 43, 43, 43, 43, 43,
1018
- 43, 43, 43, 43, 43, 43, 43, 43,
1019
- 43, 43, 43, 43, 43, 43, 43, 43,
1020
- 43, 43, 43, 43, 43, 43, 43, 43,
1021
- 43, 43, 43, 43, 43, 43, 43, 43,
1022
- 43, 43, 43, 43, 43, 43, 43, 43,
1023
- 43, 43, 43, 43, 43, 43, 43, 43,
1024
- 43, 43, 43, 43, 43, 43, 43, 43,
1025
- 43, 43, 43, 43, 43, 43, 43, 43,
1026
- 43, 43, 43, 43, 43, 43, 43, 43,
1027
- 43, 43, 43, 43, 43, 43, 43, 43,
1028
- 43, 43, 43, 43, 43, 43, 43, 43,
1029
- 43, 43, 43, 43, 43, 43, 43, 43,
1030
- 43, 43, 43, 43, 43, 43, 43, 43,
1031
- 43, 43, 43, 43, 43, 43, 43, 43,
1032
- 43, 43, 43, 43, 43, 43, 43, 43,
1033
- 43, 43, 43, 43, 43, 43, 43, 43,
1034
- 43, 43, 43, 43, 43, 43, 43, 43,
1035
- 43, 43, 43, 43, 43, 43, 43, 43,
1036
- 43, 43, 43, 43, 43, 43, 43, 43,
1037
- 43, 43, 43, 43, 43, 43, 43, 43,
1038
- 43, 43, 43, 43, 43, 43, 43, 43,
1039
- 43, 43, 43, 43, 43, 43, 43, 43,
1040
- 43, 43, 43, 43, 43, 43, 43, 43,
1041
- 43, 43, 43, 43, 43, 43, 43, 43,
1042
- 43, 43, 43, 43, 43, 43, 43, 43,
1043
- 43, 43, 43, 43, 43, 43, 43, 43,
1044
- 43, 43, 43, 43, 43, 43, 43, 43,
1045
- 43, 43, 43, 43, 43, 43, 43, 43,
1046
- 43, 43, 43, 43, 43, 43, 43, 43,
1047
- 43, 43, 43, 43, 43, 43, 43, 43,
1048
- 43, 43, 43, 43, 43, 43, 43, 43,
1049
- 43, 43, 43, 43, 43, 43, 43, 43,
1050
- 43, 43, 43, 43, 43, 43, 43, 43,
1051
- 43, 43, 43, 43, 43, 43, 43, 43,
1052
- 43, 43, 43, 43, 43, 43, 43, 43,
1053
- 43, 43, 43, 43, 43, 43, 43, 43,
1054
- 43, 43, 43, 43, 43, 43, 43, 43,
1055
- 43, 43, 43, 43, 43, 43, 43, 43,
1056
- 43, 43, 43, 43, 43, 43, 43, 43,
1057
- 43, 43, 43, 43, 43, 43, 43, 43,
1058
- 43, 43, 43, 43, 43, 43, 43, 43,
1059
- 43, 43, 43, 43, 43, 43, 43, 43,
1060
- 43, 43, 43, 43, 43, 43, 43, 43,
1061
- 43, 43, 43, 43, 43, 43, 43, 43,
1062
- 43, 43, 43, 43, 43, 43, 43, 43,
1063
- 43, 43, 43, 43, 43, 43, 43, 43,
1064
- 43, 43, 43, 43, 43, 43, 43, 43,
1065
- 43, 43, 43, 43, 43, 43, 43, 43,
1066
- 43, 43, 43, 43, 43, 43, 43, 43,
1067
- 43, 43, 43, 43, 43, 43, 43, 43,
1068
- 43, 43, 43, 43, 43, 43, 43, 43,
1069
- 43, 43, 43, 43, 43, 43, 43, 43,
1070
- 43, 43, 43, 43, 43, 43, 43, 43,
1071
- 43, 43, 43, 43, 43, 43, 43, 43,
1072
- 43, 43, 43, 43, 43, 43, 43, 43,
1073
- 43, 43, 43, 43, 43, 43, 43, 43,
1074
- 43, 43, 43, 43, 43, 43, 43, 43,
1075
- 43, 43, 43, 43, 43, 43, 43, 43,
1076
- 43, 43, 43, 43, 43, 43, 43, 43,
1077
- 43, 43, 43, 43, 43, 43
1078
- ]
1079
-
1080
- class << self
1081
- attr_accessor :lexer_start
1082
- end
1083
- self.lexer_start = 1;
1084
- class << self
1085
- attr_accessor :lexer_first_final
1086
- end
1087
- self.lexer_first_final = 613;
1088
- class << self
1089
- attr_accessor :lexer_error
1090
- end
1091
- self.lexer_error = 0;
1092
-
1093
- class << self
1094
- attr_accessor :lexer_en_main
1095
- end
1096
- self.lexer_en_main = 1;
1097
-
1098
-
1099
- # line 133 "ragel/i18n/sk.rb.rl"
1100
- end
1101
-
1102
- def scan(data)
1103
- data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably
1104
- eof = pe = data.length
1105
-
1106
- @line_number = 1
1107
- @last_newline = 0
1108
-
1109
-
1110
- # line 1111 "lib/gherkin/lexer/sk.rb"
1111
- begin
1112
- p ||= 0
1113
- pe ||= data.length
1114
- cs = lexer_start
1115
- end
1116
-
1117
- # line 143 "ragel/i18n/sk.rb.rl"
1118
-
1119
- # line 1120 "lib/gherkin/lexer/sk.rb"
1120
- begin
1121
- _klen, _trans, _keys, _acts, _nacts = nil
1122
- _goto_level = 0
1123
- _resume = 10
1124
- _eof_trans = 15
1125
- _again = 20
1126
- _test_eof = 30
1127
- _out = 40
1128
- while true
1129
- _trigger_goto = false
1130
- if _goto_level <= 0
1131
- if p == pe
1132
- _goto_level = _test_eof
1133
- next
1134
- end
1135
- if cs == 0
1136
- _goto_level = _out
1137
- next
1138
- end
1139
- end
1140
- if _goto_level <= _resume
1141
- _keys = _lexer_key_offsets[cs]
1142
- _trans = _lexer_index_offsets[cs]
1143
- _klen = _lexer_single_lengths[cs]
1144
- _break_match = false
1145
-
1146
- begin
1147
- if _klen > 0
1148
- _lower = _keys
1149
- _upper = _keys + _klen - 1
1150
-
1151
- loop do
1152
- break if _upper < _lower
1153
- _mid = _lower + ( (_upper - _lower) >> 1 )
1154
-
1155
- if data[p].ord < _lexer_trans_keys[_mid]
1156
- _upper = _mid - 1
1157
- elsif data[p].ord > _lexer_trans_keys[_mid]
1158
- _lower = _mid + 1
1159
- else
1160
- _trans += (_mid - _keys)
1161
- _break_match = true
1162
- break
1163
- end
1164
- end # loop
1165
- break if _break_match
1166
- _keys += _klen
1167
- _trans += _klen
1168
- end
1169
- _klen = _lexer_range_lengths[cs]
1170
- if _klen > 0
1171
- _lower = _keys
1172
- _upper = _keys + (_klen << 1) - 2
1173
- loop do
1174
- break if _upper < _lower
1175
- _mid = _lower + (((_upper-_lower) >> 1) & ~1)
1176
- if data[p].ord < _lexer_trans_keys[_mid]
1177
- _upper = _mid - 2
1178
- elsif data[p].ord > _lexer_trans_keys[_mid+1]
1179
- _lower = _mid + 2
1180
- else
1181
- _trans += ((_mid - _keys) >> 1)
1182
- _break_match = true
1183
- break
1184
- end
1185
- end # loop
1186
- break if _break_match
1187
- _trans += _klen
1188
- end
1189
- end while false
1190
- _trans = _lexer_indicies[_trans]
1191
- cs = _lexer_trans_targs[_trans]
1192
- if _lexer_trans_actions[_trans] != 0
1193
- _acts = _lexer_trans_actions[_trans]
1194
- _nacts = _lexer_actions[_acts]
1195
- _acts += 1
1196
- while _nacts > 0
1197
- _nacts -= 1
1198
- _acts += 1
1199
- case _lexer_actions[_acts - 1]
1200
- when 0 then
1201
- # line 11 "ragel/i18n/sk.rb.rl"
1202
- begin
1203
-
1204
- @content_start = p
1205
- @current_line = @line_number
1206
- @start_col = p - @last_newline - "#{@keyword}:".length
1207
- end
1208
- when 1 then
1209
- # line 17 "ragel/i18n/sk.rb.rl"
1210
- begin
1211
-
1212
- @current_line = @line_number
1213
- @start_col = p - @last_newline
1214
- end
1215
- when 2 then
1216
- # line 22 "ragel/i18n/sk.rb.rl"
1217
- begin
1218
-
1219
- @content_start = p
1220
- end
1221
- when 3 then
1222
- # line 26 "ragel/i18n/sk.rb.rl"
1223
- begin
1224
-
1225
- @docstring_content_type_start = p
1226
- end
1227
- when 4 then
1228
- # line 29 "ragel/i18n/sk.rb.rl"
1229
- begin
1230
-
1231
- @docstring_content_type_end = p
1232
- end
1233
- when 5 then
1234
- # line 33 "ragel/i18n/sk.rb.rl"
1235
- begin
1236
-
1237
- con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""'))
1238
- con_type = utf8_pack(data[@docstring_content_type_start...@docstring_content_type_end]).strip
1239
- @listener.doc_string(con_type, con, @current_line)
1240
- end
1241
- when 6 then
1242
- # line 38 "ragel/i18n/sk.rb.rl"
1243
- begin
1244
-
1245
- p = store_keyword_content(:feature, data, p, eof)
1246
- end
1247
- when 7 then
1248
- # line 42 "ragel/i18n/sk.rb.rl"
1249
- begin
1250
-
1251
- p = store_keyword_content(:background, data, p, eof)
1252
- end
1253
- when 8 then
1254
- # line 46 "ragel/i18n/sk.rb.rl"
1255
- begin
1256
-
1257
- p = store_keyword_content(:scenario, data, p, eof)
1258
- end
1259
- when 9 then
1260
- # line 50 "ragel/i18n/sk.rb.rl"
1261
- begin
1262
-
1263
- p = store_keyword_content(:scenario_outline, data, p, eof)
1264
- end
1265
- when 10 then
1266
- # line 54 "ragel/i18n/sk.rb.rl"
1267
- begin
1268
-
1269
- p = store_keyword_content(:examples, data, p, eof)
1270
- end
1271
- when 11 then
1272
- # line 58 "ragel/i18n/sk.rb.rl"
1273
- begin
1274
-
1275
- con = utf8_pack(data[@content_start...p]).strip
1276
- @listener.step(@keyword, con, @current_line)
1277
- end
1278
- when 12 then
1279
- # line 63 "ragel/i18n/sk.rb.rl"
1280
- begin
1281
-
1282
- con = utf8_pack(data[@content_start...p]).strip
1283
- @listener.comment(con, @line_number)
1284
- @keyword_start = nil
1285
- end
1286
- when 13 then
1287
- # line 69 "ragel/i18n/sk.rb.rl"
1288
- begin
1289
-
1290
- con = utf8_pack(data[@content_start...p]).strip
1291
- @listener.tag(con, @current_line)
1292
- @keyword_start = nil
1293
- end
1294
- when 14 then
1295
- # line 75 "ragel/i18n/sk.rb.rl"
1296
- begin
1297
-
1298
- @line_number += 1
1299
- end
1300
- when 15 then
1301
- # line 79 "ragel/i18n/sk.rb.rl"
1302
- begin
1303
-
1304
- @last_newline = p + 1
1305
- end
1306
- when 16 then
1307
- # line 83 "ragel/i18n/sk.rb.rl"
1308
- begin
1309
-
1310
- @keyword_start ||= p
1311
- end
1312
- when 17 then
1313
- # line 87 "ragel/i18n/sk.rb.rl"
1314
- begin
1315
-
1316
- @keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'')
1317
- @keyword_start = nil
1318
- end
1319
- when 18 then
1320
- # line 92 "ragel/i18n/sk.rb.rl"
1321
- begin
1322
-
1323
- @next_keyword_start = p
1324
- end
1325
- when 19 then
1326
- # line 96 "ragel/i18n/sk.rb.rl"
1327
- begin
1328
-
1329
- p = p - 1
1330
- current_row = []
1331
- @current_line = @line_number
1332
- end
1333
- when 20 then
1334
- # line 102 "ragel/i18n/sk.rb.rl"
1335
- begin
1336
-
1337
- @content_start = p
1338
- end
1339
- when 21 then
1340
- # line 106 "ragel/i18n/sk.rb.rl"
1341
- begin
1342
-
1343
- con = utf8_pack(data[@content_start...p]).strip
1344
- current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\")
1345
- end
1346
- when 22 then
1347
- # line 111 "ragel/i18n/sk.rb.rl"
1348
- begin
1349
-
1350
- @listener.row(current_row, @current_line)
1351
- end
1352
- when 23 then
1353
- # line 115 "ragel/i18n/sk.rb.rl"
1354
- begin
1355
-
1356
- if cs < lexer_first_final
1357
- content = current_line_content(data, p)
1358
- 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])
1359
- else
1360
- @listener.eof
1361
- end
1362
- end
1363
- # line 1364 "lib/gherkin/lexer/sk.rb"
1364
- end # action switch
1365
- end
1366
- end
1367
- if _trigger_goto
1368
- next
1369
- end
1370
- end
1371
- if _goto_level <= _again
1372
- if cs == 0
1373
- _goto_level = _out
1374
- next
1375
- end
1376
- p += 1
1377
- if p != pe
1378
- _goto_level = _resume
1379
- next
1380
- end
1381
- end
1382
- if _goto_level <= _test_eof
1383
- if p == eof
1384
- __acts = _lexer_eof_actions[cs]
1385
- __nacts = _lexer_actions[__acts]
1386
- __acts += 1
1387
- while __nacts > 0
1388
- __nacts -= 1
1389
- __acts += 1
1390
- case _lexer_actions[__acts - 1]
1391
- when 23 then
1392
- # line 115 "ragel/i18n/sk.rb.rl"
1393
- begin
1394
-
1395
- if cs < lexer_first_final
1396
- content = current_line_content(data, p)
1397
- 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])
1398
- else
1399
- @listener.eof
1400
- end
1401
- end
1402
- # line 1403 "lib/gherkin/lexer/sk.rb"
1403
- end # eof action switch
1404
- end
1405
- if _trigger_goto
1406
- next
1407
- end
1408
- end
1409
- end
1410
- if _goto_level <= _out
1411
- break
1412
- end
1413
- end
1414
- end
1415
-
1416
- # line 144 "ragel/i18n/sk.rb.rl"
1417
- end
1418
-
1419
- def unindent(startcol, text)
1420
- text.gsub(/^[\t ]{0,#{startcol}}/, "")
1421
- end
1422
-
1423
- def store_keyword_content(event, data, p, eof)
1424
- end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
1425
- content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
1426
- content_lines = content.split("\n")
1427
- name = content_lines.shift || ""
1428
- name.strip!
1429
- description = content_lines.join("\n")
1430
- @listener.__send__(event, @keyword, name, description, @current_line)
1431
- @next_keyword_start ? @next_keyword_start - 1 : p
1432
- ensure
1433
- @next_keyword_start = nil
1434
- end
1435
-
1436
- def current_line_content(data, p)
1437
- rest = data[@last_newline..-1]
1438
- utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
1439
- end
1440
-
1441
- if (RUBY_VERSION =~ /^1\.9|2\.0/)
1442
- def utf8_pack(array)
1443
- array.pack("c*").force_encoding("UTF-8")
1444
- end
1445
- else
1446
- def utf8_pack(array)
1447
- array.pack("c*")
1448
- end
1449
- end
1450
- end
1451
- end
1452
- end