gherkin 2.12.2 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (333) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -15
  3. data/CONTRIBUTING.md +23 -0
  4. data/Gemfile +0 -3
  5. data/LICENSE +18 -17
  6. data/Makefile +65 -0
  7. data/README.md +9 -268
  8. data/Rakefile +17 -19
  9. data/bin/gherkin-generate-ast +21 -0
  10. data/bin/gherkin-generate-pickles +25 -0
  11. data/bin/gherkin-generate-tokens +12 -0
  12. data/gherkin-ruby.razor +218 -0
  13. data/gherkin.gemspec +22 -76
  14. data/lib/gherkin/ast_builder.rb +243 -0
  15. data/lib/gherkin/ast_node.rb +30 -0
  16. data/lib/gherkin/dialect.rb +58 -0
  17. data/lib/gherkin/errors.rb +45 -0
  18. data/lib/gherkin/gherkin-languages.json +2968 -0
  19. data/lib/gherkin/gherkin_line.rb +95 -0
  20. data/lib/gherkin/parser.rb +1910 -0
  21. data/lib/gherkin/pickles/compiler.rb +164 -0
  22. data/lib/gherkin/token.rb +18 -0
  23. data/lib/gherkin/token_formatter_builder.rb +39 -0
  24. data/lib/gherkin/token_matcher.rb +169 -0
  25. data/lib/gherkin/token_scanner.rb +40 -0
  26. data/spec/capture_warnings.rb +68 -0
  27. data/spec/coverage.rb +10 -0
  28. data/spec/gherkin/parser_spec.rb +146 -0
  29. metadata +60 -567
  30. data/.gitattributes +0 -2
  31. data/.mailmap +0 -2
  32. data/.rbenv-gemsets +0 -1
  33. data/.rspec +0 -1
  34. data/.ruby-gemset +0 -1
  35. data/.ruby-version +0 -1
  36. data/.yardopts +0 -5
  37. data/History.md +0 -881
  38. data/build_native_gems.sh +0 -7
  39. data/cucumber.yml +0 -5
  40. data/examples/parse_and_output_json.rb +0 -19
  41. data/ext/gherkin_lexer_ar/extconf.rb +0 -6
  42. data/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +0 -1432
  43. data/ext/gherkin_lexer_bg/extconf.rb +0 -6
  44. data/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +0 -1655
  45. data/ext/gherkin_lexer_bm/extconf.rb +0 -6
  46. data/ext/gherkin_lexer_bm/gherkin_lexer_bm.c +0 -1516
  47. data/ext/gherkin_lexer_ca/extconf.rb +0 -6
  48. data/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +0 -1581
  49. data/ext/gherkin_lexer_cs/extconf.rb +0 -6
  50. data/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +0 -1515
  51. data/ext/gherkin_lexer_cy_gb/extconf.rb +0 -6
  52. data/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +0 -1282
  53. data/ext/gherkin_lexer_da/extconf.rb +0 -6
  54. data/ext/gherkin_lexer_da/gherkin_lexer_da.c +0 -1298
  55. data/ext/gherkin_lexer_de/extconf.rb +0 -6
  56. data/ext/gherkin_lexer_de/gherkin_lexer_de.c +0 -1425
  57. data/ext/gherkin_lexer_el/extconf.rb +0 -6
  58. data/ext/gherkin_lexer_el/gherkin_lexer_el.c +0 -1919
  59. data/ext/gherkin_lexer_en/extconf.rb +0 -6
  60. data/ext/gherkin_lexer_en/gherkin_lexer_en.c +0 -1418
  61. data/ext/gherkin_lexer_en_au/extconf.rb +0 -6
  62. data/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +0 -1765
  63. data/ext/gherkin_lexer_en_lol/extconf.rb +0 -6
  64. data/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +0 -1177
  65. data/ext/gherkin_lexer_en_old/extconf.rb +0 -6
  66. data/ext/gherkin_lexer_en_old/gherkin_lexer_en_old.c +0 -1309
  67. data/ext/gherkin_lexer_en_pirate/extconf.rb +0 -6
  68. data/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +0 -1471
  69. data/ext/gherkin_lexer_en_scouse/extconf.rb +0 -6
  70. data/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +0 -1634
  71. data/ext/gherkin_lexer_en_tx/extconf.rb +0 -6
  72. data/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +0 -1265
  73. data/ext/gherkin_lexer_eo/extconf.rb +0 -6
  74. data/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +0 -1241
  75. data/ext/gherkin_lexer_es/extconf.rb +0 -6
  76. data/ext/gherkin_lexer_es/gherkin_lexer_es.c +0 -1399
  77. data/ext/gherkin_lexer_et/extconf.rb +0 -6
  78. data/ext/gherkin_lexer_et/gherkin_lexer_et.c +0 -1236
  79. data/ext/gherkin_lexer_fa/extconf.rb +0 -6
  80. data/ext/gherkin_lexer_fa/gherkin_lexer_fa.c +0 -1475
  81. data/ext/gherkin_lexer_fi/extconf.rb +0 -6
  82. data/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +0 -1215
  83. data/ext/gherkin_lexer_fr/extconf.rb +0 -6
  84. data/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +0 -1493
  85. data/ext/gherkin_lexer_gl/extconf.rb +0 -6
  86. data/ext/gherkin_lexer_gl/gherkin_lexer_gl.c +0 -1374
  87. data/ext/gherkin_lexer_he/extconf.rb +0 -6
  88. data/ext/gherkin_lexer_he/gherkin_lexer_he.c +0 -1374
  89. data/ext/gherkin_lexer_hi/extconf.rb +0 -6
  90. data/ext/gherkin_lexer_hi/gherkin_lexer_hi.c +0 -1848
  91. data/ext/gherkin_lexer_hr/extconf.rb +0 -6
  92. data/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +0 -1323
  93. data/ext/gherkin_lexer_hu/extconf.rb +0 -6
  94. data/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +0 -1376
  95. data/ext/gherkin_lexer_id/extconf.rb +0 -6
  96. data/ext/gherkin_lexer_id/gherkin_lexer_id.c +0 -1208
  97. data/ext/gherkin_lexer_is/extconf.rb +0 -6
  98. data/ext/gherkin_lexer_is/gherkin_lexer_is.c +0 -1376
  99. data/ext/gherkin_lexer_it/extconf.rb +0 -6
  100. data/ext/gherkin_lexer_it/gherkin_lexer_it.c +0 -1340
  101. data/ext/gherkin_lexer_ja/extconf.rb +0 -6
  102. data/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +0 -1699
  103. data/ext/gherkin_lexer_kn/extconf.rb +0 -6
  104. data/ext/gherkin_lexer_kn/gherkin_lexer_kn.c +0 -1965
  105. data/ext/gherkin_lexer_ko/extconf.rb +0 -6
  106. data/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +0 -1360
  107. data/ext/gherkin_lexer_lt/extconf.rb +0 -6
  108. data/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +0 -1296
  109. data/ext/gherkin_lexer_lu/extconf.rb +0 -6
  110. data/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +0 -1389
  111. data/ext/gherkin_lexer_lv/extconf.rb +0 -6
  112. data/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +0 -1425
  113. data/ext/gherkin_lexer_nl/extconf.rb +0 -6
  114. data/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +0 -1368
  115. data/ext/gherkin_lexer_no/extconf.rb +0 -6
  116. data/ext/gherkin_lexer_no/gherkin_lexer_no.c +0 -1311
  117. data/ext/gherkin_lexer_pa/extconf.rb +0 -6
  118. data/ext/gherkin_lexer_pa/gherkin_lexer_pa.c +0 -2160
  119. data/ext/gherkin_lexer_pl/extconf.rb +0 -6
  120. data/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +0 -1738
  121. data/ext/gherkin_lexer_pt/extconf.rb +0 -6
  122. data/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +0 -1711
  123. data/ext/gherkin_lexer_ro/extconf.rb +0 -6
  124. data/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +0 -1427
  125. data/ext/gherkin_lexer_ru/extconf.rb +0 -6
  126. data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +0 -2071
  127. data/ext/gherkin_lexer_sk/extconf.rb +0 -6
  128. data/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +0 -1739
  129. data/ext/gherkin_lexer_sr_cyrl/extconf.rb +0 -6
  130. data/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +0 -2112
  131. data/ext/gherkin_lexer_sr_latn/extconf.rb +0 -6
  132. data/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +0 -1567
  133. data/ext/gherkin_lexer_sv/extconf.rb +0 -6
  134. data/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +0 -1324
  135. data/ext/gherkin_lexer_th/extconf.rb +0 -6
  136. data/ext/gherkin_lexer_th/gherkin_lexer_th.c +0 -2840
  137. data/ext/gherkin_lexer_tl/extconf.rb +0 -6
  138. data/ext/gherkin_lexer_tl/gherkin_lexer_tl.c +0 -2021
  139. data/ext/gherkin_lexer_tr/extconf.rb +0 -6
  140. data/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +0 -1347
  141. data/ext/gherkin_lexer_tt/extconf.rb +0 -6
  142. data/ext/gherkin_lexer_tt/gherkin_lexer_tt.c +0 -1936
  143. data/ext/gherkin_lexer_uk/extconf.rb +0 -6
  144. data/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +0 -1941
  145. data/ext/gherkin_lexer_uz/extconf.rb +0 -6
  146. data/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +0 -1651
  147. data/ext/gherkin_lexer_vi/extconf.rb +0 -6
  148. data/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +0 -1458
  149. data/ext/gherkin_lexer_zh_cn/extconf.rb +0 -6
  150. data/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +0 -1314
  151. data/ext/gherkin_lexer_zh_tw/extconf.rb +0 -6
  152. data/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +0 -1307
  153. data/features/.cucumber/stepdefs.json +0 -244
  154. data/features/escaped_pipes.feature +0 -8
  155. data/features/feature_parser.feature +0 -237
  156. data/features/json_formatter.feature +0 -498
  157. data/features/json_parser.feature +0 -331
  158. data/features/native_lexer.feature +0 -19
  159. data/features/parser_with_native_lexer.feature +0 -205
  160. data/features/pretty_formatter.feature +0 -17
  161. data/features/step_definitions/eyeball_steps.rb +0 -3
  162. data/features/step_definitions/gherkin_steps.rb +0 -29
  163. data/features/step_definitions/json_formatter_steps.rb +0 -30
  164. data/features/step_definitions/json_parser_steps.rb +0 -21
  165. data/features/step_definitions/pretty_formatter_steps.rb +0 -85
  166. data/features/steps_parser.feature +0 -46
  167. data/features/support/env.rb +0 -41
  168. data/install_mingw_os_x.sh +0 -5
  169. data/js/.npmignore +0 -1
  170. data/js/lib/gherkin/lexer/.npmignore +0 -0
  171. data/lib/gherkin.rb +0 -2
  172. data/lib/gherkin/README.md +0 -7
  173. data/lib/gherkin/c_lexer.rb +0 -17
  174. data/lib/gherkin/formatter/ansi_escapes.rb +0 -97
  175. data/lib/gherkin/formatter/argument.rb +0 -16
  176. data/lib/gherkin/formatter/escaping.rb +0 -15
  177. data/lib/gherkin/formatter/filter_formatter.rb +0 -150
  178. data/lib/gherkin/formatter/hashable.rb +0 -25
  179. data/lib/gherkin/formatter/json_formatter.rb +0 -133
  180. data/lib/gherkin/formatter/line_filter.rb +0 -26
  181. data/lib/gherkin/formatter/model.rb +0 -281
  182. data/lib/gherkin/formatter/pretty_formatter.rb +0 -245
  183. data/lib/gherkin/formatter/regexp_filter.rb +0 -21
  184. data/lib/gherkin/formatter/step_printer.rb +0 -21
  185. data/lib/gherkin/formatter/tag_count_formatter.rb +0 -47
  186. data/lib/gherkin/formatter/tag_filter.rb +0 -19
  187. data/lib/gherkin/i18n.json +0 -786
  188. data/lib/gherkin/i18n.rb +0 -176
  189. data/lib/gherkin/json_parser.rb +0 -177
  190. data/lib/gherkin/lexer/ar.rb +0 -1170
  191. data/lib/gherkin/lexer/bg.rb +0 -1382
  192. data/lib/gherkin/lexer/bm.rb +0 -1250
  193. data/lib/gherkin/lexer/ca.rb +0 -1310
  194. data/lib/gherkin/lexer/cs.rb +0 -1246
  195. data/lib/gherkin/lexer/cy_gb.rb +0 -1032
  196. data/lib/gherkin/lexer/da.rb +0 -1048
  197. data/lib/gherkin/lexer/de.rb +0 -1166
  198. data/lib/gherkin/lexer/el.rb +0 -1628
  199. data/lib/gherkin/lexer/en.rb +0 -1156
  200. data/lib/gherkin/lexer/en_au.rb +0 -1486
  201. data/lib/gherkin/lexer/en_lol.rb +0 -934
  202. data/lib/gherkin/lexer/en_old.rb +0 -1037
  203. data/lib/gherkin/lexer/en_pirate.rb +0 -1210
  204. data/lib/gherkin/lexer/en_scouse.rb +0 -1362
  205. data/lib/gherkin/lexer/en_tx.rb +0 -1016
  206. data/lib/gherkin/lexer/encoding.rb +0 -41
  207. data/lib/gherkin/lexer/eo.rb +0 -995
  208. data/lib/gherkin/lexer/es.rb +0 -1140
  209. data/lib/gherkin/lexer/et.rb +0 -990
  210. data/lib/gherkin/lexer/fa.rb +0 -1214
  211. data/lib/gherkin/lexer/fi.rb +0 -969
  212. data/lib/gherkin/lexer/fr.rb +0 -1228
  213. data/lib/gherkin/lexer/gl.rb +0 -1117
  214. data/lib/gherkin/lexer/he.rb +0 -1118
  215. data/lib/gherkin/lexer/hi.rb +0 -1559
  216. data/lib/gherkin/lexer/hr.rb +0 -1066
  217. data/lib/gherkin/lexer/hu.rb +0 -1118
  218. data/lib/gherkin/lexer/i18n_lexer.rb +0 -48
  219. data/lib/gherkin/lexer/id.rb +0 -963
  220. data/lib/gherkin/lexer/is.rb +0 -1120
  221. data/lib/gherkin/lexer/it.rb +0 -1086
  222. data/lib/gherkin/lexer/ja.rb +0 -1418
  223. data/lib/gherkin/lexer/kn.rb +0 -1672
  224. data/lib/gherkin/lexer/ko.rb +0 -1102
  225. data/lib/gherkin/lexer/lt.rb +0 -1045
  226. data/lib/gherkin/lexer/lu.rb +0 -1132
  227. data/lib/gherkin/lexer/lv.rb +0 -1166
  228. data/lib/gherkin/lexer/nl.rb +0 -1115
  229. data/lib/gherkin/lexer/no.rb +0 -1060
  230. data/lib/gherkin/lexer/pa.rb +0 -1852
  231. data/lib/gherkin/lexer/pl.rb +0 -1457
  232. data/lib/gherkin/lexer/pt.rb +0 -1430
  233. data/lib/gherkin/lexer/ro.rb +0 -1164
  234. data/lib/gherkin/lexer/ru.rb +0 -1766
  235. data/lib/gherkin/lexer/sk.rb +0 -1452
  236. data/lib/gherkin/lexer/sr_cyrl.rb +0 -1803
  237. data/lib/gherkin/lexer/sr_latn.rb +0 -1294
  238. data/lib/gherkin/lexer/sv.rb +0 -1070
  239. data/lib/gherkin/lexer/th.rb +0 -2492
  240. data/lib/gherkin/lexer/tl.rb +0 -1726
  241. data/lib/gherkin/lexer/tr.rb +0 -1092
  242. data/lib/gherkin/lexer/tt.rb +0 -1643
  243. data/lib/gherkin/lexer/uk.rb +0 -1646
  244. data/lib/gherkin/lexer/uz.rb +0 -1376
  245. data/lib/gherkin/lexer/vi.rb +0 -1198
  246. data/lib/gherkin/lexer/zh_cn.rb +0 -1058
  247. data/lib/gherkin/lexer/zh_tw.rb +0 -1052
  248. data/lib/gherkin/listener/event.rb +0 -45
  249. data/lib/gherkin/listener/formatter_listener.rb +0 -150
  250. data/lib/gherkin/native.rb +0 -7
  251. data/lib/gherkin/native/java.rb +0 -72
  252. data/lib/gherkin/native/null.rb +0 -5
  253. data/lib/gherkin/native/therubyracer.rb +0 -41
  254. data/lib/gherkin/parser/meta.txt +0 -5
  255. data/lib/gherkin/parser/parser.rb +0 -166
  256. data/lib/gherkin/parser/root.txt +0 -11
  257. data/lib/gherkin/parser/steps.txt +0 -4
  258. data/lib/gherkin/platform.rb +0 -13
  259. data/lib/gherkin/rubify.rb +0 -31
  260. data/lib/gherkin/tag_expression.rb +0 -63
  261. data/ragel/lexer.c.rl.erb +0 -454
  262. data/ragel/lexer.java.rl.erb +0 -219
  263. data/ragel/lexer.js.rl.erb +0 -322
  264. data/ragel/lexer.rb.rl.erb +0 -179
  265. data/ragel/lexer_common.rl.erb +0 -50
  266. data/spec/gherkin/c_lexer_spec.rb +0 -22
  267. data/spec/gherkin/fixtures/1.feature +0 -8
  268. data/spec/gherkin/fixtures/comments_in_table.feature +0 -9
  269. data/spec/gherkin/fixtures/complex.feature +0 -45
  270. data/spec/gherkin/fixtures/complex.json +0 -139
  271. data/spec/gherkin/fixtures/complex_for_filtering.feature +0 -60
  272. data/spec/gherkin/fixtures/complex_with_tags.feature +0 -61
  273. data/spec/gherkin/fixtures/dos_line_endings.feature +0 -45
  274. data/spec/gherkin/fixtures/examples_with_only_header.feature +0 -14
  275. data/spec/gherkin/fixtures/hantu_pisang.feature +0 -35
  276. data/spec/gherkin/fixtures/i18n_fr.feature +0 -14
  277. data/spec/gherkin/fixtures/i18n_fr2.feature +0 -8
  278. data/spec/gherkin/fixtures/i18n_no.feature +0 -7
  279. data/spec/gherkin/fixtures/i18n_pt1.feature +0 -44
  280. data/spec/gherkin/fixtures/i18n_pt2.feature +0 -4
  281. data/spec/gherkin/fixtures/i18n_pt3.feature +0 -4
  282. data/spec/gherkin/fixtures/i18n_pt4.feature +0 -4
  283. data/spec/gherkin/fixtures/i18n_zh-CN.feature +0 -9
  284. data/spec/gherkin/fixtures/iso-8859-1.feature +0 -6
  285. data/spec/gherkin/fixtures/issue_145.feature +0 -22
  286. data/spec/gherkin/fixtures/scenario_outline_with_tags.feature +0 -13
  287. data/spec/gherkin/fixtures/scenario_without_steps.feature +0 -5
  288. data/spec/gherkin/fixtures/simple_with_comments.feature +0 -7
  289. data/spec/gherkin/fixtures/simple_with_tags.feature +0 -11
  290. data/spec/gherkin/fixtures/with_bom.feature +0 -3
  291. data/spec/gherkin/fixtures/with_bom_and_language_spec.feature +0 -4
  292. data/spec/gherkin/formatter/ansi_escapes_spec.rb +0 -32
  293. data/spec/gherkin/formatter/filter_formatter_spec.rb +0 -204
  294. data/spec/gherkin/formatter/json_formatter_spec.rb +0 -179
  295. data/spec/gherkin/formatter/model_spec.rb +0 -28
  296. data/spec/gherkin/formatter/pretty_formatter_spec.rb +0 -184
  297. data/spec/gherkin/formatter/spaces.feature +0 -9
  298. data/spec/gherkin/formatter/step_printer_spec.rb +0 -55
  299. data/spec/gherkin/formatter/tabs.feature +0 -9
  300. data/spec/gherkin/formatter/tag_count_formatter_spec.rb +0 -30
  301. data/spec/gherkin/i18n_spec.rb +0 -256
  302. data/spec/gherkin/java_lexer_spec.rb +0 -20
  303. data/spec/gherkin/json_parser_spec.rb +0 -165
  304. data/spec/gherkin/lexer/i18n_lexer_spec.rb +0 -65
  305. data/spec/gherkin/native_lexer_spec.rb +0 -29
  306. data/spec/gherkin/parser/parser_spec.rb +0 -16
  307. data/spec/gherkin/rubify_spec.rb +0 -23
  308. data/spec/gherkin/sexp_recorder.rb +0 -59
  309. data/spec/gherkin/shared/doc_string_group.rb +0 -161
  310. data/spec/gherkin/shared/encoding_group.rb +0 -48
  311. data/spec/gherkin/shared/lexer_group.rb +0 -589
  312. data/spec/gherkin/shared/row_group.rb +0 -123
  313. data/spec/gherkin/shared/tags_group.rb +0 -52
  314. data/spec/gherkin/tag_expression_spec.rb +0 -146
  315. data/spec/spec_helper.rb +0 -94
  316. data/tasks/apidoc.rake +0 -32
  317. data/tasks/bench.rake +0 -184
  318. data/tasks/bench/feature_builder.rb +0 -49
  319. data/tasks/bench/null_listener.rb +0 -4
  320. data/tasks/compile.rake +0 -83
  321. data/tasks/cucumber.rake +0 -23
  322. data/tasks/gems.rake +0 -46
  323. data/tasks/ikvm.rake +0 -126
  324. data/tasks/ragel_task.rb +0 -124
  325. data/tasks/release.rake +0 -34
  326. data/tasks/rspec.rake +0 -6
  327. data/tasks/yard/default/layout/html/bubble_32x32.png +0 -0
  328. data/tasks/yard/default/layout/html/bubble_48x48.png +0 -0
  329. data/tasks/yard/default/layout/html/footer.erb +0 -5
  330. data/tasks/yard/default/layout/html/index.erb +0 -1
  331. data/tasks/yard/default/layout/html/layout.erb +0 -25
  332. data/tasks/yard/default/layout/html/logo.erb +0 -1
  333. data/tasks/yard/default/layout/html/setup.rb +0 -4
