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