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