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