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