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,1726 +0,0 @@
1
-
2
- # line 1 "ragel/i18n/tl.rb.rl"
3
- require 'gherkin/native'
4
-
5
- module Gherkin
6
- module Lexer
7
- class Tl #:nodoc:
8
- native_impl('gherkin')
9
-
10
-
11
- # line 125 "ragel/i18n/tl.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/tl.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, 13, 22, 23, 24, 25,
54
- 26, 27, 28, 29, 30, 31, 32, 33,
55
- 34, 35, 36, 37, 38, 39, 40, 41,
56
- 43, 45, 56, 57, 58, 60, 62, 67,
57
- 72, 77, 82, 86, 90, 92, 93, 94,
58
- 95, 96, 97, 98, 99, 100, 101, 102,
59
- 103, 104, 105, 106, 107, 112, 119, 124,
60
- 128, 134, 137, 139, 145, 156, 157, 158,
61
- 159, 160, 161, 162, 163, 164, 165, 166,
62
- 167, 168, 169, 170, 171, 172, 173, 174,
63
- 175, 176, 177, 178, 179, 180, 181, 182,
64
- 183, 184, 185, 186, 187, 188, 189, 190,
65
- 191, 192, 193, 194, 195, 196, 197, 198,
66
- 199, 200, 201, 202, 203, 204, 205, 206,
67
- 207, 208, 209, 210, 211, 212, 213, 214,
68
- 221, 223, 225, 227, 229, 231, 233, 235,
69
- 237, 239, 241, 243, 245, 247, 249, 251,
70
- 262, 263, 264, 266, 267, 268, 269, 270,
71
- 271, 272, 273, 274, 275, 284, 286, 294,
72
- 296, 298, 300, 302, 304, 306, 308, 310,
73
- 312, 314, 316, 318, 320, 322, 324, 326,
74
- 328, 330, 332, 334, 336, 338, 340, 342,
75
- 344, 346, 348, 350, 352, 354, 356, 358,
76
- 360, 362, 364, 366, 368, 370, 372, 374,
77
- 376, 378, 380, 382, 384, 386, 388, 390,
78
- 392, 394, 396, 398, 400, 402, 404, 406,
79
- 408, 410, 412, 414, 416, 418, 420, 422,
80
- 424, 426, 428, 430, 432, 434, 436, 438,
81
- 440, 442, 444, 446, 448, 450, 452, 454,
82
- 456, 458, 460, 462, 464, 466, 468, 470,
83
- 472, 474, 476, 478, 480, 482, 484, 486,
84
- 488, 490, 492, 494, 496, 498, 500, 502,
85
- 504, 506, 508, 510, 512, 514, 516, 518,
86
- 520, 522, 524, 526, 528, 530, 532, 534,
87
- 536, 538, 540, 542, 544, 546, 548, 550,
88
- 552, 554, 556, 558, 560, 562, 564, 566,
89
- 568, 570, 572, 574, 576, 578, 580, 582,
90
- 584, 586, 588, 590, 592, 593, 594, 595,
91
- 596, 597, 598, 599, 600, 601, 602, 603,
92
- 604, 605, 606, 607, 608, 609, 610, 611,
93
- 612, 613, 621, 623, 629, 631, 633, 635,
94
- 637, 639, 641, 643, 645, 647, 649, 651,
95
- 653, 655, 657, 659, 661, 663, 665, 667,
96
- 669, 671, 673, 675, 677, 679, 681, 683,
97
- 685, 687, 689, 691, 693, 695, 697, 699,
98
- 701, 703, 705, 707, 709, 711, 713, 715,
99
- 717, 719, 721, 723, 725, 727, 729, 731,
100
- 733, 735, 737, 739, 741, 743, 745, 747,
101
- 749, 751, 753, 755, 757, 759, 761, 763,
102
- 765, 767, 769, 771, 773, 775, 777, 779,
103
- 781, 783, 785, 787, 789, 791, 793, 795,
104
- 797, 799, 801, 803, 805, 807, 809, 810,
105
- 811, 812, 813, 814, 815, 816, 817, 818,
106
- 819, 820, 821, 822, 823, 824, 825, 826,
107
- 827, 828, 829, 830, 831, 832, 833, 834,
108
- 835, 836, 837, 838, 839, 840, 841, 842,
109
- 843, 844, 845, 846, 847, 848, 849, 850,
110
- 851, 852, 853, 854, 855, 856, 857, 866,
111
- 868, 876, 878, 880, 882, 884, 886, 888,
112
- 890, 892, 894, 896, 898, 900, 902, 904,
113
- 906, 908, 910, 912, 914, 916, 918, 920,
114
- 922, 924, 926, 928, 930, 932, 934, 936,
115
- 938, 940, 942, 944, 946, 948, 950, 952,
116
- 954, 956, 958, 960, 962, 964, 966, 968,
117
- 970, 972, 974, 976, 978, 980, 982, 984,
118
- 986, 989, 991, 993, 995, 997, 999, 1001,
119
- 1003, 1005, 1007, 1009, 1011, 1013, 1015, 1017,
120
- 1019, 1021, 1023, 1025, 1027, 1029, 1031, 1033,
121
- 1035, 1037, 1039, 1041, 1043, 1045, 1047, 1049,
122
- 1051, 1053, 1055, 1057, 1059, 1061, 1063, 1065,
123
- 1067, 1069, 1071, 1073, 1075, 1077, 1079, 1081,
124
- 1083, 1085, 1087, 1089, 1091, 1093, 1095, 1097,
125
- 1099, 1101, 1103, 1105, 1107, 1109, 1111, 1113,
126
- 1115, 1117, 1119, 1121, 1123, 1125, 1127, 1129,
127
- 1131, 1133, 1135, 1137, 1139, 1141, 1143, 1145,
128
- 1147, 1149, 1151, 1153, 1155, 1157, 1159, 1161,
129
- 1163, 1165, 1167, 1169, 1171, 1173, 1175, 1177,
130
- 1179, 1181, 1182, 1183, 1184, 1185, 1186, 1187,
131
- 1188, 1189, 1190, 1191, 1192, 1193, 1194, 1195,
132
- 1196, 1197, 1198, 1199, 1200, 1201, 1202, 1203,
133
- 1204, 1205, 1206, 1207, 1208, 1209, 1210, 1211,
134
- 1212, 1213, 1214, 1215, 1216, 1217, 1226, 1228,
135
- 1237, 1239, 1241, 1243, 1245, 1247, 1249, 1251,
136
- 1253, 1255, 1257, 1259, 1261, 1263, 1265, 1267,
137
- 1269, 1271, 1273, 1275, 1277, 1279, 1281, 1283,
138
- 1285, 1287, 1289, 1291, 1293, 1295, 1297, 1299,
139
- 1301, 1303, 1305, 1307, 1309, 1311, 1313, 1315,
140
- 1317, 1319, 1321, 1323, 1325, 1327, 1329, 1331,
141
- 1333, 1335, 1337, 1339, 1341, 1343, 1345, 1347,
142
- 1350, 1352, 1354, 1356, 1358, 1360, 1362, 1364,
143
- 1366, 1368, 1370, 1372, 1374, 1376, 1378, 1380,
144
- 1382, 1384, 1386, 1388, 1390, 1392, 1394, 1396,
145
- 1398, 1400, 1402, 1404, 1406, 1408, 1410, 1412,
146
- 1414, 1416, 1418, 1420, 1422, 1424, 1426, 1428,
147
- 1430, 1432, 1434, 1436, 1438, 1440, 1442, 1444,
148
- 1446, 1448, 1450, 1452, 1454, 1456, 1458, 1460,
149
- 1462, 1464, 1466, 1468, 1470, 1472, 1474, 1476,
150
- 1478, 1480, 1482, 1484, 1486, 1488, 1490, 1492,
151
- 1494, 1496, 1498, 1500, 1502, 1504, 1506, 1508,
152
- 1510, 1512, 1514, 1516, 1518, 1520, 1522, 1524,
153
- 1526, 1528, 1530, 1532, 1534, 1536, 1538, 1540,
154
- 1542, 1544, 1546, 1548, 1550, 1552, 1554, 1556,
155
- 1558, 1560, 1562, 1564, 1566, 1568, 1570, 1572,
156
- 1573, 1574
157
- ]
158
-
159
- class << self
160
- attr_accessor :_lexer_trans_keys
161
- private :_lexer_trans_keys, :_lexer_trans_keys=
162
- end
163
- self._lexer_trans_keys = [
164
- -32, -17, 10, 32, 34, 35, 37, 42,
165
- 64, 124, 9, 13, -80, -123, -120, -119,
166
- -107, -105, -102, -88, -82, -72, -32, -80,
167
- -86, -32, -79, -115, -32, -80, -86, -32,
168
- -79, -127, -32, -80, -95, -32, -79, -127,
169
- 32, 10, 13, 10, 13, -32, 10, 32,
170
- 34, 35, 37, 42, 64, 124, 9, 13,
171
- 34, 34, 10, 13, 10, 13, 10, 32,
172
- 34, 9, 13, 10, 32, 34, 9, 13,
173
- 10, 32, 34, 9, 13, 10, 32, 34,
174
- 9, 13, 10, 32, 9, 13, 10, 32,
175
- 9, 13, 10, 13, 10, 95, 70, 69,
176
- 65, 84, 85, 82, 69, 95, 69, 78,
177
- 68, 95, 37, 13, 32, 64, 9, 10,
178
- 9, 10, 13, 32, 64, 11, 12, 10,
179
- 32, 64, 9, 13, 32, 124, 9, 13,
180
- 10, 32, 92, 124, 9, 13, 10, 92,
181
- 124, 10, 92, 10, 32, 92, 124, 9,
182
- 13, -32, 10, 32, 34, 35, 37, 42,
183
- 64, 124, 9, 13, 32, -32, -80, -86,
184
- -32, -80, -80, -32, -80, -65, -32, -80,
185
- -72, -32, -79, -115, -32, -80, -91, -32,
186
- -80, -65, -32, -80, -92, -32, -80, -65,
187
- -32, -80, -78, -32, -79, -117, -32, -80,
188
- -90, -32, -80, -66, -32, -80, -71, -32,
189
- -80, -80, -32, -80, -93, -32, -80, -78,
190
- -32, -79, -127, 58, 10, 10, -32, 10,
191
- 32, 35, 124, 9, 13, -80, 10, -105,
192
- 10, -32, 10, -79, 10, -127, 10, -32,
193
- 10, -80, 10, -93, 10, -32, 10, -80,
194
- 10, -82, 10, -32, 10, -79, 10, -127,
195
- 10, 10, 58, -32, 10, 32, 34, 35,
196
- 37, 42, 64, 124, 9, 13, -32, -80,
197
- -91, -66, -32, -80, -88, -32, -80, -126,
198
- 58, 10, 10, -32, 10, 32, 35, 37,
199
- 42, 64, 9, 13, -80, 10, -123, -120,
200
- -107, -105, -102, -82, -72, 10, -32, 10,
201
- -80, 10, -86, 10, -32, 10, -79, 10,
202
- -115, 10, -32, 10, -80, 10, -86, 10,
203
- -32, 10, -79, 10, -127, 10, -32, 10,
204
- -80, 10, -95, 10, -32, 10, -79, 10,
205
- -127, 10, 10, 32, 10, 32, -32, 10,
206
- -80, 10, -86, 10, -32, 10, -80, 10,
207
- -80, 10, -32, 10, -80, 10, -65, 10,
208
- -32, 10, -80, 10, -72, 10, -32, 10,
209
- -79, 10, -115, 10, -32, 10, -80, 10,
210
- -91, 10, -32, 10, -80, 10, -65, 10,
211
- -32, 10, -80, 10, -92, 10, -32, 10,
212
- -80, 10, -65, 10, -32, 10, -80, 10,
213
- -78, 10, -32, 10, -79, 10, -117, 10,
214
- -32, 10, -80, 10, -66, 10, -32, 10,
215
- -80, 10, -88, 10, -32, 10, -80, 10,
216
- -65, 10, -32, 10, -79, 10, -127, 10,
217
- -32, 10, -80, 10, -93, 10, -32, 10,
218
- -80, 10, -82, 10, -32, 10, -79, 10,
219
- -127, 10, 10, 58, -32, 10, -79, 10,
220
- -122, 10, -32, 10, -80, 10, -86, 10,
221
- -32, 10, -79, 10, -115, 10, -32, 10,
222
- -80, 10, -86, 10, -32, 10, -80, 10,
223
- -84, 10, -32, 10, -80, 10, -95, 10,
224
- -32, 10, -80, 10, -65, 10, -32, 10,
225
- -80, 10, -88, 10, -32, 10, -80, 10,
226
- -90, 10, -32, 10, -80, 10, -80, 10,
227
- -32, 10, -80, 10, -65, 10, -32, 10,
228
- -80, 10, -81, 10, -32, 10, -80, 10,
229
- -88, 10, -32, 10, -79, 10, -115, 10,
230
- -32, 10, -80, 10, -88, 10, -32, 10,
231
- -80, 10, -65, 10, -32, 10, -80, 10,
232
- -75, 10, -32, 10, -79, 10, -121, 10,
233
- -32, 10, -80, 10, -74, 10, -32, 10,
234
- -80, 10, -126, 10, 10, 95, 10, 70,
235
- 10, 69, 10, 65, 10, 84, 10, 85,
236
- 10, 82, 10, 69, 10, 95, 10, 69,
237
- 10, 78, 10, 68, 10, 95, 10, 37,
238
- -32, -80, -88, -32, -80, -65, -32, -79,
239
- -127, -32, -80, -93, -32, -80, -82, -32,
240
- -79, -127, 58, 10, 10, -32, 10, 32,
241
- 35, 37, 64, 9, 13, -80, 10, -119,
242
- -107, -105, -88, -72, 10, -32, 10, -80,
243
- 10, -90, 10, -32, 10, -80, 10, -66,
244
- 10, -32, 10, -80, 10, -71, 10, -32,
245
- 10, -80, 10, -80, 10, -32, 10, -80,
246
- 10, -93, 10, -32, 10, -80, 10, -78,
247
- 10, -32, 10, -79, 10, -127, 10, 10,
248
- 58, -32, 10, -80, 10, -91, 10, -32,
249
- 10, -80, 10, -88, 10, -32, 10, -80,
250
- 10, -126, 10, -32, 10, -79, 10, -127,
251
- 10, -32, 10, -80, 10, -93, 10, -32,
252
- 10, -80, 10, -82, 10, -32, 10, -79,
253
- 10, -121, 10, -32, 10, -80, 10, -86,
254
- 10, -32, 10, -80, 10, -91, 10, -32,
255
- 10, -79, 10, -115, 10, -32, 10, -80,
256
- 10, -81, 10, -32, 10, -80, 10, -88,
257
- 10, -32, 10, -79, 10, -115, 10, -32,
258
- 10, -80, 10, -88, 10, -32, 10, -80,
259
- 10, -65, 10, -32, 10, -80, 10, -75,
260
- 10, -32, 10, -79, 10, -121, 10, -32,
261
- 10, -80, 10, -74, 10, 10, 95, 10,
262
- 70, 10, 69, 10, 65, 10, 84, 10,
263
- 85, 10, 82, 10, 69, 10, 95, 10,
264
- 69, 10, 78, 10, 68, 10, 95, 10,
265
- 37, -32, -79, -122, -32, -80, -86, -32,
266
- -79, -115, -32, -80, -86, -32, -80, -84,
267
- -32, -80, -95, -32, -80, -65, -32, -80,
268
- -88, -32, -80, -90, -32, -79, -121, -32,
269
- -80, -86, -32, -80, -91, -32, -79, -115,
270
- -32, -80, -81, -32, -80, -126, 58, 10,
271
- 10, -32, 10, 32, 35, 37, 42, 64,
272
- 9, 13, -80, 10, -123, -120, -107, -105,
273
- -102, -82, -72, 10, -32, 10, -80, 10,
274
- -86, 10, -32, 10, -79, 10, -115, 10,
275
- -32, 10, -80, 10, -86, 10, -32, 10,
276
- -79, 10, -127, 10, -32, 10, -80, 10,
277
- -95, 10, -32, 10, -79, 10, -127, 10,
278
- 10, 32, 10, 32, -32, 10, -80, 10,
279
- -86, 10, -32, 10, -80, 10, -80, 10,
280
- -32, 10, -80, 10, -65, 10, -32, 10,
281
- -80, 10, -72, 10, -32, 10, -79, 10,
282
- -115, 10, -32, 10, -80, 10, -91, 10,
283
- -32, 10, -80, 10, -65, 10, -32, 10,
284
- -80, 10, -92, 10, -32, 10, -80, 10,
285
- -65, 10, -32, 10, -80, 10, -78, 10,
286
- -32, 10, -79, 10, -117, 10, -32, 10,
287
- -80, 10, -91, -66, 10, -32, 10, -80,
288
- 10, -88, 10, -32, 10, -80, 10, -126,
289
- 10, 10, 58, -32, 10, -80, 10, -88,
290
- 10, -32, 10, -80, 10, -65, 10, -32,
291
- 10, -79, 10, -127, 10, -32, 10, -80,
292
- 10, -93, 10, -32, 10, -80, 10, -82,
293
- 10, -32, 10, -79, 10, -127, 10, -32,
294
- 10, -79, 10, -122, 10, -32, 10, -80,
295
- 10, -86, 10, -32, 10, -79, 10, -115,
296
- 10, -32, 10, -80, 10, -86, 10, -32,
297
- 10, -80, 10, -84, 10, -32, 10, -80,
298
- 10, -95, 10, -32, 10, -80, 10, -65,
299
- 10, -32, 10, -80, 10, -88, 10, -32,
300
- 10, -80, 10, -90, 10, -32, 10, -80,
301
- 10, -80, 10, -32, 10, -80, 10, -65,
302
- 10, -32, 10, -80, 10, -81, 10, -32,
303
- 10, -80, 10, -88, 10, -32, 10, -79,
304
- 10, -115, 10, -32, 10, -80, 10, -88,
305
- 10, -32, 10, -80, 10, -65, 10, -32,
306
- 10, -80, 10, -75, 10, -32, 10, -79,
307
- 10, -121, 10, -32, 10, -80, 10, -74,
308
- 10, 10, 95, 10, 70, 10, 69, 10,
309
- 65, 10, 84, 10, 85, 10, 82, 10,
310
- 69, 10, 95, 10, 69, 10, 78, 10,
311
- 68, 10, 95, 10, 37, -32, -80, -80,
312
- -32, -80, -65, -32, -80, -81, -32, -80,
313
- -88, -32, -79, -115, -32, -80, -88, -32,
314
- -80, -65, -32, -80, -75, -32, -79, -121,
315
- -32, -80, -74, -32, -80, -126, 58, 10,
316
- 10, -32, 10, 32, 35, 37, 42, 64,
317
- 9, 13, -80, 10, -123, -120, -107, -105,
318
- -102, -88, -82, -72, 10, -32, 10, -80,
319
- 10, -86, 10, -32, 10, -79, 10, -115,
320
- 10, -32, 10, -80, 10, -86, 10, -32,
321
- 10, -79, 10, -127, 10, -32, 10, -80,
322
- 10, -95, 10, -32, 10, -79, 10, -127,
323
- 10, 10, 32, 10, 32, -32, 10, -80,
324
- 10, -86, 10, -32, 10, -80, 10, -80,
325
- 10, -32, 10, -80, 10, -65, 10, -32,
326
- 10, -80, 10, -72, 10, -32, 10, -79,
327
- 10, -115, 10, -32, 10, -80, 10, -91,
328
- 10, -32, 10, -80, 10, -65, 10, -32,
329
- 10, -80, 10, -92, 10, -32, 10, -80,
330
- 10, -65, 10, -32, 10, -80, 10, -78,
331
- 10, -32, 10, -79, 10, -117, 10, -32,
332
- 10, -80, 10, -91, -66, 10, -32, 10,
333
- -80, 10, -88, 10, -32, 10, -80, 10,
334
- -126, 10, 10, 58, -32, 10, -80, 10,
335
- -88, 10, -32, 10, -80, 10, -65, 10,
336
- -32, 10, -79, 10, -127, 10, -32, 10,
337
- -80, 10, -93, 10, -32, 10, -80, 10,
338
- -82, 10, -32, 10, -79, 10, -127, 10,
339
- -32, 10, -79, 10, -122, 10, -32, 10,
340
- -80, 10, -86, 10, -32, 10, -79, 10,
341
- -115, 10, -32, 10, -80, 10, -86, 10,
342
- -32, 10, -80, 10, -84, 10, -32, 10,
343
- -80, 10, -95, 10, -32, 10, -80, 10,
344
- -65, 10, -32, 10, -80, 10, -88, 10,
345
- -32, 10, -80, 10, -90, 10, -32, 10,
346
- -79, 10, -121, 10, -32, 10, -80, 10,
347
- -86, 10, -32, 10, -80, 10, -91, 10,
348
- -32, 10, -79, 10, -115, 10, -32, 10,
349
- -80, 10, -81, 10, -32, 10, -80, 10,
350
- -80, 10, -32, 10, -80, 10, -65, 10,
351
- -32, 10, -80, 10, -81, 10, -32, 10,
352
- -80, 10, -88, 10, -32, 10, -79, 10,
353
- -115, 10, -32, 10, -80, 10, -88, 10,
354
- -32, 10, -80, 10, -65, 10, -32, 10,
355
- -80, 10, -75, 10, -32, 10, -79, 10,
356
- -121, 10, -32, 10, -80, 10, -74, 10,
357
- 10, 95, 10, 70, 10, 69, 10, 65,
358
- 10, 84, 10, 85, 10, 82, 10, 69,
359
- 10, 95, 10, 69, 10, 78, 10, 68,
360
- 10, 95, 10, 37, -69, -65, 0
361
- ]
362
-
363
- class << self
364
- attr_accessor :_lexer_single_lengths
365
- private :_lexer_single_lengths, :_lexer_single_lengths=
366
- end
367
- self._lexer_single_lengths = [
368
- 0, 10, 1, 9, 1, 1, 1, 1,
369
- 1, 1, 1, 1, 1, 1, 1, 1,
370
- 1, 1, 1, 1, 1, 1, 1, 2,
371
- 2, 9, 1, 1, 2, 2, 3, 3,
372
- 3, 3, 2, 2, 2, 1, 1, 1,
373
- 1, 1, 1, 1, 1, 1, 1, 1,
374
- 1, 1, 1, 1, 3, 5, 3, 2,
375
- 4, 3, 2, 4, 9, 1, 1, 1,
376
- 1, 1, 1, 1, 1, 1, 1, 1,
377
- 1, 1, 1, 1, 1, 1, 1, 1,
378
- 1, 1, 1, 1, 1, 1, 1, 1,
379
- 1, 1, 1, 1, 1, 1, 1, 1,
380
- 1, 1, 1, 1, 1, 1, 1, 1,
381
- 1, 1, 1, 1, 1, 1, 1, 1,
382
- 1, 1, 1, 1, 1, 1, 1, 5,
383
- 2, 2, 2, 2, 2, 2, 2, 2,
384
-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2, 2, 2, 2, 2, 2, 2,
458
- 2, 2, 2, 2, 2, 2, 2, 2,
459
- 2, 2, 2, 2, 2, 2, 2, 2,
460
- 2, 2, 2, 2, 2, 2, 2, 2,
461
- 2, 2, 2, 2, 2, 2, 2, 2,
462
- 2, 2, 2, 2, 2, 2, 2, 2,
463
- 2, 2, 2, 2, 2, 2, 2, 2,
464
- 2, 2, 2, 2, 2, 2, 2, 2,
465
- 2, 2, 2, 2, 2, 2, 2, 2,
466
- 2, 2, 2, 2, 2, 2, 2, 2,
467
- 2, 2, 2, 2, 2, 2, 2, 2,
468
- 2, 2, 2, 2, 2, 2, 2, 2,
469
- 2, 2, 2, 2, 2, 2, 2, 2,
470
- 2, 2, 2, 2, 2, 2, 2, 1,
471
- 1, 0
472
- ]
473
-
474
- class << self
475
- attr_accessor :_lexer_range_lengths
476
- private :_lexer_range_lengths, :_lexer_range_lengths=
477
- end
478
- self._lexer_range_lengths = [
479
- 0, 1, 0, 0, 0, 0, 0, 0,
480
- 0, 0, 0, 0, 0, 0, 0, 0,
481
- 0, 0, 0, 0, 0, 0, 0, 0,
482
- 0, 1, 0, 0, 0, 0, 1, 1,
483
- 1, 1, 1, 1, 0, 0, 0, 0,
484
- 0, 0, 0, 0, 0, 0, 0, 0,
485
- 0, 0, 0, 0, 1, 1, 1, 1,
486
- 1, 0, 0, 1, 1, 0, 0, 0,
487
- 0, 0, 0, 0, 0, 0, 0, 0,
488
- 0, 0, 0, 0, 0, 0, 0, 0,
489
- 0, 0, 0, 0, 0, 0, 0, 0,
490
- 0, 0, 0, 0, 0, 0, 0, 0,
491
- 0, 0, 0, 0, 0, 0, 0, 0,
492
- 0, 0, 0, 0, 0, 0, 0, 0,
493
- 0, 0, 0, 0, 0, 0, 0, 1,
494
- 0, 0, 0, 0, 0, 0, 0, 0,
495
- 0, 0, 0, 0, 0, 0, 0, 1,
496
- 0, 0, 0, 0, 0, 0, 0, 0,
497
- 0, 0, 0, 0, 1, 0, 0, 0,
498
- 0, 0,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0, 0, 0, 0, 0,
572
- 0, 0, 0, 0, 0, 0, 0, 0,
573
- 0, 0, 0, 0, 0, 0, 0, 0,
574
- 0, 0, 0, 0, 0, 0, 0, 0,
575
- 0, 0, 0, 0, 0, 0, 0, 0,
576
- 0, 0, 0, 0, 0, 0, 0, 0,
577
- 0, 0, 0, 0, 0, 0, 0, 0,
578
- 0, 0, 0, 0, 0, 0, 0, 0,
579
- 0, 0, 0, 0, 0, 0, 0, 0,
580
- 0, 0, 0, 0, 0, 0, 0, 0,
581
- 0, 0, 0, 0, 0, 0, 0, 0,
582
- 0, 0
583
- ]
584
-
585
- class << self
586
- attr_accessor :_lexer_index_offsets
587
- private :_lexer_index_offsets, :_lexer_index_offsets=
588
- end
589
- self._lexer_index_offsets = [
590
- 0, 0, 12, 14, 24, 26, 28, 30,
591
- 32, 34, 36, 38, 40, 42, 44, 46,
592
- 48, 50, 52, 54, 56, 58, 60, 62,
593
- 65, 68, 79, 81, 83, 86, 89, 94,
594
- 99, 104, 109, 113, 117, 120, 122, 124,
595
- 126, 128, 130, 132, 134, 136, 138, 140,
596
- 142, 144, 146, 148, 150, 155, 162, 167,
597
- 171, 177, 181, 184, 190, 201, 203, 205,
598
- 207, 209, 211, 213, 215, 217, 219, 221,
599
- 223, 225, 227, 229, 231, 233, 235, 237,
600
- 239, 241, 243, 245, 247, 249, 251, 253,
601
- 255, 257, 259, 261, 263, 265, 267, 269,
602
- 271, 273, 275, 277, 279, 281, 283, 285,
603
- 287, 289, 291, 293, 295, 297, 299, 301,
604
- 303, 305, 307, 309, 311, 313, 315, 317,
605
- 324, 327, 330, 333, 336, 339, 342, 345,
606
- 348, 351, 354, 357, 360, 363, 366, 369,
607
- 380, 382, 384, 387, 389, 391, 393, 395,
608
- 397, 399, 401, 403, 405, 414, 417, 426,
609
- 429, 432, 435, 438, 441, 444, 447, 450,
610
- 453, 456, 459, 462, 465, 468, 471, 474,
611
- 477, 480, 483, 486, 489, 492, 495, 498,
612
- 501, 504, 507, 510, 513, 516, 519, 522,
613
- 525, 528, 531, 534, 537, 540, 543, 546,
614
- 549, 552, 555, 558, 561, 564, 567, 570,
615
- 573, 576, 579, 582, 585, 588, 591, 594,
616
- 597, 600, 603, 606, 609, 612, 615, 618,
617
- 621, 624, 627, 630, 633, 636, 639, 642,
618
- 645, 648, 651, 654, 657, 660, 663, 666,
619
- 669, 672, 675, 678, 681, 684, 687, 690,
620
- 693, 696, 699, 702, 705, 708, 711, 714,
621
- 717, 720, 723, 726, 729, 732, 735, 738,
622
- 741, 744, 747, 750, 753, 756, 759, 762,
623
- 765, 768, 771, 774, 777, 780, 783, 786,
624
- 789, 792, 795, 798, 801, 804, 807, 810,
625
- 813, 816, 819, 822, 825, 828, 831, 834,
626
- 837, 840, 843, 846, 849, 852, 855, 858,
627
- 861, 864, 867, 870, 873, 875, 877, 879,
628
- 881, 883, 885, 887, 889, 891, 893, 895,
629
- 897, 899, 901, 903, 905, 907, 909, 911,
630
- 913, 915, 923, 926, 933, 936, 939, 942,
631
- 945, 948, 951, 954, 957, 960, 963, 966,
632
- 969, 972, 975, 978, 981, 984, 987, 990,
633
- 993, 996, 999, 1002, 1005, 1008, 1011, 1014,
634
- 1017, 1020, 1023, 1026, 1029, 1032, 1035, 1038,
635
- 1041, 1044, 1047, 1050, 1053, 1056, 1059, 1062,
636
- 1065, 1068, 1071, 1074, 1077, 1080, 1083, 1086,
637
- 1089, 1092, 1095, 1098, 1101, 1104, 1107, 1110,
638
- 1113, 1116, 1119, 1122, 1125, 1128, 1131, 1134,
639
- 1137, 1140, 1143, 1146, 1149, 1152, 1155, 1158,
640
- 1161, 1164, 1167, 1170, 1173, 1176, 1179, 1182,
641
- 1185, 1188, 1191, 1194, 1197, 1200, 1203, 1205,
642
- 1207, 1209, 1211, 1213, 1215, 1217, 1219, 1221,
643
- 1223, 1225, 1227, 1229, 1231, 1233, 1235, 1237,
644
- 1239, 1241, 1243, 1245, 1247, 1249, 1251, 1253,
645
- 1255, 1257, 1259, 1261, 1263, 1265, 1267, 1269,
646
- 1271, 1273, 1275, 1277, 1279, 1281, 1283, 1285,
647
- 1287, 1289, 1291, 1293, 1295, 1297, 1299, 1308,
648
- 1311, 1320, 1323, 1326, 1329, 1332, 1335, 1338,
649
- 1341, 1344, 1347, 1350, 1353, 1356, 1359, 1362,
650
- 1365, 1368, 1371, 1374, 1377, 1380, 1383, 1386,
651
- 1389, 1392, 1395, 1398, 1401, 1404, 1407, 1410,
652
- 1413, 1416, 1419, 1422, 1425, 1428, 1431, 1434,
653
- 1437, 1440, 1443, 1446, 1449, 1452, 1455, 1458,
654
- 1461, 1464, 1467, 1470, 1473, 1476, 1479, 1482,
655
- 1485, 1489, 1492, 1495, 1498, 1501, 1504, 1507,
656
- 1510, 1513, 1516, 1519, 1522, 1525, 1528, 1531,
657
- 1534, 1537, 1540, 1543, 1546, 1549, 1552, 1555,
658
- 1558, 1561, 1564, 1567, 1570, 1573, 1576, 1579,
659
- 1582, 1585, 1588, 1591, 1594, 1597, 1600, 1603,
660
- 1606, 1609, 1612, 1615, 1618, 1621, 1624, 1627,
661
- 1630, 1633, 1636, 1639, 1642, 1645, 1648, 1651,
662
- 1654, 1657, 1660, 1663, 1666, 1669, 1672, 1675,
663
- 1678, 1681, 1684, 1687, 1690, 1693, 1696, 1699,
664
- 1702, 1705, 1708, 1711, 1714, 1717, 1720, 1723,
665
- 1726, 1729, 1732, 1735, 1738, 1741, 1744, 1747,
666
- 1750, 1753, 1756, 1759, 1762, 1765, 1768, 1771,
667
- 1774, 1777, 1779, 1781, 1783, 1785, 1787, 1789,
668
- 1791, 1793, 1795, 1797, 1799, 1801, 1803, 1805,
669
- 1807, 1809, 1811, 1813, 1815, 1817, 1819, 1821,
670
- 1823, 1825, 1827, 1829, 1831, 1833, 1835, 1837,
671
- 1839, 1841, 1843, 1845, 1847, 1849, 1858, 1861,
672
- 1871, 1874, 1877, 1880, 1883, 1886, 1889, 1892,
673
- 1895, 1898, 1901, 1904, 1907, 1910, 1913, 1916,
674
- 1919, 1922, 1925, 1928, 1931, 1934, 1937, 1940,
675
- 1943, 1946, 1949, 1952, 1955, 1958, 1961, 1964,
676
- 1967, 1970, 1973, 1976, 1979, 1982, 1985, 1988,
677
- 1991, 1994, 1997, 2000, 2003, 2006, 2009, 2012,
678
- 2015, 2018, 2021, 2024, 2027, 2030, 2033, 2036,
679
- 2040, 2043, 2046, 2049, 2052, 2055, 2058, 2061,
680
- 2064, 2067, 2070, 2073, 2076, 2079, 2082, 2085,
681
- 2088, 2091, 2094, 2097, 2100, 2103, 2106, 2109,
682
- 2112, 2115, 2118, 2121, 2124, 2127, 2130, 2133,
683
- 2136, 2139, 2142, 2145, 2148, 2151, 2154, 2157,
684
- 2160, 2163, 2166, 2169, 2172, 2175, 2178, 2181,
685
- 2184, 2187, 2190, 2193, 2196, 2199, 2202, 2205,
686
- 2208, 2211, 2214, 2217, 2220, 2223, 2226, 2229,
687
- 2232, 2235, 2238, 2241, 2244, 2247, 2250, 2253,
688
- 2256, 2259, 2262, 2265, 2268, 2271, 2274, 2277,
689
- 2280, 2283, 2286, 2289, 2292, 2295, 2298, 2301,
690
- 2304, 2307, 2310, 2313, 2316, 2319, 2322, 2325,
691
- 2328, 2331, 2334, 2337, 2340, 2343, 2346, 2349,
692
- 2352, 2355, 2358, 2361, 2364, 2367, 2370, 2373,
693
- 2375, 2377
694
- ]
695
-
696
- class << self
697
- attr_accessor :_lexer_indicies
698
- private :_lexer_indicies, :_lexer_indicies=
699
- end
700
- self._lexer_indicies = [
701
- 1, 2, 4, 3, 5, 6, 7, 8,
702
- 9, 10, 3, 0, 11, 0, 12, 13,
703
- 14, 15, 16, 17, 18, 19, 20, 0,
704
- 21, 0, 22, 0, 23, 0, 24, 0,
705
- 25, 0, 26, 0, 27, 0, 28, 0,
706
- 29, 0, 30, 0, 31, 0, 32, 0,
707
- 33, 0, 34, 0, 35, 0, 36, 0,
708
- 37, 0, 38, 0, 39, 0, 41, 42,
709
- 40, 44, 45, 43, 1, 4, 3, 5,
710
- 6, 7, 8, 9, 10, 3, 0, 46,
711
- 0, 47, 0, 49, 50, 48, 52, 53,
712
- 51, 56, 55, 57, 55, 54, 60, 59,
713
- 61, 59, 58, 60, 59, 62, 59, 58,
714
- 60, 59, 63, 59, 58, 65, 64, 64,
715
- 0, 4, 66, 66, 0, 68, 69, 67,
716
- 4, 0, 70, 0, 71, 0, 72, 0,
717
- 73, 0, 74, 0, 75, 0, 76, 0,
718
- 77, 0, 78, 0, 79, 0, 80, 0,
719
- 81, 0, 82, 0, 83, 0, 0, 0,
720
- 0, 0, 84, 85, 86, 85, 85, 88,
721
- 87, 84, 4, 89, 9, 89, 0, 90,
722
- 91, 90, 0, 94, 93, 95, 96, 93,
723
- 92, 0, 98, 99, 97, 0, 98, 97,
724
- 94, 100, 98, 99, 100, 97, 101, 94,
725
- 102, 103, 104, 105, 106, 107, 108, 102,
726
- 0, 109, 0, 110, 0, 111, 0, 112,
727
- 0, 113, 0, 114, 0, 115, 0, 116,
728
- 0, 117, 0, 118, 0, 119, 0, 120,
729
- 0, 121, 0, 122, 0, 123, 0, 124,
730
- 0, 125, 0, 126, 0, 127, 0, 128,
731
- 0, 129, 0, 130, 0, 131, 0, 132,
732
- 0, 133, 0, 134, 0, 135, 0, 136,
733
- 0, 137, 0, 138, 0, 139, 0, 140,
734
- 0, 141, 0, 38, 0, 142, 0, 143,
735
- 0, 144, 0, 145, 0, 146, 0, 147,
736
- 0, 148, 0, 149, 0, 150, 0, 151,
737
- 0, 152, 0, 153, 0, 154, 0, 155,
738
- 0, 156, 0, 157, 0, 158, 0, 159,
739
- 0, 160, 0, 161, 0, 162, 0, 163,
740
- 0, 165, 164, 167, 166, 168, 167, 169,
741
- 170, 170, 169, 166, 171, 167, 166, 172,
742
- 167, 166, 173, 167, 166, 174, 167, 166,
743
- 175, 167, 166, 176, 167, 166, 177, 167,
744
- 166, 178, 167, 166, 179, 167, 166, 180,
745
- 167, 166, 181, 167, 166, 182, 167, 166,
746
- 183, 167, 166, 184, 167, 166, 167, 185,
747
- 166, 186, 188, 187, 189, 190, 191, 192,
748
- 193, 194, 187, 0, 195, 0, 196, 0,
749
- 197, 198, 0, 199, 0, 200, 0, 201,
750
- 0, 202, 0, 203, 0, 204, 0, 205,
751
- 0, 207, 206, 209, 208, 210, 209, 211,
752
- 212, 213, 214, 212, 211, 208, 215, 209,
753
- 208, 216, 217, 218, 219, 220, 221, 222,
754
- 209, 208, 223, 209, 208, 224, 209, 208,
755
- 225, 209, 208, 226, 209, 208, 227, 209,
756
- 208, 228, 209, 208, 229, 209, 208, 230,
757
- 209, 208, 231, 209, 208, 232, 209, 208,
758
- 233, 209, 208, 234, 209, 208, 235, 209,
759
- 208, 236, 209, 208, 237, 209, 208, 238,
760
- 209, 208, 239, 209, 208, 240, 209, 208,
761
- 209, 241, 208, 209, 242, 208, 243, 209,
762
- 208, 244, 209, 208, 245, 209, 208, 246,
763
- 209, 208, 247, 209, 208, 248, 209, 208,
764
- 249, 209, 208, 250, 209, 208, 251, 209,
765
- 208, 252, 209, 208, 253, 209, 208, 254,
766
- 209, 208, 255, 209, 208, 256, 209, 208,
767
- 257, 209, 208, 258, 209, 208, 259, 209,
768
- 208, 260, 209, 208, 261, 209, 208, 262,
769
- 209, 208, 263, 209, 208, 264, 209, 208,
770
- 265, 209, 208, 266, 209, 208, 267, 209,
771
- 208, 268, 209, 208, 269, 209, 208, 270,
772
- 209, 208, 271, 209, 208, 272, 209, 208,
773
- 273, 209, 208, 274, 209, 208, 240, 209,
774
- 208, 275, 209, 208, 276, 209, 208, 277,
775
- 209, 208, 278, 209, 208, 279, 209, 208,
776
- 280, 209, 208, 281, 209, 208, 282, 209,
777
- 208, 240, 209, 208, 283, 209, 208, 284,
778
- 209, 208, 285, 209, 208, 286, 209, 208,
779
- 287, 209, 208, 288, 209, 208, 289, 209,
780
- 208, 290, 209, 208, 291, 209, 208, 292,
781
- 209, 208, 293, 209, 208, 294, 209, 208,
782
- 209, 241, 208, 295, 209, 208, 296, 209,
783
- 208, 297, 209, 208, 298, 209, 208, 299,
784
- 209, 208, 300, 209, 208, 301, 209, 208,
785
- 302, 209, 208, 303, 209, 208, 304, 209,
786
- 208, 305, 209, 208, 306, 209, 208, 307,
787
- 209, 208, 308, 209, 208, 309, 209, 208,
788
- 310, 209, 208, 311, 209, 208, 312, 209,
789
- 208, 313, 209, 208, 314, 209, 208, 315,
790
- 209, 208, 316, 209, 208, 317, 209, 208,
791
- 318, 209, 208, 319, 209, 208, 320, 209,
792
- 208, 280, 209, 208, 321, 209, 208, 322,
793
- 209, 208, 323, 209, 208, 324, 209, 208,
794
- 325, 209, 208, 326, 209, 208, 327, 209,
795
- 208, 328, 209, 208, 237, 209, 208, 329,
796
- 209, 208, 330, 209, 208, 331, 209, 208,
797
- 332, 209, 208, 333, 209, 208, 334, 209,
798
- 208, 335, 209, 208, 336, 209, 208, 337,
799
- 209, 208, 338, 209, 208, 339, 209, 208,
800
- 340, 209, 208, 341, 209, 208, 342, 209,
801
- 208, 343, 209, 208, 344, 209, 208, 345,
802
- 209, 208, 346, 209, 208, 347, 209, 208,
803
- 348, 209, 208, 349, 209, 208, 350, 209,
804
- 208, 351, 209, 208, 294, 209, 208, 209,
805
- 352, 208, 209, 353, 208, 209, 354, 208,
806
- 209, 355, 208, 209, 356, 208, 209, 357,
807
- 208, 209, 358, 208, 209, 359, 208, 209,
808
- 360, 208, 209, 361, 208, 209, 362, 208,
809
- 209, 363, 208, 209, 364, 208, 209, 365,
810
- 208, 366, 0, 367, 0, 368, 0, 369,
811
- 0, 370, 0, 38, 0, 371, 0, 372,
812
- 0, 373, 0, 374, 0, 375, 0, 376,
813
- 0, 377, 0, 378, 0, 379, 0, 380,
814
- 0, 381, 0, 382, 0, 383, 0, 385,
815
- 384, 387, 386, 388, 387, 389, 390, 391,
816
- 390, 389, 386, 392, 387, 386, 393, 394,
817
- 395, 396, 397, 387, 386, 398, 387, 386,
818
- 399, 387, 386, 400, 387, 386, 401, 387,
819
- 386, 402, 387, 386, 403, 387, 386, 404,
820
- 387, 386, 405, 387, 386, 406, 387, 386,
821
- 407, 387, 386, 408, 387, 386, 409, 387,
822
- 386, 410, 387, 386, 411, 387, 386, 412,
823
- 387, 386, 413, 387, 386, 414, 387, 386,
824
- 415, 387, 386, 416, 387, 386, 417, 387,
825
- 386, 418, 387, 386, 387, 419, 386, 420,
826
- 387, 386, 421, 387, 386, 422, 387, 386,
827
- 423, 387, 386, 424, 387, 386, 425, 387,
828
- 386, 426, 387, 386, 427, 387, 386, 418,
829
- 387, 386, 428, 387, 386, 429, 387, 386,
830
- 430, 387, 386, 431, 387, 386, 432, 387,
831
- 386, 433, 387, 386, 434, 387, 386, 435,
832
- 387, 386, 415, 387, 386, 436, 387, 386,
833
- 437, 387, 386, 438, 387, 386, 439, 387,
834
- 386, 440, 387, 386, 441, 387, 386, 442,
835
- 387, 386, 443, 387, 386, 444, 387, 386,
836
- 445, 387, 386, 446, 387, 386, 447, 387,
837
- 386, 448, 387, 386, 449, 387, 386, 425,
838
- 387, 386, 450, 387, 386, 451, 387, 386,
839
- 452, 387, 386, 453, 387, 386, 454, 387,
840
- 386, 455, 387, 386, 456, 387, 386, 457,
841
- 387, 386, 458, 387, 386, 459, 387, 386,
842
- 460, 387, 386, 461, 387, 386, 462, 387,
843
- 386, 463, 387, 386, 464, 387, 386, 465,
844
- 387, 386, 466, 387, 386, 467, 387, 386,
845
- 468, 387, 386, 469, 387, 386, 425, 387,
846
- 386, 387, 470, 386, 387, 471, 386, 387,
847
- 472, 386, 387, 473, 386, 387, 474, 386,
848
- 387, 475, 386, 387, 476, 386, 387, 477,
849
- 386, 387, 478, 386, 387, 479, 386, 387,
850
- 480, 386, 387, 481, 386, 387, 482, 386,
851
- 387, 483, 386, 484, 0, 485, 0, 486,
852
- 0, 487, 0, 488, 0, 489, 0, 490,
853
- 0, 491, 0, 492, 0, 493, 0, 494,
854
- 0, 495, 0, 496, 0, 497, 0, 498,
855
- 0, 499, 0, 500, 0, 501, 0, 502,
856
- 0, 503, 0, 504, 0, 505, 0, 506,
857
- 0, 507, 0, 508, 0, 509, 0, 368,
858
- 0, 510, 0, 511, 0, 512, 0, 513,
859
- 0, 514, 0, 515, 0, 516, 0, 517,
860
- 0, 518, 0, 519, 0, 520, 0, 521,
861
- 0, 522, 0, 523, 0, 524, 0, 525,
862
- 0, 526, 0, 527, 0, 528, 0, 530,
863
- 529, 532, 531, 533, 532, 534, 535, 536,
864
- 537, 535, 534, 531, 538, 532, 531, 539,
865
- 540, 541, 542, 543, 544, 545, 532, 531,
866
- 546, 532, 531, 547, 532, 531, 548, 532,
867
- 531, 549, 532, 531, 550, 532, 531, 551,
868
- 532, 531, 552, 532, 531, 553, 532, 531,
869
- 554, 532, 531, 555, 532, 531, 556, 532,
870
- 531, 557, 532, 531, 558, 532, 531, 559,
871
- 532, 531, 560, 532, 531, 561, 532, 531,
872
- 562, 532, 531, 563, 532, 531, 532, 564,
873
- 531, 532, 565, 531, 566, 532, 531, 567,
874
- 532, 531, 568, 532, 531, 569, 532, 531,
875
- 570, 532, 531, 571, 532, 531, 572, 532,
876
- 531, 573, 532, 531, 574, 532, 531, 575,
877
- 532, 531, 576, 532, 531, 577, 532, 531,
878
- 578, 532, 531, 579, 532, 531, 580, 532,
879
- 531, 581, 532, 531, 582, 532, 531, 583,
880
- 532, 531, 584, 532, 531, 585, 532, 531,
881
- 586, 532, 531, 587, 532, 531, 588, 532,
882
- 531, 589, 532, 531, 590, 532, 531, 591,
883
- 532, 531, 592, 532, 531, 593, 532, 531,
884
- 594, 532, 531, 595, 532, 531, 596, 532,
885
- 531, 597, 532, 531, 563, 532, 531, 598,
886
- 532, 531, 599, 532, 531, 600, 601, 532,
887
- 531, 602, 532, 531, 603, 532, 531, 604,
888
- 532, 531, 605, 532, 531, 606, 532, 531,
889
- 607, 532, 531, 532, 564, 531, 608, 532,
890
- 531, 609, 532, 531, 610, 532, 531, 611,
891
- 532, 531, 612, 532, 531, 563, 532, 531,
892
- 613, 532, 531, 614, 532, 531, 615, 532,
893
- 531, 616, 532, 531, 617, 532, 531, 618,
894
- 532, 531, 619, 532, 531, 620, 532, 531,
895
- 621, 532, 531, 622, 532, 531, 623, 532,
896
- 531, 607, 532, 531, 624, 532, 531, 625,
897
- 532, 531, 626, 532, 531, 627, 532, 531,
898
- 628, 532, 531, 629, 532, 531, 630, 532,
899
- 531, 631, 532, 531, 632, 532, 531, 633,
900
- 532, 531, 634, 532, 531, 635, 532, 531,
901
- 636, 532, 531, 637, 532, 531, 638, 532,
902
- 531, 639, 532, 531, 640, 532, 531, 641,
903
- 532, 531, 642, 532, 531, 643, 532, 531,
904
- 644, 532, 531, 645, 532, 531, 646, 532,
905
- 531, 647, 532, 531, 648, 532, 531, 649,
906
- 532, 531, 610, 532, 531, 650, 532, 531,
907
- 651, 532, 531, 652, 532, 531, 653, 532,
908
- 531, 654, 532, 531, 655, 532, 531, 656,
909
- 532, 531, 657, 532, 531, 560, 532, 531,
910
- 658, 532, 531, 659, 532, 531, 660, 532,
911
- 531, 661, 532, 531, 662, 532, 531, 663,
912
- 532, 531, 664, 532, 531, 665, 532, 531,
913
- 666, 532, 531, 667, 532, 531, 668, 532,
914
- 531, 669, 532, 531, 670, 532, 531, 671,
915
- 532, 531, 672, 532, 531, 673, 532, 531,
916
- 674, 532, 531, 675, 532, 531, 676, 532,
917
- 531, 677, 532, 531, 604, 532, 531, 532,
918
- 678, 531, 532, 679, 531, 532, 680, 531,
919
- 532, 681, 531, 532, 682, 531, 532, 683,
920
- 531, 532, 684, 531, 532, 685, 531, 532,
921
- 686, 531, 532, 687, 531, 532, 688, 531,
922
- 532, 689, 531, 532, 690, 531, 532, 691,
923
- 531, 692, 0, 693, 0, 694, 0, 695,
924
- 0, 696, 0, 697, 0, 698, 0, 699,
925
- 0, 35, 0, 700, 0, 701, 0, 702,
926
- 0, 703, 0, 704, 0, 705, 0, 706,
927
- 0, 707, 0, 708, 0, 709, 0, 710,
928
- 0, 711, 0, 712, 0, 713, 0, 714,
929
- 0, 715, 0, 716, 0, 717, 0, 718,
930
- 0, 719, 0, 720, 0, 721, 0, 722,
931
- 0, 723, 0, 724, 0, 726, 725, 728,
932
- 727, 729, 728, 730, 731, 732, 733, 731,
933
- 730, 727, 734, 728, 727, 735, 736, 737,
934
- 738, 739, 740, 741, 742, 728, 727, 743,
935
- 728, 727, 744, 728, 727, 745, 728, 727,
936
- 746, 728, 727, 747, 728, 727, 748, 728,
937
- 727, 749, 728, 727, 750, 728, 727, 751,
938
- 728, 727, 752, 728, 727, 753, 728, 727,
939
- 754, 728, 727, 755, 728, 727, 756, 728,
940
- 727, 757, 728, 727, 758, 728, 727, 759,
941
- 728, 727, 760, 728, 727, 728, 761, 727,
942
- 728, 762, 727, 763, 728, 727, 764, 728,
943
- 727, 765, 728, 727, 766, 728, 727, 767,
944
- 728, 727, 768, 728, 727, 769, 728, 727,
945
- 770, 728, 727, 771, 728, 727, 772, 728,
946
- 727, 773, 728, 727, 774, 728, 727, 775,
947
- 728, 727, 776, 728, 727, 777, 728, 727,
948
- 778, 728, 727, 779, 728, 727, 780, 728,
949
- 727, 781, 728, 727, 782, 728, 727, 783,
950
- 728, 727, 784, 728, 727, 785, 728, 727,
951
- 786, 728, 727, 787, 728, 727, 788, 728,
952
- 727, 789, 728, 727, 790, 728, 727, 791,
953
- 728, 727, 792, 728, 727, 793, 728, 727,
954
- 794, 728, 727, 760, 728, 727, 795, 728,
955
- 727, 796, 728, 727, 797, 798, 728, 727,
956
- 799, 728, 727, 800, 728, 727, 801, 728,
957
- 727, 802, 728, 727, 803, 728, 727, 804,
958
- 728, 727, 728, 761, 727, 805, 728, 727,
959
- 806, 728, 727, 807, 728, 727, 808, 728,
960
- 727, 809, 728, 727, 760, 728, 727, 810,
961
- 728, 727, 811, 728, 727, 812, 728, 727,
962
- 813, 728, 727, 814, 728, 727, 815, 728,
963
- 727, 816, 728, 727, 817, 728, 727, 818,
964
- 728, 727, 819, 728, 727, 820, 728, 727,
965
- 804, 728, 727, 821, 728, 727, 822, 728,
966
- 727, 823, 728, 727, 824, 728, 727, 825,
967
- 728, 727, 826, 728, 727, 827, 728, 727,
968
- 828, 728, 727, 829, 728, 727, 830, 728,
969
- 727, 831, 728, 727, 832, 728, 727, 833,
970
- 728, 727, 834, 728, 727, 835, 728, 727,
971
- 836, 728, 727, 837, 728, 727, 838, 728,
972
- 727, 839, 728, 727, 840, 728, 727, 841,
973
- 728, 727, 842, 728, 727, 843, 728, 727,
974
- 844, 728, 727, 845, 728, 727, 846, 728,
975
- 727, 807, 728, 727, 847, 728, 727, 848,
976
- 728, 727, 849, 728, 727, 850, 728, 727,
977
- 851, 728, 727, 852, 728, 727, 853, 728,
978
- 727, 854, 728, 727, 855, 728, 727, 856,
979
- 728, 727, 857, 728, 727, 858, 728, 727,
980
- 859, 728, 727, 860, 728, 727, 801, 728,
981
- 727, 861, 728, 727, 862, 728, 727, 863,
982
- 728, 727, 864, 728, 727, 865, 728, 727,
983
- 866, 728, 727, 867, 728, 727, 868, 728,
984
- 727, 757, 728, 727, 869, 728, 727, 870,
985
- 728, 727, 871, 728, 727, 872, 728, 727,
986
- 873, 728, 727, 874, 728, 727, 875, 728,
987
- 727, 876, 728, 727, 877, 728, 727, 878,
988
- 728, 727, 879, 728, 727, 880, 728, 727,
989
- 881, 728, 727, 882, 728, 727, 883, 728,
990
- 727, 884, 728, 727, 885, 728, 727, 886,
991
- 728, 727, 887, 728, 727, 888, 728, 727,
992
- 801, 728, 727, 728, 889, 727, 728, 890,
993
- 727, 728, 891, 727, 728, 892, 727, 728,
994
- 893, 727, 728, 894, 727, 728, 895, 727,
995
- 728, 896, 727, 728, 897, 727, 728, 898,
996
- 727, 728, 899, 727, 728, 900, 727, 728,
997
- 901, 727, 728, 902, 727, 903, 0, 3,
998
- 0, 904, 0
999
- ]
1000
-
1001
- class << self
1002
- attr_accessor :_lexer_trans_targs
1003
- private :_lexer_trans_targs, :_lexer_trans_targs=
1004
- end
1005
- self._lexer_trans_targs = [
1006
- 0, 2, 823, 25, 25, 26, 36, 38,
1007
- 22, 52, 55, 3, 4, 61, 95, 136,
1008
- 306, 414, 441, 617, 626, 5, 6, 7,
1009
- 8, 9, 10, 11, 12, 13, 14, 15,
1010
- 16, 17, 18, 19, 20, 21, 22, 23,
1011
- 24, 25, 37, 24, 25, 37, 27, 28,
1012
- 29, 30, 29, 29, 30, 29, 31, 31,
1013
- 31, 32, 31, 31, 31, 32, 33, 34,
1014
- 35, 25, 35, 36, 25, 37, 39, 40,
1015
- 41, 42, 43, 44, 45, 46, 47, 48,
1016
- 49, 50, 51, 825, 53, 54, 25, 53,
1017
- 52, 54, 55, 56, 57, 59, 60, 58,
1018
- 56, 57, 58, 56, 59, 2, 60, 26,
1019
- 36, 38, 22, 52, 55, 62, 63, 64,
1020
- 65, 66, 67, 68, 69, 70, 71, 72,
1021
- 73, 74, 75, 76, 77, 78, 79, 80,
1022
- 81, 82, 83, 84, 85, 86, 87, 88,
1023
- 89, 90, 91, 92, 93, 94, 96, 97,
1024
- 98, 99, 100, 101, 102, 103, 104, 105,
1025
- 106, 107, 108, 109, 110, 111, 112, 113,
1026
- 114, 115, 116, 117, 118, 119, 118, 119,
1027
- 120, 119, 25, 121, 122, 123, 124, 125,
1028
- 126, 127, 128, 129, 130, 131, 132, 133,
1029
- 134, 135, 2, 25, 25, 26, 36, 38,
1030
- 22, 52, 55, 137, 138, 139, 300, 140,
1031
- 141, 142, 143, 144, 145, 146, 147, 148,
1032
- 147, 148, 149, 148, 25, 286, 169, 150,
1033
- 151, 170, 204, 213, 226, 253, 262, 152,
1034
- 153, 154, 155, 156, 157, 158, 159, 160,
1035
- 161, 162, 163, 164, 165, 166, 167, 168,
1036
- 169, 135, 171, 172, 173, 174, 175, 176,
1037
- 177, 178, 179, 180, 181, 182, 183, 184,
1038
- 185, 186, 187, 188, 189, 190, 191, 192,
1039
- 193, 194, 195, 196, 197, 198, 199, 200,
1040
- 201, 202, 203, 205, 206, 207, 208, 209,
1041
- 210, 211, 212, 214, 215, 216, 217, 218,
1042
- 219, 220, 221, 222, 223, 224, 225, 227,
1043
- 228, 229, 230, 231, 232, 233, 234, 235,
1044
- 236, 237, 238, 239, 240, 241, 242, 243,
1045
- 244, 245, 246, 247, 248, 249, 250, 251,
1046
- 252, 254, 255, 256, 257, 258, 259, 260,
1047
- 261, 263, 264, 265, 266, 267, 268, 269,
1048
- 270, 271, 272, 273, 274, 275, 276, 277,
1049
- 278, 279, 280, 281, 282, 283, 284, 285,
1050
- 287, 288, 289, 290, 291, 292, 293, 294,
1051
- 295, 296, 297, 298, 299, 25, 301, 302,
1052
- 303, 304, 305, 307, 308, 309, 310, 311,
1053
- 312, 313, 314, 315, 316, 317, 318, 319,
1054
- 320, 321, 320, 321, 322, 321, 25, 400,
1055
- 323, 324, 346, 355, 364, 379, 325, 326,
1056
- 327, 328, 329, 330, 331, 332, 333, 334,
1057
- 335, 336, 337, 338, 339, 340, 341, 342,
1058
- 343, 344, 345, 135, 347, 348, 349, 350,
1059
- 351, 352, 353, 354, 356, 357, 358, 359,
1060
- 360, 361, 362, 363, 365, 366, 367, 368,
1061
- 369, 370, 371, 372, 373, 374, 375, 376,
1062
- 377, 378, 380, 381, 382, 383, 384, 385,
1063
- 386, 387, 388, 389, 390, 391, 392, 393,
1064
- 394, 395, 396, 397, 398, 399, 401, 402,
1065
- 403, 404, 405, 406, 407, 408, 409, 410,
1066
- 411, 412, 413, 25, 415, 416, 417, 418,
1067
- 419, 420, 421, 422, 423, 424, 425, 426,
1068
- 427, 428, 429, 430, 431, 432, 433, 434,
1069
- 435, 436, 437, 438, 439, 440, 442, 443,
1070
- 444, 445, 446, 447, 448, 449, 450, 451,
1071
- 452, 453, 454, 455, 456, 457, 458, 459,
1072
- 460, 461, 462, 461, 462, 463, 462, 25,
1073
- 603, 483, 464, 465, 484, 518, 534, 546,
1074
- 573, 582, 466, 467, 468, 469, 470, 471,
1075
- 472, 473, 474, 475, 476, 477, 478, 479,
1076
- 480, 481, 482, 483, 135, 485, 486, 487,
1077
- 488, 489, 490, 491, 492, 493, 494, 495,
1078
- 496, 497, 498, 499, 500, 501, 502, 503,
1079
- 504, 505, 506, 507, 508, 509, 510, 511,
1080
- 512, 513, 514, 515, 516, 517, 519, 520,
1081
- 521, 528, 522, 523, 524, 525, 526, 527,
1082
- 529, 530, 531, 532, 533, 535, 536, 537,
1083
- 538, 539, 540, 541, 542, 543, 544, 545,
1084
- 547, 548, 549, 550, 551, 552, 553, 554,
1085
- 555, 556, 557, 558, 559, 560, 561, 562,
1086
- 563, 564, 565, 566, 567, 568, 569, 570,
1087
- 571, 572, 574, 575, 576, 577, 578, 579,
1088
- 580, 581, 583, 584, 585, 586, 587, 588,
1089
- 589, 590, 591, 592, 593, 594, 595, 596,
1090
- 597, 598, 599, 600, 601, 602, 604, 605,
1091
- 606, 607, 608, 609, 610, 611, 612, 613,
1092
- 614, 615, 616, 25, 618, 619, 620, 621,
1093
- 622, 623, 624, 625, 627, 628, 629, 630,
1094
- 631, 632, 633, 634, 635, 636, 637, 638,
1095
- 639, 640, 641, 642, 643, 644, 645, 646,
1096
- 647, 648, 649, 650, 651, 652, 653, 652,
1097
- 653, 654, 653, 25, 809, 674, 655, 656,
1098
- 675, 709, 725, 737, 764, 779, 788, 657,
1099
- 658, 659, 660, 661, 662, 663, 664, 665,
1100
- 666, 667, 668, 669, 670, 671, 672, 673,
1101
- 674, 135, 676, 677, 678, 679, 680, 681,
1102
- 682, 683, 684, 685, 686, 687, 688, 689,
1103
- 690, 691, 692, 693, 694, 695, 696, 697,
1104
- 698, 699, 700, 701, 702, 703, 704, 705,
1105
- 706, 707, 708, 710, 711, 712, 719, 713,
1106
- 714, 715, 716, 717, 718, 720, 721, 722,
1107
- 723, 724, 726, 727, 728, 729, 730, 731,
1108
- 732, 733, 734, 735, 736, 738, 739, 740,
1109
- 741, 742, 743, 744, 745, 746, 747, 748,
1110
- 749, 750, 751, 752, 753, 754, 755, 756,
1111
- 757, 758, 759, 760, 761, 762, 763, 765,
1112
- 766, 767, 768, 769, 770, 771, 772, 773,
1113
- 774, 775, 776, 777, 778, 780, 781, 782,
1114
- 783, 784, 785, 786, 787, 789, 790, 791,
1115
- 792, 793, 794, 795, 796, 797, 798, 799,
1116
- 800, 801, 802, 803, 804, 805, 806, 807,
1117
- 808, 810, 811, 812, 813, 814, 815, 816,
1118
- 817, 818, 819, 820, 821, 822, 25, 824,
1119
- 0
1120
- ]
1121
-
1122
- class << self
1123
- attr_accessor :_lexer_trans_actions
1124
- private :_lexer_trans_actions, :_lexer_trans_actions=
1125
- end
1126
- self._lexer_trans_actions = [
1127
- 43, 29, 0, 0, 54, 3, 1, 0,
1128
- 29, 1, 35, 0, 0, 0, 0, 0,
1129
- 0, 0, 0, 0, 0, 0, 0, 0,
1130
- 0, 0, 0, 0, 0, 0, 0, 0,
1131
- 0, 0, 0, 0, 0, 0, 0, 0,
1132
- 57, 149, 126, 0, 110, 23, 0, 0,
1133
- 7, 139, 48, 0, 102, 9, 5, 45,
1134
- 134, 45, 0, 33, 122, 33, 33, 0,
1135
- 11, 106, 0, 0, 114, 25, 0, 0,
1136
- 0, 0, 0, 0, 0, 0, 0, 0,
1137
- 0, 0, 0, 0, 0, 27, 118, 27,
1138
- 51, 0, 0, 0, 37, 37, 54, 37,
1139
- 87, 0, 0, 39, 0, 96, 0, 93,
1140
- 90, 41, 96, 90, 99, 0, 0, 0,
1141
- 0, 0, 0, 0, 0, 0, 0, 0,
1142
- 0, 0, 0, 0, 0, 0, 0, 0,
1143
- 0, 0, 0, 0, 0, 0, 0, 0,
1144
- 0, 0, 0, 0, 0, 0, 0, 0,
1145
- 0, 0, 0, 0, 0, 0, 0, 0,
1146
- 0, 0, 0, 0, 0, 0, 0, 0,
1147
- 0, 0, 0, 0, 57, 144, 0, 54,
1148
- 84, 0, 81, 0, 0, 0, 0, 0,
1149
- 0, 0, 0, 0, 0, 0, 0, 0,
1150
- 0, 21, 63, 31, 130, 60, 57, 31,
1151
- 63, 57, 66, 0, 0, 0, 0, 0,
1152
- 0, 0,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
1223
- 0, 0, 0, 0, 0, 0, 0, 0,
1224
- 0, 0, 0, 0, 0, 0, 0, 0,
1225
- 0, 0, 0, 0, 0, 0, 0, 0,
1226
- 0, 0, 0, 0, 0, 0, 0, 0,
1227
- 0, 0, 0, 0, 0, 0, 0, 0,
1228
- 0, 0, 0, 0, 0, 0, 0, 0,
1229
- 0, 0, 0, 0, 0, 0, 0, 0,
1230
- 0, 0, 0, 0, 0, 0, 0, 0,
1231
- 0, 0, 0, 0, 0, 0, 0, 0,
1232
- 0, 0, 0, 0, 0, 0, 0, 0,
1233
- 0, 0, 0, 0, 0, 0, 0, 0,
1234
- 0, 0, 0, 0, 0, 0, 0, 0,
1235
- 0, 0, 0, 0, 0, 0, 0, 0,
1236
- 0, 0, 0, 0, 0, 0, 0, 0,
1237
- 0, 0, 0, 0, 0, 0, 0, 0,
1238
- 0, 0, 0, 0, 0, 0, 0, 0,
1239
- 0, 0, 0, 0, 0, 0, 17, 0,
1240
- 0
1241
- ]
1242
-
1243
- class << self
1244
- attr_accessor :_lexer_eof_actions
1245
- private :_lexer_eof_actions, :_lexer_eof_actions=
1246
- end
1247
- self._lexer_eof_actions = [
1248
- 0, 43, 43, 43, 43, 43, 43, 43,
1249
- 43, 43, 43, 43, 43, 43, 43, 43,
1250
- 43, 43, 43, 43, 43, 43, 43, 43,
1251
- 43, 43, 43, 43, 43, 43, 43, 43,
1252
- 43, 43, 43, 43, 43, 43, 43, 43,
1253
- 43, 43, 43, 43, 43, 43, 43, 43,
1254
- 43, 43, 43, 43, 43, 43, 43, 43,
1255
- 43, 43, 43, 43, 43, 43, 43, 43,
1256
- 43, 43, 43, 43, 43, 43, 43, 43,
1257
- 43, 43, 43, 43, 43, 43, 43, 43,
1258
- 43, 43, 43, 43, 43, 43, 43, 43,
1259
- 43, 43, 43, 43, 43, 43, 43, 43,
1260
- 43, 43, 43, 43, 43, 43, 43, 43,
1261
- 43, 43, 43, 43, 43, 43, 43, 43,
1262
- 43, 43, 43, 43, 43, 43, 43, 43,
1263
- 43, 43, 43, 43, 43, 43, 43, 43,
1264
- 43, 43, 43, 43, 43, 43, 43, 43,
1265
- 43, 43, 43, 43, 43, 43, 43, 43,
1266
- 43, 43, 43, 43, 43, 43, 43, 43,
1267
- 43, 43, 43, 43, 43, 43, 43, 43,
1268
- 43, 43, 43, 43, 43, 43, 43, 43,
1269
- 43, 43, 43, 43, 43, 43, 43, 43,
1270
- 43, 43, 43, 43, 43, 43, 43, 43,
1271
- 43, 43, 43, 43, 43, 43, 43, 43,
1272
- 43, 43, 43, 43, 43, 43, 43, 43,
1273
- 43, 43, 43, 43, 43, 43, 43, 43,
1274
- 43, 43, 43, 43, 43, 43, 43, 43,
1275
- 43, 43, 43, 43, 43, 43, 43, 43,
1276
- 43, 43, 43, 43, 43, 43, 43, 43,
1277
- 43, 43, 43, 43, 43, 43, 43, 43,
1278
- 43, 43, 43, 43, 43, 43, 43, 43,
1279
- 43, 43, 43, 43, 43, 43, 43, 43,
1280
- 43, 43, 43, 43, 43, 43, 43, 43,
1281
- 43, 43, 43, 43, 43, 43, 43, 43,
1282
- 43, 43, 43, 43, 43, 43, 43, 43,
1283
- 43, 43, 43, 43, 43, 43, 43, 43,
1284
- 43, 43, 43, 43, 43, 43, 43, 43,
1285
- 43, 43, 43, 43, 43, 43, 43, 43,
1286
- 43, 43, 43, 43, 43, 43, 43, 43,
1287
- 43, 43, 43, 43, 43, 43, 43, 43,
1288
- 43, 43, 43, 43, 43, 43, 43, 43,
1289
- 43, 43, 43, 43, 43, 43, 43, 43,
1290
- 43, 43, 43, 43, 43, 43, 43, 43,
1291
- 43, 43, 43, 43, 43, 43, 43, 43,
1292
- 43, 43, 43, 43, 43, 43, 43, 43,
1293
- 43, 43, 43, 43, 43, 43, 43, 43,
1294
- 43, 43, 43, 43, 43, 43, 43, 43,
1295
- 43, 43, 43, 43, 43, 43, 43, 43,
1296
- 43, 43, 43, 43, 43, 43, 43, 43,
1297
- 43, 43, 43, 43, 43, 43, 43, 43,
1298
- 43, 43, 43, 43, 43, 43, 43, 43,
1299
- 43, 43, 43, 43, 43, 43, 43, 43,
1300
- 43, 43, 43, 43, 43, 43, 43, 43,
1301
- 43, 43, 43, 43, 43, 43, 43, 43,
1302
- 43, 43, 43, 43, 43, 43, 43, 43,
1303
- 43, 43, 43, 43, 43, 43, 43, 43,
1304
- 43, 43, 43, 43, 43, 43, 43, 43,
1305
- 43, 43, 43, 43, 43, 43, 43, 43,
1306
- 43, 43, 43, 43, 43, 43, 43, 43,
1307
- 43, 43, 43, 43, 43, 43, 43, 43,
1308
- 43, 43, 43, 43, 43, 43, 43, 43,
1309
- 43, 43, 43, 43, 43, 43, 43, 43,
1310
- 43, 43, 43, 43, 43, 43, 43, 43,
1311
- 43, 43, 43, 43, 43, 43, 43, 43,
1312
- 43, 43, 43, 43, 43, 43, 43, 43,
1313
- 43, 43, 43, 43, 43, 43, 43, 43,
1314
- 43, 43, 43, 43, 43, 43, 43, 43,
1315
- 43, 43, 43, 43, 43, 43, 43, 43,
1316
- 43, 43, 43, 43, 43, 43, 43, 43,
1317
- 43, 43, 43, 43, 43, 43, 43, 43,
1318
- 43, 43, 43, 43, 43, 43, 43, 43,
1319
- 43, 43, 43, 43, 43, 43, 43, 43,
1320
- 43, 43, 43, 43, 43, 43, 43, 43,
1321
- 43, 43, 43, 43, 43, 43, 43, 43,
1322
- 43, 43, 43, 43, 43, 43, 43, 43,
1323
- 43, 43, 43, 43, 43, 43, 43, 43,
1324
- 43, 43, 43, 43, 43, 43, 43, 43,
1325
- 43, 43, 43, 43, 43, 43, 43, 43,
1326
- 43, 43, 43, 43, 43, 43, 43, 43,
1327
- 43, 43, 43, 43, 43, 43, 43, 43,
1328
- 43, 43, 43, 43, 43, 43, 43, 43,
1329
- 43, 43, 43, 43, 43, 43, 43, 43,
1330
- 43, 43, 43, 43, 43, 43, 43, 43,
1331
- 43, 43, 43, 43, 43, 43, 43, 43,
1332
- 43, 43, 43, 43, 43, 43, 43, 43,
1333
- 43, 43, 43, 43, 43, 43, 43, 43,
1334
- 43, 43, 43, 43, 43, 43, 43, 43,
1335
- 43, 43, 43, 43, 43, 43, 43, 43,
1336
- 43, 43, 43, 43, 43, 43, 43, 43,
1337
- 43, 43, 43, 43, 43, 43, 43, 43,
1338
- 43, 43, 43, 43, 43, 43, 43, 43,
1339
- 43, 43, 43, 43, 43, 43, 43, 43,
1340
- 43, 43, 43, 43, 43, 43, 43, 43,
1341
- 43, 43, 43, 43, 43, 43, 43, 43,
1342
- 43, 43, 43, 43, 43, 43, 43, 43,
1343
- 43, 43, 43, 43, 43, 43, 43, 43,
1344
- 43, 43, 43, 43, 43, 43, 43, 43,
1345
- 43, 43, 43, 43, 43, 43, 43, 43,
1346
- 43, 43, 43, 43, 43, 43, 43, 43,
1347
- 43, 43, 43, 43, 43, 43, 43, 43,
1348
- 43, 43, 43, 43, 43, 43, 43, 43,
1349
- 43, 43, 43, 43, 43, 43, 43, 43,
1350
- 43, 43, 43, 43, 43, 43, 43, 43,
1351
- 43, 43
1352
- ]
1353
-
1354
- class << self
1355
- attr_accessor :lexer_start
1356
- end
1357
- self.lexer_start = 1;
1358
- class << self
1359
- attr_accessor :lexer_first_final
1360
- end
1361
- self.lexer_first_final = 825;
1362
- class << self
1363
- attr_accessor :lexer_error
1364
- end
1365
- self.lexer_error = 0;
1366
-
1367
- class << self
1368
- attr_accessor :lexer_en_main
1369
- end
1370
- self.lexer_en_main = 1;
1371
-
1372
-
1373
- # line 133 "ragel/i18n/tl.rb.rl"
1374
- end
1375
-
1376
- def scan(data)
1377
- data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably
1378
- eof = pe = data.length
1379
-
1380
- @line_number = 1
1381
- @last_newline = 0
1382
-
1383
-
1384
- # line 1385 "lib/gherkin/lexer/tl.rb"
1385
- begin
1386
- p ||= 0
1387
- pe ||= data.length
1388
- cs = lexer_start
1389
- end
1390
-
1391
- # line 143 "ragel/i18n/tl.rb.rl"
1392
-
1393
- # line 1394 "lib/gherkin/lexer/tl.rb"
1394
- begin
1395
- _klen, _trans, _keys, _acts, _nacts = nil
1396
- _goto_level = 0
1397
- _resume = 10
1398
- _eof_trans = 15
1399
- _again = 20
1400
- _test_eof = 30
1401
- _out = 40
1402
- while true
1403
- _trigger_goto = false
1404
- if _goto_level <= 0
1405
- if p == pe
1406
- _goto_level = _test_eof
1407
- next
1408
- end
1409
- if cs == 0
1410
- _goto_level = _out
1411
- next
1412
- end
1413
- end
1414
- if _goto_level <= _resume
1415
- _keys = _lexer_key_offsets[cs]
1416
- _trans = _lexer_index_offsets[cs]
1417
- _klen = _lexer_single_lengths[cs]
1418
- _break_match = false
1419
-
1420
- begin
1421
- if _klen > 0
1422
- _lower = _keys
1423
- _upper = _keys + _klen - 1
1424
-
1425
- loop do
1426
- break if _upper < _lower
1427
- _mid = _lower + ( (_upper - _lower) >> 1 )
1428
-
1429
- if data[p].ord < _lexer_trans_keys[_mid]
1430
- _upper = _mid - 1
1431
- elsif data[p].ord > _lexer_trans_keys[_mid]
1432
- _lower = _mid + 1
1433
- else
1434
- _trans += (_mid - _keys)
1435
- _break_match = true
1436
- break
1437
- end
1438
- end # loop
1439
- break if _break_match
1440
- _keys += _klen
1441
- _trans += _klen
1442
- end
1443
- _klen = _lexer_range_lengths[cs]
1444
- if _klen > 0
1445
- _lower = _keys
1446
- _upper = _keys + (_klen << 1) - 2
1447
- loop do
1448
- break if _upper < _lower
1449
- _mid = _lower + (((_upper-_lower) >> 1) & ~1)
1450
- if data[p].ord < _lexer_trans_keys[_mid]
1451
- _upper = _mid - 2
1452
- elsif data[p].ord > _lexer_trans_keys[_mid+1]
1453
- _lower = _mid + 2
1454
- else
1455
- _trans += ((_mid - _keys) >> 1)
1456
- _break_match = true
1457
- break
1458
- end
1459
- end # loop
1460
- break if _break_match
1461
- _trans += _klen
1462
- end
1463
- end while false
1464
- _trans = _lexer_indicies[_trans]
1465
- cs = _lexer_trans_targs[_trans]
1466
- if _lexer_trans_actions[_trans] != 0
1467
- _acts = _lexer_trans_actions[_trans]
1468
- _nacts = _lexer_actions[_acts]
1469
- _acts += 1
1470
- while _nacts > 0
1471
- _nacts -= 1
1472
- _acts += 1
1473
- case _lexer_actions[_acts - 1]
1474
- when 0 then
1475
- # line 11 "ragel/i18n/tl.rb.rl"
1476
- begin
1477
-
1478
- @content_start = p
1479
- @current_line = @line_number
1480
- @start_col = p - @last_newline - "#{@keyword}:".length
1481
- end
1482
- when 1 then
1483
- # line 17 "ragel/i18n/tl.rb.rl"
1484
- begin
1485
-
1486
- @current_line = @line_number
1487
- @start_col = p - @last_newline
1488
- end
1489
- when 2 then
1490
- # line 22 "ragel/i18n/tl.rb.rl"
1491
- begin
1492
-
1493
- @content_start = p
1494
- end
1495
- when 3 then
1496
- # line 26 "ragel/i18n/tl.rb.rl"
1497
- begin
1498
-
1499
- @docstring_content_type_start = p
1500
- end
1501
- when 4 then
1502
- # line 29 "ragel/i18n/tl.rb.rl"
1503
- begin
1504
-
1505
- @docstring_content_type_end = p
1506
- end
1507
- when 5 then
1508
- # line 33 "ragel/i18n/tl.rb.rl"
1509
- begin
1510
-
1511
- con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""'))
1512
- con_type = utf8_pack(data[@docstring_content_type_start...@docstring_content_type_end]).strip
1513
- @listener.doc_string(con_type, con, @current_line)
1514
- end
1515
- when 6 then
1516
- # line 38 "ragel/i18n/tl.rb.rl"
1517
- begin
1518
-
1519
- p = store_keyword_content(:feature, data, p, eof)
1520
- end
1521
- when 7 then
1522
- # line 42 "ragel/i18n/tl.rb.rl"
1523
- begin
1524
-
1525
- p = store_keyword_content(:background, data, p, eof)
1526
- end
1527
- when 8 then
1528
- # line 46 "ragel/i18n/tl.rb.rl"
1529
- begin
1530
-
1531
- p = store_keyword_content(:scenario, data, p, eof)
1532
- end
1533
- when 9 then
1534
- # line 50 "ragel/i18n/tl.rb.rl"
1535
- begin
1536
-
1537
- p = store_keyword_content(:scenario_outline, data, p, eof)
1538
- end
1539
- when 10 then
1540
- # line 54 "ragel/i18n/tl.rb.rl"
1541
- begin
1542
-
1543
- p = store_keyword_content(:examples, data, p, eof)
1544
- end
1545
- when 11 then
1546
- # line 58 "ragel/i18n/tl.rb.rl"
1547
- begin
1548
-
1549
- con = utf8_pack(data[@content_start...p]).strip
1550
- @listener.step(@keyword, con, @current_line)
1551
- end
1552
- when 12 then
1553
- # line 63 "ragel/i18n/tl.rb.rl"
1554
- begin
1555
-
1556
- con = utf8_pack(data[@content_start...p]).strip
1557
- @listener.comment(con, @line_number)
1558
- @keyword_start = nil
1559
- end
1560
- when 13 then
1561
- # line 69 "ragel/i18n/tl.rb.rl"
1562
- begin
1563
-
1564
- con = utf8_pack(data[@content_start...p]).strip
1565
- @listener.tag(con, @current_line)
1566
- @keyword_start = nil
1567
- end
1568
- when 14 then
1569
- # line 75 "ragel/i18n/tl.rb.rl"
1570
- begin
1571
-
1572
- @line_number += 1
1573
- end
1574
- when 15 then
1575
- # line 79 "ragel/i18n/tl.rb.rl"
1576
- begin
1577
-
1578
- @last_newline = p + 1
1579
- end
1580
- when 16 then
1581
- # line 83 "ragel/i18n/tl.rb.rl"
1582
- begin
1583
-
1584
- @keyword_start ||= p
1585
- end
1586
- when 17 then
1587
- # line 87 "ragel/i18n/tl.rb.rl"
1588
- begin
1589
-
1590
- @keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'')
1591
- @keyword_start = nil
1592
- end
1593
- when 18 then
1594
- # line 92 "ragel/i18n/tl.rb.rl"
1595
- begin
1596
-
1597
- @next_keyword_start = p
1598
- end
1599
- when 19 then
1600
- # line 96 "ragel/i18n/tl.rb.rl"
1601
- begin
1602
-
1603
- p = p - 1
1604
- current_row = []
1605
- @current_line = @line_number
1606
- end
1607
- when 20 then
1608
- # line 102 "ragel/i18n/tl.rb.rl"
1609
- begin
1610
-
1611
- @content_start = p
1612
- end
1613
- when 21 then
1614
- # line 106 "ragel/i18n/tl.rb.rl"
1615
- begin
1616
-
1617
- con = utf8_pack(data[@content_start...p]).strip
1618
- current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\")
1619
- end
1620
- when 22 then
1621
- # line 111 "ragel/i18n/tl.rb.rl"
1622
- begin
1623
-
1624
- @listener.row(current_row, @current_line)
1625
- end
1626
- when 23 then
1627
- # line 115 "ragel/i18n/tl.rb.rl"
1628
- begin
1629
-
1630
- if cs < lexer_first_final
1631
- content = current_line_content(data, p)
1632
- 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])
1633
- else
1634
- @listener.eof
1635
- end
1636
- end
1637
- # line 1638 "lib/gherkin/lexer/tl.rb"
1638
- end # action switch
1639
- end
1640
- end
1641
- if _trigger_goto
1642
- next
1643
- end
1644
- end
1645
- if _goto_level <= _again
1646
- if cs == 0
1647
- _goto_level = _out
1648
- next
1649
- end
1650
- p += 1
1651
- if p != pe
1652
- _goto_level = _resume
1653
- next
1654
- end
1655
- end
1656
- if _goto_level <= _test_eof
1657
- if p == eof
1658
- __acts = _lexer_eof_actions[cs]
1659
- __nacts = _lexer_actions[__acts]
1660
- __acts += 1
1661
- while __nacts > 0
1662
- __nacts -= 1
1663
- __acts += 1
1664
- case _lexer_actions[__acts - 1]
1665
- when 23 then
1666
- # line 115 "ragel/i18n/tl.rb.rl"
1667
- begin
1668
-
1669
- if cs < lexer_first_final
1670
- content = current_line_content(data, p)
1671
- 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])
1672
- else
1673
- @listener.eof
1674
- end
1675
- end
1676
- # line 1677 "lib/gherkin/lexer/tl.rb"
1677
- end # eof action switch
1678
- end
1679
- if _trigger_goto
1680
- next
1681
- end
1682
- end
1683
- end
1684
- if _goto_level <= _out
1685
- break
1686
- end
1687
- end
1688
- end
1689
-
1690
- # line 144 "ragel/i18n/tl.rb.rl"
1691
- end
1692
-
1693
- def unindent(startcol, text)
1694
- text.gsub(/^[\t ]{0,#{startcol}}/, "")
1695
- end
1696
-
1697
- def store_keyword_content(event, data, p, eof)
1698
- end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
1699
- content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
1700
- content_lines = content.split("\n")
1701
- name = content_lines.shift || ""
1702
- name.strip!
1703
- description = content_lines.join("\n")
1704
- @listener.__send__(event, @keyword, name, description, @current_line)
1705
- @next_keyword_start ? @next_keyword_start - 1 : p
1706
- ensure
1707
- @next_keyword_start = nil
1708
- end
1709
-
1710
- def current_line_content(data, p)
1711
- rest = data[@last_newline..-1]
1712
- utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
1713
- end
1714
-
1715
- if (RUBY_VERSION =~ /^1\.9|2\.0/)
1716
- def utf8_pack(array)
1717
- array.pack("c*").force_encoding("UTF-8")
1718
- end
1719
- else
1720
- def utf8_pack(array)
1721
- array.pack("c*")
1722
- end
1723
- end
1724
- end
1725
- end
1726
- end