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