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