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