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