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