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