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