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