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