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