@@ -1,1166 +0,0 @@
1
-
2
- # line 1 "ragel/i18n/lv.rb.rl"
3
- require 'gherkin/native'
4
-
5
- module Gherkin
6
- module Lexer
7
- class Lv #:nodoc:
8
- native_impl('gherkin')
9
-
10
-
11
- # line 125 "ragel/i18n/lv.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/lv.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, 113, 114,
58
- 116, 117, 118, 119, 120, 121, 122, 123,
59
- 134, 136, 138, 140, 142, 144, 146, 148,
60
- 150, 152, 154, 156, 158, 160, 162, 165,
61
- 167, 169, 171, 173, 175, 193, 194, 196,
62
- 197, 198, 199, 200, 201, 202, 203, 204,
63
- 205, 206, 207, 222, 224, 226, 228, 230,
64
- 232, 234, 236, 238, 240, 242, 244, 246,
65
- 248, 250, 252, 254, 256, 259, 261, 263,
66
- 265, 267, 269, 271, 273, 275, 277, 279,
67
- 281, 283, 285, 287, 289, 291, 293, 295,
68
- 297, 299, 301, 303, 305, 307, 309, 311,
69
- 313, 315, 317, 319, 321, 324, 326, 328,
70
- 330, 332, 334, 336, 338, 340, 342, 344,
71
- 346, 348, 350, 351, 352, 353, 354, 355,
72
- 356, 357, 358, 365, 368, 370, 372, 374,
73
- 376, 378, 380, 382, 384, 386, 388, 390,
74
- 392, 394, 396, 398, 400, 402, 404, 406,
75
- 407, 408, 409, 410, 411, 412, 414, 415,
76
- 416, 417, 418, 419, 420, 421, 422, 424,
77
- 425, 426, 427, 428, 429, 430, 431, 432,
78
- 433, 434, 435, 436, 437, 438, 439, 454,
79
- 456, 458, 460, 462, 464, 466, 468, 470,
80
- 472, 474, 476, 478, 480, 482, 484, 486,
81
- 488, 491, 493, 495, 497, 499, 501, 503,
82
- 505, 507, 509, 511, 513, 515, 517, 519,
83
- 521, 523, 525, 527, 529, 531, 533, 535,
84
- 537, 539, 541, 543, 545, 547, 549, 551,
85
- 553, 555, 556, 557, 572, 574, 576, 578,
86
- 580, 582, 584, 586, 588, 590, 592, 594,
87
- 596, 598, 600, 602, 604, 606, 609, 611,
88
- 613, 615, 617, 619, 621, 623, 625, 627,
89
- 629, 631, 633, 635, 637, 639, 641, 643,
90
- 645, 647, 649, 652, 654, 656, 658, 660,
91
- 662, 664, 666, 668, 671, 673, 675, 677,
92
- 679, 681, 683, 685, 687, 690, 692, 694,
93
- 696, 698, 700, 702, 704, 706, 708, 710,
94
- 712, 714, 716, 718, 720, 722, 724, 726,
95
- 728, 730, 731, 732, 733, 734, 735, 736,
96
- 737, 738, 739, 740, 744, 750, 753, 755,
97
- 761, 779, 781, 783, 785, 787, 789, 791,
98
- 793, 795, 797, 799, 801, 803, 805, 807,
99
- 809, 811, 813, 815, 817, 819, 821, 823,
100
- 826, 828, 830, 832, 834, 836, 838, 840,
101
- 842, 844, 846, 849, 851, 853, 855, 857,
102
- 859, 861, 863, 865, 868, 870, 872, 874,
103
- 876, 878, 880, 882, 884, 886, 888, 890,
104
- 892, 894, 896, 898, 900, 902, 904, 905,
105
- 906, 907, 908, 909, 910, 911, 912, 913,
106
- 914, 915, 916, 917, 918
107
- ]
108
-
109
- class << self
110
- attr_accessor :_lexer_trans_keys
111
- private :_lexer_trans_keys, :_lexer_trans_keys=
112
- end
113
- self._lexer_trans_keys = [
114
- -17, 10, 32, 34, 35, 37, 42, 64,
115
- 66, 70, 74, 75, 80, 83, 84, 85,
116
- 124, 9, 13, -69, -65, 10, 32, 34,
117
- 35, 37, 42, 64, 66, 70, 74, 75,
118
- 80, 83, 84, 85, 124, 9, 13, 34,
119
- 34, 10, 13, 10, 13, 10, 32, 34,
120
- 9, 13, 10, 32, 34, 9, 13, 10,
121
- 32, 34, 9, 13, 10, 32, 34, 9,
122
- 13, 10, 32, 9, 13, 10, 32, 9,
123
- 13, 10, 13, 10, 95, 70, 69, 65,
124
- 84, 85, 82, 69, 95, 69, 78, 68,
125
- 95, 37, 32, 10, 13, 10, 13, 13,
126
- 32, 64, 9, 10, 9, 10, 13, 32,
127
- 64, 11, 12, 10, 32, 64, 9, 13,
128
- 101, 116, -60, 117, -85, -60, -115, 97,
129
- 58, 10, 10, 10, 32, 35, 37, 64,
130
- 70, 75, 80, 83, 9, 13, 10, 95,
131
- 10, 70, 10, 69, 10, 65, 10, 84,
132
- 10, 85, 10, 82, 10, 69, 10, 95,
133
- 10, 69, 10, 78, 10, 68, 10, 95,
134
- 10, 37, -60, 10, 117, -85, 10, -60,
135
- 10, -115, 10, 10, 97, 10, 58, 10,
136
- 32, 34, 35, 37, 42, 64, 66, 70,
137
- 74, 75, 80, 83, 84, 85, 124, 9,
138
- 13, 97, 97, 111, 100, 110, 116, 101,
139
- 107, 115, 116, 115, 58, 10, 10, 10,
140
- 32, 35, 37, 42, 64, 66, 70, 74,
141
- 75, 83, 84, 85, 9, 13, 10, 95,
142
- 10, 70, 10, 69, 10, 65, 10, 84,
143
- 10, 85, 10, 82, 10, 69, 10, 95,
144
- 10, 69, 10, 78, 10, 68, 10, 95,
145
- 10, 37, 10, 32, 10, 101, 10, 116,
146
- -60, 10, 117, -85, 10, -60, 10, -115,
147
- 10, 10, 97, 10, 58, 10, 110, 10,
148
- 107, 10, 99, 10, 105, 10, 111, 10,
149
- 110, 10, 97, 10, 108, 10, 105, 10,
150
- 116, -60, 10, -127, 10, 10, 116, 10,
151
- 101, 10, 97, 10, 97, 10, 100, 10,
152
- 99, 10, 101, 10, 110, -60, 10, -127,
153
- 10, 10, 114, 10, 105, 10, 106, 10,
154
- 115, 10, 32, 58, 10, 112, -60, 10,
155
- -109, 10, 10, 99, 10, 32, 10, 112,
156
- 10, 97, 10, 114, 10, 97, 10, 117,
157
- 10, 103, 10, 110, 97, 105, 114, 97,
158
- 117, 103, 115, 58, 10, 10, 10, 32,
159
- 35, 70, 124, 9, 13, -60, 10, 117,
160
- -85, 10, -60, 10, -115, 10, 10, 97,
161
- 10, 58, 10, 110, 10, 107, 10, 99,
162
- 10, 105, 10, 111, 10, 110, 10, 97,
163
- 10, 108, 10, 105, 10, 116, -60, 10,
164
- -127, 10, 10, 116, 10, 101, 101, 109,
165
- -60, -109, 114, 105, 99, 105, 101, 110,
166
- -60, -127, 114, 105, 106, 115, 32, 58,
167
- 112, -60, -109, 99, 32, 112, 97, 114,
168
- 97, 117, 103, 97, 58, 10, 10, 10,
169
- 32, 35, 37, 42, 64, 66, 70, 74,
170
- 75, 83, 84, 85, 9, 13, 10, 95,
171
- 10, 70, 10, 69, 10, 65, 10, 84,
172
- 10, 85, 10, 82, 10, 69, 10, 95,
173
- 10, 69, 10, 78, 10, 68, 10, 95,
174
- 10, 37, 10, 32, 10, 101, 10, 116,
175
- -60, 10, 117, -85, 10, -60, 10, -115,
176
- 10, 10, 97, 10, 58, 10, 110, 10,
177
- 107, 10, 99, 10, 105, 10, 111, 10,
178
- 110, 10, 97, 10, 108, 10, 105, 10,
179
- 116, -60, 10, -127, 10, 10, 116, 10,
180
- 101, 10, 97, 10, 97, 10, 100, 10,
181
- 99, 10, 101, 10, 110, -60, 10, -127,
182
- 10, 10, 114, 10, 105, 10, 106, 10,
183
- 115, 10, 110, 10, 10, 10, 32, 35,
184
- 37, 42, 64, 66, 70, 74, 75, 83,
185
- 84, 85, 9, 13, 10, 95, 10, 70,
186
- 10, 69, 10, 65, 10, 84, 10, 85,
187
- 10, 82, 10, 69, 10, 95, 10, 69,
188
- 10, 78, 10, 68, 10, 95, 10, 37,
189
- 10, 32, 10, 101, 10, 116, -60, 10,
190
- 117, -85, 10, -60, 10, -115, 10, 10,
191
- 97, 10, 58, 10, 110, 10, 107, 10,
192
- 99, 10, 105, 10, 111, 10, 110, 10,
193
- 97, 10, 108, 10, 105, 10, 116, -60,
194
- 10, -127, 10, 10, 116, 10, 101, 10,
195
- 97, 10, 97, 111, 10, 100, 10, 110,
196
- 10, 116, 10, 101, 10, 107, 10, 115,
197
- 10, 116, 10, 115, 10, 99, 105, 10,
198
- 101, 10, 110, -60, 10, -127, 10, 10,
199
- 114, 10, 105, 10, 106, 10, 115, 10,
200
- 32, 58, 10, 112, -60, 10, -109, 10,
201
- 10, 99, 10, 32, 10, 112, 10, 97,
202
- 10, 114, 10, 97, 10, 117, 10, 103,
203
- 10, 116, 10, 117, -60, 10, -127, 10,
204
- 10, 99, 10, 105, 10, 106, 10, 97,
205
- 10, 110, 116, 117, -60, -127, 99, 105,
206
- 106, 97, 97, 110, 32, 124, 9, 13,
207
- 10, 32, 92, 124, 9, 13, 10, 92,
208
- 124, 10, 92, 10, 32, 92, 124, 9,
209
- 13, 10, 32, 34, 35, 37, 42, 64,
210
- 66, 70, 74, 75, 80, 83, 84, 85,
211
- 124, 9, 13, 10, 110, 10, 107, 10,
212
- 99, 10, 105, 10, 111, 10, 110, 10,
213
- 97, 10, 108, 10, 105, 10, 116, -60,
214
- 10, -127, 10, 10, 116, 10, 101, 10,
215
- 111, 10, 110, 10, 116, 10, 101, 10,
216
- 107, 10, 115, 10, 116, 10, 115, 10,
217
- 97, 105, 10, 114, 10, 97, 10, 117,
218
- 10, 103, 10, 101, 10, 109, -60, 10,
219
- -109, 10, 10, 114, 10, 105, 10, 99,
220
- 105, 10, 101, 10, 110, -60, 10, -127,
221
- 10, 10, 114, 10, 105, 10, 106, 10,
222
- 115, 10, 32, 58, 10, 112, -60, 10,
223
- -109, 10, 10, 99, 10, 32, 10, 112,
224
- 10, 97, 10, 114, 10, 97, 10, 117,
225
- 10, 103, 10, 116, 10, 117, -60, 10,
226
- -127, 10, 10, 99, 10, 105, 10, 106,
227
- 110, 107, 99, 105, 111, 110, 97, 108,
228
- 105, 116, -60, -127, 116, 101, 0
229
- ]
230
-
231
- class << self
232
- attr_accessor :_lexer_single_lengths
233
- private :_lexer_single_lengths, :_lexer_single_lengths=
234
- end
235
- self._lexer_single_lengths = [
236
- 0, 17, 1, 1, 16, 1, 1, 2,
237
- 2, 3, 3, 3, 3, 2, 2, 2,
238
- 1, 1, 1, 1, 1, 1, 1, 1,
239
- 1, 1, 1, 1, 1, 1, 1, 1,
240
- 2, 2, 3, 5, 3, 1, 1, 2,
241
- 1, 1, 1, 1, 1, 1, 1, 9,
242
- 2, 2, 2, 2, 2, 2, 2, 2,
243
- 2, 2, 2, 2, 2, 2, 3, 2,
244
- 2, 2, 2, 2, 16, 1, 2, 1,
245
- 1, 1, 1, 1, 1, 1, 1, 1,
246
- 1, 1, 13, 2, 2, 2, 2, 2,
247
- 2, 2, 2, 2, 2, 2, 2, 2,
248
- 2, 2, 2, 2, 3, 2, 2, 2,
249
- 2, 2, 2, 2, 2, 2, 2, 2,
250
- 2, 2, 2, 2, 2, 2, 2, 2,
251
- 2, 2, 2, 2, 2, 2, 2, 2,
252
- 2, 2, 2, 2, 3, 2, 2, 2,
253
- 2, 2, 2, 2, 2, 2, 2, 2,
254
- 2, 2, 1, 1, 1, 1, 1, 1,
255
- 1, 1, 5, 3, 2, 2, 2, 2,
256
- 2, 2, 2, 2, 2, 2, 2, 2,
257
- 2, 2, 2, 2, 2, 2, 2, 1,
258
- 1, 1, 1, 1, 1, 2, 1, 1,
259
- 1, 1, 1, 1, 1, 1, 2, 1,
260
- 1, 1, 1, 1, 1, 1, 1, 1,
261
- 1, 1, 1, 1, 1, 1, 13, 2,
262
- 2, 2, 2, 2, 2, 2, 2, 2,
263
- 2, 2, 2, 2, 2, 2, 2, 2,
264
- 3, 2, 2, 2, 2, 2, 2, 2,
265
- 2, 2, 2, 2, 2, 2, 2, 2,
266
- 2, 2, 2, 2, 2, 2, 2, 2,
267
- 2, 2, 2, 2, 2, 2, 2, 2,
268
- 2, 1, 1, 13, 2, 2, 2, 2,
269
- 2, 2, 2, 2, 2, 2, 2, 2,
270
- 2, 2, 2, 2, 2, 3, 2, 2,
271
- 2, 2, 2, 2, 2, 2, 2, 2,
272
- 2, 2, 2, 2, 2, 2, 2, 2,
273
- 2, 2, 3, 2, 2, 2, 2, 2,
274
- 2, 2, 2, 3, 2, 2, 2, 2,
275
- 2, 2, 2, 2, 3, 2, 2, 2,
276
- 2, 2, 2, 2, 2, 2, 2, 2,
277
- 2, 2, 2, 2, 2, 2, 2, 2,
278
- 2, 1, 1, 1, 1, 1, 1, 1,
279
- 1, 1, 1, 2, 4, 3, 2, 4,
280
- 16, 2, 2, 2, 2, 2, 2, 2,
281
- 2, 2, 2, 2, 2, 2, 2, 2,
282
- 2, 2, 2, 2, 2, 2, 2, 3,
283
- 2, 2, 2, 2, 2, 2, 2, 2,
284
- 2, 2, 3, 2, 2, 2, 2, 2,
285
- 2, 2, 2, 3, 2, 2, 2, 2,
286
- 2, 2, 2, 2, 2, 2, 2, 2,
287
- 2, 2, 2, 2, 2, 2, 1, 1,
288
- 1, 1, 1, 1, 1, 1, 1, 1,
289
- 1, 1, 1, 1, 0
290
- ]
291
-
292
- class << self
293
- attr_accessor :_lexer_range_lengths
294
- private :_lexer_range_lengths, :_lexer_range_lengths=
295
- end
296
- self._lexer_range_lengths = [
297
- 0, 1, 0, 0, 1, 0, 0, 0,
298
- 0, 1, 1, 1, 1, 1, 1, 0,
299
- 0, 0, 0, 0, 0, 0, 0, 0,
300
- 0, 0, 0, 0, 0, 0, 0, 0,
301
- 0, 0, 1, 1, 1, 0, 0, 0,
302
- 0, 0, 0, 0, 0, 0, 0, 1,
303
- 0, 0, 0, 0, 0, 0, 0, 0,
304
- 0, 0, 0, 0, 0, 0, 0, 0,
305
- 0, 0, 0, 0, 1, 0, 0, 0,
306
- 0, 0, 0, 0, 0, 0, 0, 0,
307
- 0, 0, 1, 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, 0, 1, 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, 1, 0,
323
- 0, 0, 0, 0, 0, 0, 0, 0,
324
- 0, 0, 0, 0, 0, 0, 0, 0,
325
- 0, 0, 0, 0, 0, 0, 0, 0,
326
- 0, 0, 0, 0, 0, 0, 0, 0,
327
- 0, 0, 0, 0, 0, 0, 0, 0,
328
- 0, 0, 0, 0, 0, 0, 0, 0,
329
- 0, 0, 0, 1, 0, 0, 0, 0,
330
- 0, 0, 0, 0, 0, 0, 0, 0,
331
- 0, 0, 0, 0, 0, 0, 0, 0,
332
- 0, 0, 0, 0, 0, 0, 0, 0,
333
- 0, 0, 0, 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, 1, 1, 0, 0, 1,
341
- 1, 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, 0, 0, 0, 0,
348
- 0, 0, 0, 0, 0, 0, 0, 0,
349
- 0, 0, 0, 0, 0, 0, 0, 0,
350
- 0, 0, 0, 0, 0
351
- ]
352
-
353
- class << self
354
- attr_accessor :_lexer_index_offsets
355
- private :_lexer_index_offsets, :_lexer_index_offsets=
356
- end
357
- self._lexer_index_offsets = [
358
- 0, 0, 19, 21, 23, 41, 43, 45,
359
- 48, 51, 56, 61, 66, 71, 75, 79,
360
- 82, 84, 86, 88, 90, 92, 94, 96,
361
- 98, 100, 102, 104, 106, 108, 110, 112,
362
- 114, 117, 120, 125, 132, 137, 139, 141,
363
- 144, 146, 148, 150, 152, 154, 156, 158,
364
- 169, 172, 175, 178, 181, 184, 187, 190,
365
- 193, 196, 199, 202, 205, 208, 211, 215,
366
- 218, 221, 224, 227, 230, 248, 250, 253,
367
- 255, 257, 259, 261, 263, 265, 267, 269,
368
- 271, 273, 275, 290, 293, 296, 299, 302,
369
- 305, 308, 311, 314, 317, 320, 323, 326,
370
- 329, 332, 335, 338, 341, 345, 348, 351,
371
- 354, 357, 360, 363, 366, 369, 372, 375,
372
- 378, 381, 384, 387, 390, 393, 396, 399,
373
- 402, 405, 408, 411, 414, 417, 420, 423,
374
- 426, 429, 432, 435, 438, 442, 445, 448,
375
- 451, 454, 457, 460, 463, 466, 469, 472,
376
- 475, 478, 481, 483, 485, 487, 489, 491,
377
- 493, 495, 497, 504, 508, 511, 514, 517,
378
- 520, 523, 526, 529, 532, 535, 538, 541,
379
- 544, 547, 550, 553, 556, 559, 562, 565,
380
- 567, 569, 571, 573, 575, 577, 580, 582,
381
- 584, 586, 588, 590, 592, 594, 596, 599,
382
- 601, 603, 605, 607, 609, 611, 613, 615,
383
- 617, 619, 621, 623, 625, 627, 629, 644,
384
- 647, 650, 653, 656, 659, 662, 665, 668,
385
- 671, 674, 677, 680, 683, 686, 689, 692,
386
- 695, 699, 702, 705, 708, 711, 714, 717,
387
- 720, 723, 726, 729, 732, 735, 738, 741,
388
- 744, 747, 750, 753, 756, 759, 762, 765,
389
- 768, 771, 774, 777, 780, 783, 786, 789,
390
- 792, 795, 797, 799, 814, 817, 820, 823,
391
- 826, 829, 832, 835, 838, 841, 844, 847,
392
- 850, 853, 856, 859, 862, 865, 869, 872,
393
- 875, 878, 881, 884, 887, 890, 893, 896,
394
- 899, 902, 905, 908, 911, 914, 917, 920,
395
- 923, 926, 929, 933, 936, 939, 942, 945,
396
- 948, 951, 954, 957, 961, 964, 967, 970,
397
- 973, 976, 979, 982, 985, 989, 992, 995,
398
- 998, 1001, 1004, 1007, 1010, 1013, 1016, 1019,
399
- 1022, 1025, 1028, 1031, 1034, 1037, 1040, 1043,
400
- 1046, 1049, 1051, 1053, 1055, 1057, 1059, 1061,
401
- 1063, 1065, 1067, 1069, 1073, 1079, 1083, 1086,
402
- 1092, 1110, 1113, 1116, 1119, 1122, 1125, 1128,
403
- 1131, 1134, 1137, 1140, 1143, 1146, 1149, 1152,
404
- 1155, 1158, 1161, 1164, 1167, 1170, 1173, 1176,
405
- 1180, 1183, 1186, 1189, 1192, 1195, 1198, 1201,
406
- 1204, 1207, 1210, 1214, 1217, 1220, 1223, 1226,
407
- 1229, 1232, 1235, 1238, 1242, 1245, 1248, 1251,
408
- 1254, 1257, 1260, 1263, 1266, 1269, 1272, 1275,
409
- 1278, 1281, 1284, 1287, 1290, 1293, 1296, 1298,
410
- 1300, 1302, 1304, 1306, 1308, 1310, 1312, 1314,
411
- 1316, 1318, 1320, 1322, 1324
412
- ]
413
-
414
- class << self
415
- attr_accessor :_lexer_indicies
416
- private :_lexer_indicies, :_lexer_indicies=
417
- end
418
- self._lexer_indicies = [
419
- 1, 3, 2, 4, 5, 6, 7, 8,
420
- 9, 10, 11, 12, 13, 14, 15, 16,
421
- 17, 2, 0, 18, 0, 2, 0, 3,
422
- 2, 4, 5, 6, 7, 8, 9, 10,
423
- 11, 12, 13, 14, 15, 16, 17, 2,
424
- 0, 19, 0, 20, 0, 22, 23, 21,
425
- 25, 26, 24, 29, 28, 30, 28, 27,
426
- 33, 32, 34, 32, 31, 33, 32, 35,
427
- 32, 31, 33, 32, 36, 32, 31, 38,
428
- 37, 37, 0, 3, 39, 39, 0, 41,
429
- 42, 40, 3, 0, 43, 0, 44, 0,
430
- 45, 0, 46, 0, 47, 0, 48, 0,
431
- 49, 0, 50, 0, 51, 0, 52, 0,
432
- 53, 0, 54, 0, 55, 0, 56, 0,
433
- 57, 0, 59, 60, 58, 62, 63, 61,
434
- 0, 0, 0, 0, 64, 65, 66, 65,
435
- 65, 68, 67, 64, 3, 69, 8, 69,
436
- 0, 70, 0, 71, 0, 72, 73, 0,
437
- 74, 0, 75, 0, 76, 0, 77, 0,
438
- 78, 0, 80, 79, 82, 81, 82, 83,
439
- 84, 85, 84, 86, 87, 88, 89, 83,
440
- 81, 82, 90, 81, 82, 91, 81, 82,
441
- 92, 81, 82, 93, 81, 82, 94, 81,
442
- 82, 95, 81, 82, 96, 81, 82, 97,
443
- 81, 82, 98, 81, 82, 99, 81, 82,
444
- 100, 81, 82, 101, 81, 82, 102, 81,
445
- 82, 103, 81, 104, 82, 105, 81, 106,
446
- 82, 81, 107, 82, 81, 108, 82, 81,
447
- 82, 109, 81, 82, 110, 81, 112, 111,
448
- 113, 114, 115, 116, 117, 118, 119, 120,
449
- 121, 122, 123, 124, 125, 126, 111, 0,
450
- 71, 0, 127, 128, 0, 71, 0, 129,
451
- 0, 130, 0, 131, 0, 132, 0, 133,
452
- 0, 134, 0, 135, 0, 136, 0, 138,
453
- 137, 140, 139, 140, 141, 142, 143, 144,
454
- 142, 145, 146, 147, 148, 149, 148, 150,
455
- 141, 139, 140, 151, 139, 140, 152, 139,
456
- 140, 153, 139, 140, 154, 139, 140, 155,
457
- 139, 140, 156, 139, 140, 157, 139, 140,
458
- 158, 139, 140, 159, 139, 140, 160, 139,
459
- 140, 161, 139, 140, 162, 139, 140, 163,
460
- 139, 140, 164, 139, 140, 165, 139, 140,
461
- 166, 139, 140, 167, 139, 168, 140, 169,
462
- 139, 170, 140, 139, 171, 140, 139, 172,
463
- 140, 139, 140, 173, 139, 140, 165, 139,
464
- 140, 174, 139, 140, 175, 139, 140, 176,
465
- 139, 140, 177, 139, 140, 178, 139, 140,
466
- 179, 139, 140, 180, 139, 140, 181, 139,
467
- 140, 182, 139, 140, 183, 139, 184, 140,
468
- 139, 185, 140, 139, 140, 186, 139, 140,
469
- 173, 139, 140, 167, 139, 140, 187, 139,
470
- 140, 167, 139, 140, 188, 139, 140, 189,
471
- 139, 140, 190, 139, 191, 140, 139, 192,
472
- 140, 139, 140, 193, 139, 140, 194, 139,
473
- 140, 195, 139, 140, 196, 139, 140, 197,
474
- 165, 139, 140, 198, 139, 199, 140, 139,
475
- 200, 140, 139, 140, 201, 139, 140, 202,
476
- 139, 140, 203, 139, 140, 204, 139, 140,
477
- 205, 139, 140, 206, 139, 140, 207, 139,
478
- 140, 172, 139, 140, 167, 139, 208, 209,
479
- 0, 210, 0, 211, 0, 212, 0, 213,
480
- 0, 214, 0, 215, 0, 217, 216, 219,
481
- 218, 219, 220, 221, 222, 221, 220, 218,
482
- 223, 219, 224, 218, 225, 219, 218, 226,
483
- 219, 218, 227, 219, 218, 219, 228, 218,
484
- 219, 229, 218, 219, 230, 218, 219, 231,
485
- 218, 219, 232, 218, 219, 233, 218, 219,
486
- 234, 218, 219, 235, 218, 219, 236, 218,
487
- 219, 237, 218, 219, 238, 218, 219, 239,
488
- 218, 240, 219, 218, 241, 219, 218, 219,
489
- 242, 218, 219, 228, 218, 243, 0, 244,
490
- 0, 245, 0, 246, 0, 247, 0, 214,
491
- 0, 248, 249, 0, 250, 0, 251, 0,
492
- 252, 0, 253, 0, 254, 0, 255, 0,
493
- 256, 0, 257, 0, 258, 259, 0, 260,
494
- 0, 261, 0, 262, 0, 263, 0, 264,
495
- 0, 265, 0, 266, 0, 267, 0, 268,
496
- 0, 269, 0, 270, 0, 271, 0, 272,
497
- 0, 274, 273, 276, 275, 276, 277, 278,
498
- 279, 280, 278, 281, 282, 283, 284, 285,
499
- 284, 286, 277, 275, 276, 287, 275, 276,
500
- 288, 275, 276, 289, 275, 276, 290, 275,
501
- 276, 291, 275, 276, 292, 275, 276, 293,
502
- 275, 276, 294, 275, 276, 295, 275, 276,
503
- 296, 275, 276, 297, 275, 276, 298, 275,
504
- 276, 299, 275, 276, 300, 275, 276, 301,
505
- 275, 276, 302, 275, 276, 303, 275, 304,
506
- 276, 305, 275, 306, 276, 275, 307, 276,
507
- 275, 308, 276, 275, 276, 309, 275, 276,
508
- 301, 275, 276, 310, 275, 276, 311, 275,
509
- 276, 312, 275, 276, 313, 275, 276, 314,
510
- 275, 276, 315, 275, 276, 316, 275, 276,
511
- 317, 275, 276, 318, 275, 276, 319, 275,
512
- 320, 276, 275, 321, 276, 275, 276, 322,
513
- 275, 276, 309, 275, 276, 303, 275, 276,
514
- 323, 275, 276, 303, 275, 276, 324, 275,
515
- 276, 325, 275, 276, 326, 275, 327, 276,
516
- 275, 328, 276, 275, 276, 329, 275, 276,
517
- 330, 275, 276, 331, 275, 276, 309, 275,
518
- 276, 303, 275, 333, 332, 335, 334, 335,
519
- 336, 337, 338, 339, 337, 340, 341, 342,
520
- 343, 344, 345, 346, 336, 334, 335, 347,
521
- 334, 335, 348, 334, 335, 349, 334, 335,
522
- 350, 334, 335, 351, 334, 335, 352, 334,
523
- 335, 353, 334, 335, 354, 334, 335, 355,
524
- 334, 335, 356, 334, 335, 357, 334, 335,
525
- 358, 334, 335, 359, 334, 335, 360, 334,
526
- 335, 361, 334, 335, 362, 334, 335, 363,
527
- 334, 364, 335, 365, 334, 366, 335, 334,
528
- 367, 335, 334, 368, 335, 334, 335, 369,
529
- 334, 335, 361, 334, 335, 370, 334, 335,
530
- 371, 334, 335, 372, 334, 335, 373, 334,
531
- 335, 374, 334, 335, 375, 334, 335, 376,
532
- 334, 335, 377, 334, 335, 378, 334, 335,
533
- 379, 334, 380, 335, 334, 381, 335, 334,
534
- 335, 382, 334, 335, 369, 334, 335, 363,
535
- 334, 335, 383, 384, 334, 335, 363, 334,
536
- 335, 385, 334, 335, 386, 334, 335, 387,
537
- 334, 335, 388, 334, 335, 389, 334, 335,
538
- 390, 334, 335, 369, 334, 335, 391, 392,
539
- 334, 335, 393, 334, 335, 394, 334, 395,
540
- 335, 334, 396, 335, 334, 335, 397, 334,
541
- 335, 398, 334, 335, 399, 334, 335, 400,
542
- 334, 335, 401, 361, 334, 335, 402, 334,
543
- 403, 335, 334, 404, 335, 334, 335, 405,
544
- 334, 335, 406, 334, 335, 407, 334, 335,
545
- 408, 334, 335, 409, 334, 335, 410, 334,
546
- 335, 411, 334, 335, 368, 334, 335, 412,
547
- 334, 335, 413, 334, 414, 335, 334, 415,
548
- 335, 334, 335, 416, 334, 335, 417, 334,
549
- 335, 368, 334, 335, 383, 334, 335, 363,
550
- 334, 418, 0, 419, 0, 420, 0, 421,
551
- 0, 422, 0, 423, 0, 424, 0, 135,
552
- 0, 127, 0, 71, 0, 425, 426, 425,
553
- 0, 429, 428, 430, 431, 428, 427, 0,
554
- 433, 434, 432, 0, 433, 432, 429, 435,
555
- 433, 434, 435, 432, 429, 436, 437, 438,
556
- 439, 440, 441, 442, 443, 444, 445, 446,
557
- 447, 448, 449, 450, 436, 0, 82, 451,
558
- 81, 82, 452, 81, 82, 453, 81, 82,
559
- 454, 81, 82, 455, 81, 82, 456, 81,
560
- 82, 457, 81, 82, 458, 81, 82, 459,
561
- 81, 82, 460, 81, 461, 82, 81, 462,
562
- 82, 81, 82, 463, 81, 82, 109, 81,
563
- 82, 464, 81, 82, 465, 81, 82, 466,
564
- 81, 82, 467, 81, 82, 468, 81, 82,
565
- 469, 81, 82, 470, 81, 82, 109, 81,
566
- 82, 471, 472, 81, 82, 473, 81, 82,
567
- 474, 81, 82, 475, 81, 82, 470, 81,
568
- 82, 476, 81, 82, 477, 81, 478, 82,
569
- 81, 479, 82, 81, 82, 480, 81, 82,
570
- 109, 81, 82, 481, 482, 81, 82, 483,
571
- 81, 82, 484, 81, 485, 82, 81, 486,
572
- 82, 81, 82, 487, 81, 82, 488, 81,
573
- 82, 489, 81, 82, 490, 81, 82, 491,
574
- 110, 81, 82, 492, 81, 493, 82, 81,
575
- 494, 82, 81, 82, 495, 81, 82, 496,
576
- 81, 82, 497, 81, 82, 498, 81, 82,
577
- 499, 81, 82, 500, 81, 82, 501, 81,
578
- 82, 108, 81, 82, 502, 81, 82, 503,
579
- 81, 504, 82, 81, 505, 82, 81, 82,
580
- 506, 81, 82, 507, 81, 82, 108, 81,
581
- 508, 0, 509, 0, 510, 0, 511, 0,
582
- 512, 0, 513, 0, 514, 0, 515, 0,
583
- 516, 0, 517, 0, 518, 0, 519, 0,
584
- 520, 0, 77, 0, 521, 0
585
- ]
586
-
587
- class << self
588
- attr_accessor :_lexer_trans_targs
589
- private :_lexer_trans_targs, :_lexer_trans_targs=
590
- end
591
- self._lexer_trans_targs = [
592
- 0, 2, 4, 4, 5, 15, 17, 31,
593
- 34, 37, 39, 69, 70, 145, 181, 345,
594
- 346, 347, 3, 6, 7, 8, 9, 8,
595
- 8, 9, 8, 10, 10, 10, 11, 10,
596
- 10, 10, 11, 12, 13, 14, 4, 14,
597
- 15, 4, 16, 18, 19, 20, 21, 22,
598
- 23, 24, 25, 26, 27, 28, 29, 30,
599
- 428, 32, 33, 4, 16, 33, 4, 16,
600
- 35, 36, 4, 35, 34, 36, 38, 31,
601
- 40, 414, 41, 42, 43, 44, 45, 46,
602
- 47, 46, 47, 47, 4, 48, 62, 367,
603
- 375, 386, 49, 50, 51, 52, 53, 54,
604
- 55, 56, 57, 58, 59, 60, 61, 4,
605
- 63, 353, 64, 65, 66, 67, 68, 4,
606
- 4, 5, 15, 17, 31, 34, 37, 39,
607
- 69, 70, 145, 181, 345, 346, 347, 71,
608
- 72, 73, 74, 75, 76, 77, 78, 79,
609
- 80, 81, 82, 81, 82, 82, 4, 83,
610
- 97, 98, 100, 120, 121, 123, 144, 84,
611
- 85, 86, 87, 88, 89, 90, 91, 92,
612
- 93, 94, 95, 96, 4, 68, 99, 97,
613
- 101, 106, 102, 103, 104, 105, 107, 108,
614
- 109, 110, 111, 112, 113, 114, 115, 116,
615
- 117, 118, 119, 122, 124, 125, 126, 127,
616
- 128, 129, 130, 131, 132, 133, 134, 135,
617
- 136, 137, 138, 139, 140, 141, 142, 143,
618
- 146, 175, 147, 148, 149, 150, 151, 152,
619
- 153, 154, 153, 154, 154, 4, 155, 156,
620
- 161, 157, 158, 159, 160, 68, 162, 163,
621
- 164, 165, 166, 167, 168, 169, 170, 171,
622
- 172, 173, 174, 176, 177, 178, 179, 180,
623
- 182, 337, 183, 184, 185, 186, 187, 188,
624
- 189, 190, 191, 257, 192, 193, 194, 195,
625
- 196, 197, 198, 199, 200, 201, 202, 203,
626
- 204, 205, 206, 205, 206, 206, 4, 207,
627
- 221, 222, 224, 244, 245, 247, 256, 208,
628
- 209, 210, 211, 212, 213, 214, 215, 216,
629
- 217, 218, 219, 220, 4, 68, 223, 221,
630
- 225, 230, 226, 227, 228, 229, 231, 232,
631
- 233, 234, 235, 236, 237, 238, 239, 240,
632
- 241, 242, 243, 246, 248, 249, 250, 251,
633
- 252, 253, 254, 255, 258, 259, 258, 259,
634
- 259, 4, 260, 274, 275, 277, 297, 298,
635
- 307, 335, 336, 261, 262, 263, 264, 265,
636
- 266, 267, 268, 269, 270, 271, 272, 273,
637
- 4, 68, 276, 274, 278, 283, 279, 280,
638
- 281, 282, 284, 285, 286, 287, 288, 289,
639
- 290, 291, 292, 293, 294, 295, 296, 299,
640
- 300, 301, 302, 303, 304, 305, 306, 308,
641
- 328, 309, 310, 311, 312, 313, 314, 315,
642
- 316, 317, 318, 319, 320, 321, 322, 323,
643
- 324, 325, 326, 327, 329, 330, 331, 332,
644
- 333, 334, 338, 339, 340, 341, 342, 343,
645
- 344, 347, 348, 349, 351, 352, 350, 348,
646
- 349, 350, 348, 351, 352, 5, 15, 17,
647
- 31, 34, 37, 39, 69, 70, 145, 181,
648
- 345, 346, 347, 354, 355, 356, 357, 358,
649
- 359, 360, 361, 362, 363, 364, 365, 366,
650
- 368, 369, 370, 371, 372, 373, 374, 376,
651
- 380, 377, 378, 379, 381, 382, 383, 384,
652
- 385, 387, 407, 388, 389, 390, 391, 392,
653
- 393, 394, 395, 396, 397, 398, 399, 400,
654
- 401, 402, 403, 404, 405, 406, 408, 409,
655
- 410, 411, 412, 413, 415, 416, 417, 418,
656
- 419, 420, 421, 422, 423, 424, 425, 426,
657
- 427, 0
658
- ]
659
-
660
- class << self
661
- attr_accessor :_lexer_trans_actions
662
- private :_lexer_trans_actions, :_lexer_trans_actions=
663
- end
664
- self._lexer_trans_actions = [
665
- 43, 0, 0, 54, 3, 1, 0, 29,
666
- 1, 29, 29, 29, 29, 29, 29, 29,
667
- 29, 35, 0, 0, 0, 7, 139, 48,
668
- 0, 102, 9, 5, 45, 134, 45, 0,
669
- 33, 122, 33, 33, 0, 11, 106, 0,
670
- 0, 114, 25, 0, 0, 0, 0, 0,
671
- 0, 0, 0, 0, 0, 0, 0, 0,
672
- 0, 0, 57, 149, 126, 0, 110, 23,
673
- 0, 27, 118, 27, 51, 0, 0, 0,
674
- 0, 0, 0, 0, 0, 0, 0, 57,
675
- 144, 0, 54, 0, 69, 33, 84, 84,
676
- 84, 84, 0, 0, 0, 0, 0, 0,
677
- 0, 0, 0, 0, 0, 0, 0, 13,
678
- 0, 0, 0, 0, 0, 0, 13, 31,
679
- 130, 60, 57, 31, 63, 57, 63, 63,
680
- 63, 63, 63, 63, 63, 63, 66, 0,
681
- 0, 0, 0, 0, 0, 0, 0, 0,
682
- 0, 57, 144, 0, 54, 0, 72, 33,
683
- 84, 84, 84, 84, 84, 84, 84, 0,
684
- 0, 0, 0, 0, 0, 0, 0, 0,
685
- 0, 0, 0, 0, 15, 15, 0, 0,
686
- 0, 0, 0, 0, 0, 0, 0, 0,
687
- 0, 0, 0, 0, 0, 0, 0, 0,
688
- 0, 0, 0, 0, 0, 0, 0, 0,
689
- 0, 0, 0, 0, 0, 0, 0, 0,
690
- 0, 0, 0, 0, 0, 0, 0, 0,
691
- 0, 0, 0, 0, 0, 0, 0, 0,
692
- 57, 144, 0, 54, 0, 81, 84, 0,
693
- 0, 0, 0, 0, 0, 21, 0, 0,
694
- 0, 0, 0, 0, 0, 0, 0, 0,
695
- 0, 0, 0, 0, 0, 0, 0, 0,
696
- 0, 0, 0, 0, 0, 0, 0, 0,
697
- 0, 0, 0, 0, 0, 0, 0, 0,
698
- 0, 0, 0, 0, 0, 0, 0, 0,
699
- 0, 57, 144, 0, 54, 0, 78, 33,
700
- 84, 84, 84, 84, 84, 84, 84, 0,
701
- 0, 0, 0, 0, 0, 0, 0, 0,
702
- 0, 0, 0, 0, 19, 19, 0, 0,
703
- 0, 0, 0, 0, 0, 0, 0, 0,
704
- 0, 0, 0, 0, 0, 0, 0, 0,
705
- 0, 0, 0, 0, 0, 0, 0, 0,
706
- 0, 0, 0, 0, 57, 144, 0, 54,
707
- 0, 75, 33, 84, 84, 84, 84, 84,
708
- 84, 84, 84, 0, 0, 0, 0, 0,
709
- 0, 0, 0, 0, 0, 0, 0, 0,
710
- 17, 17, 0, 0, 0, 0, 0, 0,
711
- 0, 0, 0, 0, 0, 0, 0, 0,
712
- 0, 0, 0, 0, 0, 0, 0, 0,
713
- 0, 0, 0, 0, 0, 0, 0, 0,
714
- 0, 0, 0, 0, 0, 0, 0, 0,
715
- 0, 0, 0, 0, 0, 0, 0, 0,
716
- 0, 0, 0, 0, 0, 0, 0, 0,
717
- 0, 0, 0, 0, 0, 0, 0, 0,
718
- 0, 0, 0, 37, 37, 54, 37, 87,
719
- 0, 0, 39, 0, 0, 93, 90, 41,
720
- 96, 90, 96, 96, 96, 96, 96, 96,
721
- 96, 96, 99, 0, 0, 0, 0, 0,
722
- 0, 0, 0, 0, 0, 0, 0, 0,
723
- 0, 0, 0, 0, 0, 0, 0, 0,
724
- 0, 0, 0, 0, 0, 0, 0, 0,
725
- 0, 0, 0, 0, 0, 0, 0, 0,
726
- 0, 0, 0, 0, 0, 0, 0, 0,
727
- 0, 0, 0, 0, 0, 0, 0, 0,
728
- 0, 0, 0, 0, 0, 0, 0, 0,
729
- 0, 0, 0, 0, 0, 0, 0, 0,
730
- 0, 0
731
- ]
732
-
733
- class << self
734
- attr_accessor :_lexer_eof_actions
735
- private :_lexer_eof_actions, :_lexer_eof_actions=
736
- end
737
- self._lexer_eof_actions = [
738
- 0, 43, 43, 43, 43, 43, 43, 43,
739
- 43, 43, 43, 43, 43, 43, 43, 43,
740
- 43, 43, 43, 43, 43, 43, 43, 43,
741
- 43, 43, 43, 43, 43, 43, 43, 43,
742
- 43, 43, 43, 43, 43, 43, 43, 43,
743
- 43, 43, 43, 43, 43, 43, 43, 43,
744
- 43, 43, 43, 43, 43, 43, 43, 43,
745
- 43, 43, 43, 43, 43, 43, 43, 43,
746
- 43, 43, 43, 43, 43, 43, 43, 43,
747
- 43, 43, 43, 43, 43, 43, 43, 43,
748
- 43, 43, 43, 43, 43, 43, 43, 43,
749
- 43, 43, 43, 43, 43, 43, 43, 43,
750
- 43, 43, 43, 43, 43, 43, 43, 43,
751
- 43, 43, 43, 43, 43, 43, 43, 43,
752
- 43, 43, 43, 43, 43, 43, 43, 43,
753
- 43, 43, 43, 43, 43, 43, 43, 43,
754
- 43, 43, 43, 43, 43, 43, 43, 43,
755
- 43, 43, 43, 43, 43, 43, 43, 43,
756
- 43, 43, 43, 43, 43, 43, 43, 43,
757
- 43, 43, 43, 43, 43, 43, 43, 43,
758
- 43, 43, 43, 43, 43, 43, 43, 43,
759
- 43, 43, 43, 43, 43, 43, 43, 43,
760
- 43, 43, 43, 43, 43, 43, 43, 43,
761
- 43, 43, 43, 43, 43, 43, 43, 43,
762
- 43, 43, 43, 43, 43, 43, 43, 43,
763
- 43, 43, 43, 43, 43, 43, 43, 43,
764
- 43, 43, 43, 43, 43, 43, 43, 43,
765
- 43, 43, 43, 43, 43, 43, 43, 43,
766
- 43, 43, 43, 43, 43, 43, 43, 43,
767
- 43, 43, 43, 43, 43, 43, 43, 43,
768
- 43, 43, 43, 43, 43, 43, 43, 43,
769
- 43, 43, 43, 43, 43, 43, 43, 43,
770
- 43, 43, 43, 43, 43, 43, 43, 43,
771
- 43, 43, 43, 43, 43, 43, 43, 43,
772
- 43, 43, 43, 43, 43, 43, 43, 43,
773
- 43, 43, 43, 43, 43, 43, 43, 43,
774
- 43, 43, 43, 43, 43, 43, 43, 43,
775
- 43, 43, 43, 43, 43, 43, 43, 43,
776
- 43, 43, 43, 43, 43, 43, 43, 43,
777
- 43, 43, 43, 43, 43, 43, 43, 43,
778
- 43, 43, 43, 43, 43, 43, 43, 43,
779
- 43, 43, 43, 43, 43, 43, 43, 43,
780
- 43, 43, 43, 43, 43, 43, 43, 43,
781
- 43, 43, 43, 43, 43, 43, 43, 43,
782
- 43, 43, 43, 43, 43, 43, 43, 43,
783
- 43, 43, 43, 43, 43, 43, 43, 43,
784
- 43, 43, 43, 43, 43, 43, 43, 43,
785
- 43, 43, 43, 43, 43, 43, 43, 43,
786
- 43, 43, 43, 43, 43, 43, 43, 43,
787
- 43, 43, 43, 43, 43, 43, 43, 43,
788
- 43, 43, 43, 43, 43, 43, 43, 43,
789
- 43, 43, 43, 43, 43, 43, 43, 43,
790
- 43, 43, 43, 43, 43, 43, 43, 43,
791
- 43, 43, 43, 43, 43
792
- ]
793
-
794
- class << self
795
- attr_accessor :lexer_start
796
- end
797
- self.lexer_start = 1;
798
- class << self
799
- attr_accessor :lexer_first_final
800
- end
801
- self.lexer_first_final = 428;
802
- class << self
803
- attr_accessor :lexer_error
804
- end
805
- self.lexer_error = 0;
806
-
807
- class << self
808
- attr_accessor :lexer_en_main
809
- end
810
- self.lexer_en_main = 1;
811
-
812
-
813
- # line 133 "ragel/i18n/lv.rb.rl"
814
- end
815
-
816
- def scan(data)
817
- data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably
818
- eof = pe = data.length
819
-
820
- @line_number = 1
821
- @last_newline = 0
822
-
823
-
824
- # line 825 "lib/gherkin/lexer/lv.rb"
825
- begin
826
- p ||= 0
827
- pe ||= data.length
828
- cs = lexer_start
829
- end
830
-
831
- # line 143 "ragel/i18n/lv.rb.rl"
832
-
833
- # line 834 "lib/gherkin/lexer/lv.rb"
834
- begin
835
- _klen, _trans, _keys, _acts, _nacts = nil
836
- _goto_level = 0
837
- _resume = 10
838
- _eof_trans = 15
839
- _again = 20
840
- _test_eof = 30
841
- _out = 40
842
- while true
843
- _trigger_goto = false
844
- if _goto_level <= 0
845
- if p == pe
846
- _goto_level = _test_eof
847
- next
848
- end
849
- if cs == 0
850
- _goto_level = _out
851
- next
852
- end
853
- end
854
- if _goto_level <= _resume
855
- _keys = _lexer_key_offsets[cs]
856
- _trans = _lexer_index_offsets[cs]
857
- _klen = _lexer_single_lengths[cs]
858
- _break_match = false
859
-
860
- begin
861
- if _klen > 0
862
- _lower = _keys
863
- _upper = _keys + _klen - 1
864
-
865
- loop do
866
- break if _upper < _lower
867
- _mid = _lower + ( (_upper - _lower) >> 1 )
868
-
869
- if data[p].ord < _lexer_trans_keys[_mid]
870
- _upper = _mid - 1
871
- elsif data[p].ord > _lexer_trans_keys[_mid]
872
- _lower = _mid + 1
873
- else
874
- _trans += (_mid - _keys)
875
- _break_match = true
876
- break
877
- end
878
- end # loop
879
- break if _break_match
880
- _keys += _klen
881
- _trans += _klen
882
- end
883
- _klen = _lexer_range_lengths[cs]
884
- if _klen > 0
885
- _lower = _keys
886
- _upper = _keys + (_klen << 1) - 2
887
- loop do
888
- break if _upper < _lower
889
- _mid = _lower + (((_upper-_lower) >> 1) & ~1)
890
- if data[p].ord < _lexer_trans_keys[_mid]
891
- _upper = _mid - 2
892
- elsif data[p].ord > _lexer_trans_keys[_mid+1]
893
- _lower = _mid + 2
894
- else
895
- _trans += ((_mid - _keys) >> 1)
896
- _break_match = true
897
- break
898
- end
899
- end # loop
900
- break if _break_match
901
- _trans += _klen
902
- end
903
- end while false
904
- _trans = _lexer_indicies[_trans]
905
- cs = _lexer_trans_targs[_trans]
906
- if _lexer_trans_actions[_trans] != 0
907
- _acts = _lexer_trans_actions[_trans]
908
- _nacts = _lexer_actions[_acts]
909
- _acts += 1
910
- while _nacts > 0
911
- _nacts -= 1
912
- _acts += 1
913
- case _lexer_actions[_acts - 1]
914
- when 0 then
915
- # line 11 "ragel/i18n/lv.rb.rl"
916
- begin
917
-
918
- @content_start = p
919
- @current_line = @line_number
920
- @start_col = p - @last_newline - "#{@keyword}:".length
921
- end
922
- when 1 then
923
- # line 17 "ragel/i18n/lv.rb.rl"
924
- begin
925
-
926
- @current_line = @line_number
927
- @start_col = p - @last_newline
928
- end
929
- when 2 then
930
- # line 22 "ragel/i18n/lv.rb.rl"
931
- begin
932
-
933
- @content_start = p
934
- end
935
- when 3 then
936
- # line 26 "ragel/i18n/lv.rb.rl"
937
- begin
938
-
939
- @docstring_content_type_start = p
940
- end
941
- when 4 then
942
- # line 29 "ragel/i18n/lv.rb.rl"
943
- begin
944
-
945
- @docstring_content_type_end = p
946
- end
947
- when 5 then
948
- # line 33 "ragel/i18n/lv.rb.rl"
949
- begin
950
-
951
- con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""'))
952
- con_type = utf8_pack(data[@docstring_content_type_start...@docstring_content_type_end]).strip
953
- @listener.doc_string(con_type, con, @current_line)
954
- end
955
- when 6 then
956
- # line 38 "ragel/i18n/lv.rb.rl"
957
- begin
958
-
959
- p = store_keyword_content(:feature, data, p, eof)
960
- end
961
- when 7 then
962
- # line 42 "ragel/i18n/lv.rb.rl"
963
- begin
964
-
965
- p = store_keyword_content(:background, data, p, eof)
966
- end
967
- when 8 then
968
- # line 46 "ragel/i18n/lv.rb.rl"
969
- begin
970
-
971
- p = store_keyword_content(:scenario, data, p, eof)
972
- end
973
- when 9 then
974
- # line 50 "ragel/i18n/lv.rb.rl"
975
- begin
976
-
977
- p = store_keyword_content(:scenario_outline, data, p, eof)
978
- end
979
- when 10 then
980
- # line 54 "ragel/i18n/lv.rb.rl"
981
- begin
982
-
983
- p = store_keyword_content(:examples, data, p, eof)
984
- end
985
- when 11 then
986
- # line 58 "ragel/i18n/lv.rb.rl"
987
- begin
988
-
989
- con = utf8_pack(data[@content_start...p]).strip
990
- @listener.step(@keyword, con, @current_line)
991
- end
992
- when 12 then
993
- # line 63 "ragel/i18n/lv.rb.rl"
994
- begin
995
-
996
- con = utf8_pack(data[@content_start...p]).strip
997
- @listener.comment(con, @line_number)
998
- @keyword_start = nil
999
- end
1000
- when 13 then
1001
- # line 69 "ragel/i18n/lv.rb.rl"
1002
- begin
1003
-
1004
- con = utf8_pack(data[@content_start...p]).strip
1005
- @listener.tag(con, @current_line)
1006
- @keyword_start = nil
1007
- end
1008
- when 14 then
1009
- # line 75 "ragel/i18n/lv.rb.rl"
1010
- begin
1011
-
1012
- @line_number += 1
1013
- end
1014
- when 15 then
1015
- # line 79 "ragel/i18n/lv.rb.rl"
1016
- begin
1017
-
1018
- @last_newline = p + 1
1019
- end
1020
- when 16 then
1021
- # line 83 "ragel/i18n/lv.rb.rl"
1022
- begin
1023
-
1024
- @keyword_start ||= p
1025
- end
1026
- when 17 then
1027
- # line 87 "ragel/i18n/lv.rb.rl"
1028
- begin
1029
-
1030
- @keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'')
1031
- @keyword_start = nil
1032
- end
1033
- when 18 then
1034
- # line 92 "ragel/i18n/lv.rb.rl"
1035
- begin
1036
-
1037
- @next_keyword_start = p
1038
- end
1039
- when 19 then
1040
- # line 96 "ragel/i18n/lv.rb.rl"
1041
- begin
1042
-
1043
- p = p - 1
1044
- current_row = []
1045
- @current_line = @line_number
1046
- end
1047
- when 20 then
1048
- # line 102 "ragel/i18n/lv.rb.rl"
1049
- begin
1050
-
1051
- @content_start = p
1052
- end
1053
- when 21 then
1054
- # line 106 "ragel/i18n/lv.rb.rl"
1055
- begin
1056
-
1057
- con = utf8_pack(data[@content_start...p]).strip
1058
- current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\")
1059
- end
1060
- when 22 then
1061
- # line 111 "ragel/i18n/lv.rb.rl"
1062
- begin
1063
-
1064
- @listener.row(current_row, @current_line)
1065
- end
1066
- when 23 then
1067
- # line 115 "ragel/i18n/lv.rb.rl"
1068
- begin
1069
-
1070
- if cs < lexer_first_final
1071
- content = current_line_content(data, p)
1072
- raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information." % [@line_number, content])
1073
- else
1074
- @listener.eof
1075
- end
1076
- end
1077
- # line 1078 "lib/gherkin/lexer/lv.rb"
1078
- end # action switch
1079
- end
1080
- end
1081
- if _trigger_goto
1082
- next
1083
- end
1084
- end
1085
- if _goto_level <= _again
1086
- if cs == 0
1087
- _goto_level = _out
1088
- next
1089
- end
1090
- p += 1
1091
- if p != pe
1092
- _goto_level = _resume
1093
- next
1094
- end
1095
- end
1096
- if _goto_level <= _test_eof
1097
- if p == eof
1098
- __acts = _lexer_eof_actions[cs]
1099
- __nacts = _lexer_actions[__acts]
1100
- __acts += 1
1101
- while __nacts > 0
1102
- __nacts -= 1
1103
- __acts += 1
1104
- case _lexer_actions[__acts - 1]
1105
- when 23 then
1106
- # line 115 "ragel/i18n/lv.rb.rl"
1107
- begin
1108
-
1109
- if cs < lexer_first_final
1110
- content = current_line_content(data, p)
1111
- raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information." % [@line_number, content])
1112
- else
1113
- @listener.eof
1114
- end
1115
- end
1116
- # line 1117 "lib/gherkin/lexer/lv.rb"
1117
- end # eof action switch
1118
- end
1119
- if _trigger_goto
1120
- next
1121
- end
1122
- end
1123
- end
1124
- if _goto_level <= _out
1125
- break
1126
- end
1127
- end
1128
- end
1129
-
1130
- # line 144 "ragel/i18n/lv.rb.rl"
1131
- end
1132
-
1133
- def unindent(startcol, text)
1134
- text.gsub(/^[\t ]{0,#{startcol}}/, "")
1135
- end
1136
-
1137
- def store_keyword_content(event, data, p, eof)
1138
- end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
1139
- content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
1140
- content_lines = content.split("\n")
1141
- name = content_lines.shift || ""
1142
- name.strip!
1143
- description = content_lines.join("\n")
1144
- @listener.__send__(event, @keyword, name, description, @current_line)
1145
- @next_keyword_start ? @next_keyword_start - 1 : p
1146
- ensure
1147
- @next_keyword_start = nil
1148
- end
1149
-
1150
- def current_line_content(data, p)
1151
- rest = data[@last_newline..-1]
1152
- utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
1153
- end
1154
-
1155
- if (RUBY_VERSION =~ /^1\.9|2\.0/)
1156
- def utf8_pack(array)
1157
- array.pack("c*").force_encoding("UTF-8")
1158
- end
1159
- else
1160
- def utf8_pack(array)
1161
- array.pack("c*")
1162
- end
1163
- end
1164
- end
1165
- end
1166
- end