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