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,6 +0,0 @@
1
- require 'mkmf'
2
- CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags']
3
- $CFLAGS << ' -O0 -Wall' if CONFIG['CC'] =~ /gcc|clang/
4
- dir_config("gherkin_lexer_uk")
5
- have_library("c", "main")
6
- create_makefile("gherkin_lexer_uk")
@@ -1,1941 +0,0 @@
1
-
2
- #line 1 "ragel/i18n/uk.c.rl"
3
- #include <assert.h>
4
- #include <ruby.h>
5
-
6
- #if defined(_WIN32)
7
- #include <stddef.h>
8
- #endif
9
-
10
- #ifdef HAVE_RUBY_RE_H
11
- #include <ruby/re.h>
12
- #else
13
- #include <re.h>
14
- #endif
15
-
16
- #ifdef HAVE_RUBY_ENCODING_H
17
- #include <ruby/encoding.h>
18
- #define ENCODED_STR_NEW(ptr, len) \
19
- rb_enc_str_new(ptr, len, rb_utf8_encoding())
20
- #else
21
- #define ENCODED_STR_NEW(ptr, len) \
22
- rb_str_new(ptr, len)
23
- #endif
24
-
25
- #ifndef RSTRING_PTR
26
- #define RSTRING_PTR(s) (RSTRING(s)->ptr)
27
- #endif
28
-
29
- #ifndef RSTRING_LEN
30
- #define RSTRING_LEN(s) (RSTRING(s)->len)
31
- #endif
32
-
33
- #define DATA_GET(FROM, TYPE, NAME) \
34
- Data_Get_Struct(FROM, TYPE, NAME); \
35
- if (NAME == NULL) { \
36
- rb_raise(rb_eArgError, "NULL found for " # NAME " when it shouldn't be."); \
37
- }
38
-
39
- typedef struct lexer_state {
40
- int content_len;
41
- int line_number;
42
- int current_line;
43
- int start_col;
44
- size_t mark;
45
- size_t keyword_start;
46
- size_t keyword_end;
47
- size_t next_keyword_start;
48
- size_t content_start;
49
- size_t content_end;
50
- size_t docstring_content_type_start;
51
- size_t docstring_content_type_end;
52
- size_t query_start;
53
- size_t last_newline;
54
- size_t final_newline;
55
- } lexer_state;
56
-
57
- static VALUE mGherkin;
58
- static VALUE mGherkinLexer;
59
- static VALUE mCLexer;
60
- static VALUE cI18nLexer;
61
- static VALUE rb_eGherkinLexingError;
62
-
63
- #define LEN(AT, P) (P - data - lexer->AT)
64
- #define MARK(M, P) (lexer->M = (P) - data)
65
- #define PTR_TO(P) (data + lexer->P)
66
-
67
- #define STORE_KW_END_CON(EVENT) \
68
- store_multiline_kw_con(listener, # EVENT, \
69
- PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end - 1)), \
70
- PTR_TO(content_start), LEN(content_start, PTR_TO(content_end)), \
71
- lexer->current_line, lexer->start_col); \
72
- if (lexer->content_end != 0) { \
73
- p = PTR_TO(content_end - 1); \
74
- } \
75
- lexer->content_end = 0
76
-
77
- #define STORE_ATTR(ATTR) \
78
- store_attr(listener, # ATTR, \
79
- PTR_TO(content_start), LEN(content_start, p), \
80
- lexer->line_number)
81
-
82
-
83
- #line 254 "ragel/i18n/uk.c.rl"
84
-
85
-
86
- /** Data **/
87
-
88
- #line 89 "ext/gherkin_lexer_uk/gherkin_lexer_uk.c"
89
- static const char _lexer_actions[] = {
90
- 0, 1, 0, 1, 1, 1, 2, 1,
91
- 3, 1, 4, 1, 5, 1, 6, 1,
92
- 7, 1, 8, 1, 9, 1, 10, 1,
93
- 11, 1, 12, 1, 13, 1, 16, 1,
94
- 17, 1, 18, 1, 19, 1, 20, 1,
95
- 21, 1, 22, 1, 23, 2, 1, 18,
96
- 2, 4, 5, 2, 13, 0, 2, 14,
97
- 15, 2, 17, 0, 2, 17, 2, 2,
98
- 17, 16, 2, 17, 19, 2, 18, 6,
99
- 2, 18, 7, 2, 18, 8, 2, 18,
100
- 9, 2, 18, 10, 2, 18, 16, 2,
101
- 20, 21, 2, 22, 0, 2, 22, 2,
102
- 2, 22, 16, 2, 22, 19, 3, 3,
103
- 14, 15, 3, 5, 14, 15, 3, 11,
104
- 14, 15, 3, 12, 14, 15, 3, 13,
105
- 14, 15, 3, 14, 15, 18, 3, 17,
106
- 0, 11, 3, 17, 14, 15, 4, 1,
107
- 14, 15, 18, 4, 4, 5, 14, 15,
108
- 4, 17, 0, 14, 15, 5, 17, 0,
109
- 11, 14, 15
110
- };
111
-
112
- static const short _lexer_key_offsets[] = {
113
- 0, 0, 12, 22, 23, 25, 27, 38,
114
- 39, 40, 42, 44, 49, 54, 59, 64,
115
- 68, 72, 74, 75, 76, 77, 78, 79,
116
- 80, 81, 82, 83, 84, 85, 86, 87,
117
- 88, 89, 94, 101, 106, 110, 116, 119,
118
- 121, 127, 138, 140, 141, 142, 143, 144,
119
- 145, 146, 147, 148, 149, 150, 151, 152,
120
- 153, 154, 155, 156, 157, 158, 159, 160,
121
- 161, 162, 163, 164, 165, 166, 167, 168,
122
- 169, 170, 171, 172, 173, 175, 176, 177,
123
- 178, 179, 180, 181, 182, 183, 184, 185,
124
- 186, 187, 188, 189, 190, 191, 192, 193,
125
- 194, 195, 204, 215, 217, 228, 231, 233,
126
- 235, 237, 239, 241, 243, 245, 247, 249,
127
- 251, 253, 255, 257, 259, 261, 263, 265,
128
- 267, 269, 271, 273, 275, 277, 279, 281,
129
- 283, 285, 287, 289, 291, 293, 295, 297,
130
- 299, 301, 303, 305, 307, 309, 311, 313,
131
- 315, 317, 319, 321, 323, 325, 327, 329,
132
- 331, 333, 336, 338, 340, 342, 344, 347,
133
- 349, 351, 353, 355, 357, 359, 361, 363,
134
- 365, 367, 369, 371, 373, 375, 377, 379,
135
- 381, 383, 385, 387, 389, 391, 393, 395,
136
- 397, 399, 401, 403, 405, 407, 409, 411,
137
- 413, 415, 417, 419, 421, 423, 425, 427,
138
- 429, 431, 433, 435, 437, 440, 443, 445,
139
- 447, 449, 451, 453, 455, 457, 459, 461,
140
- 463, 465, 467, 469, 471, 473, 475, 477,
141
- 479, 481, 483, 485, 487, 489, 491, 493,
142
- 495, 497, 499, 501, 503, 505, 507, 509,
143
- 511, 513, 515, 517, 518, 519, 520, 521,
144
- 523, 524, 525, 526, 527, 528, 529, 530,
145
- 531, 532, 533, 534, 541, 543, 545, 547,
146
- 549, 551, 553, 555, 557, 559, 561, 563,
147
- 565, 567, 569, 571, 573, 575, 577, 579,
148
- 581, 582, 583, 584, 585, 586, 587, 588,
149
- 589, 590, 591, 592, 593, 595, 596, 597,
150
- 598, 599, 601, 602, 603, 604, 605, 606,
151
- 607, 608, 609, 610, 611, 612, 613, 614,
152
- 615, 616, 617, 618, 619, 620, 621, 622,
153
- 623, 624, 625, 626, 627, 628, 629, 630,
154
- 631, 632, 633, 634, 635, 644, 655, 657,
155
- 660, 662, 664, 666, 668, 670, 672, 674,
156
- 676, 678, 680, 682, 684, 686, 688, 690,
157
- 692, 694, 696, 698, 700, 702, 704, 706,
158
- 708, 710, 712, 714, 716, 718, 720, 722,
159
- 724, 726, 728, 730, 732, 734, 736, 738,
160
- 740, 742, 744, 746, 748, 750, 752, 754,
161
- 756, 758, 760, 762, 765, 767, 769, 771,
162
- 773, 775, 777, 779, 781, 783, 785, 787,
163
- 789, 791, 793, 795, 797, 799, 801, 803,
164
- 806, 809, 811, 813, 815, 817, 819, 821,
165
- 823, 825, 827, 829, 831, 833, 835, 837,
166
- 839, 841, 843, 845, 847, 849, 851, 853,
167
- 855, 857, 859, 861, 863, 865, 867, 869,
168
- 871, 873, 875, 877, 879, 881, 883, 884,
169
- 885, 886, 887, 888, 889, 890, 891, 892,
170
- 893, 894, 895, 896, 897, 898, 907, 918,
171
- 920, 923, 925, 927, 929, 931, 933, 935,
172
- 937, 939, 941, 943, 945, 947, 949, 951,
173
- 953, 955, 957, 959, 961, 963, 965, 967,
174
- 969, 971, 973, 975, 977, 979, 981, 983,
175
- 985, 987, 989, 992, 994, 996, 998, 1000,
176
- 1002, 1004, 1006, 1008, 1010, 1012, 1014, 1016,
177
- 1018, 1020, 1022, 1024, 1026, 1028, 1030, 1032,
178
- 1034, 1036, 1038, 1040, 1042, 1044, 1046, 1048,
179
- 1050, 1052, 1054, 1056, 1058, 1060, 1062, 1065,
180
- 1067, 1069, 1071, 1073, 1076, 1078, 1080, 1082,
181
- 1084, 1086, 1088, 1090, 1092, 1094, 1096, 1098,
182
- 1100, 1102, 1104, 1106, 1108, 1110, 1112, 1114,
183
- 1116, 1118, 1120, 1122, 1124, 1126, 1128, 1130,
184
- 1132, 1134, 1136, 1138, 1140, 1142, 1144, 1146,
185
- 1148, 1150, 1152, 1154, 1156, 1158, 1160, 1162,
186
- 1164, 1167, 1170, 1172, 1174, 1176, 1178, 1180,
187
- 1182, 1184, 1186, 1188, 1190, 1192, 1194, 1196,
188
- 1198, 1200, 1202, 1204, 1206, 1208, 1210, 1212,
189
- 1214, 1216, 1218, 1220, 1222, 1224, 1226, 1228,
190
- 1230, 1232, 1234, 1236, 1238, 1240, 1242, 1244,
191
- 1245, 1247, 1249, 1250, 1251, 1252, 1253, 1254,
192
- 1255, 1256, 1257, 1258, 1259, 1260, 1261, 1262,
193
- 1263, 1264, 1265, 1266, 1267, 1268, 1269, 1270,
194
- 1271, 1272, 1273, 1281, 1285, 1288, 1290, 1292,
195
- 1294, 1296, 1298, 1300, 1302, 1304, 1306, 1308,
196
- 1310, 1312, 1314, 1316, 1318, 1320, 1322, 1324,
197
- 1326, 1328, 1330, 1332, 1334, 1336, 1338, 1340,
198
- 1342, 1344, 1346, 1348, 1350, 1352, 1355, 1357,
199
- 1359, 1361, 1363, 1365, 1367, 1369, 1371, 1373,
200
- 1375, 1377, 1379, 1381, 1383, 1385, 1387, 1389,
201
- 1391, 1393, 1395, 1397, 1399, 1401, 1403, 1405,
202
- 1407, 1409, 1411, 1413, 1415, 1417, 1419, 1421,
203
- 1423, 1425, 1427, 1429, 1431, 1433, 1435, 1437,
204
- 1439, 1441, 1443, 1445, 1447, 1449, 1451, 1453,
205
- 1455, 1457, 1459, 1461, 1463, 1465, 1467, 1469,
206
- 1471, 1473, 1475, 1477, 1479, 1481, 1483, 1485,
207
- 1487, 1489, 1491, 1493, 1495, 1497, 1499, 1501,
208
- 1503, 1505, 1506, 1507, 1508, 1509
209
- };
210
-
211
- static const char _lexer_trans_keys[] = {
212
- -48, -17, 10, 32, 34, 35, 37, 42,
213
- 64, 124, 9, 13, -122, -112, -108, -102,
214
- -99, -97, -95, -94, -92, -81, 32, 10,
215
- 13, 10, 13, -48, 10, 32, 34, 35,
216
- 37, 42, 64, 124, 9, 13, 34, 34,
217
- 10, 13, 10, 13, 10, 32, 34, 9,
218
- 13, 10, 32, 34, 9, 13, 10, 32,
219
- 34, 9, 13, 10, 32, 34, 9, 13,
220
- 10, 32, 9, 13, 10, 32, 9, 13,
221
- 10, 13, 10, 95, 70, 69, 65, 84,
222
- 85, 82, 69, 95, 69, 78, 68, 95,
223
- 37, 13, 32, 64, 9, 10, 9, 10,
224
- 13, 32, 64, 11, 12, 10, 32, 64,
225
- 9, 13, 32, 124, 9, 13, 10, 32,
226
- 92, 124, 9, 13, 10, 92, 124, 10,
227
- 92, 10, 32, 92, 124, 9, 13, -48,
228
- 10, 32, 34, 35, 37, 42, 64, 124,
229
- 9, 13, -48, 32, -69, -48, -75, -47,
230
- -126, -48, -80, -48, -70, -48, -66, -48,
231
- -74, -48, -80, -48, -67, -48, -66, -48,
232
- -66, -48, -69, -48, -72, -48, -75, -47,
233
- -123, -48, -80, -48, -71, -48, -47, -75,
234
- -47, -128, -48, -75, -48, -76, -47, -125,
235
- -48, -68, -48, -66, -48, -78, -48, -80,
236
- 58, 10, 10, -48, 10, 32, 35, 37,
237
- 42, 64, 9, 13, -122, -112, -108, -102,
238
- -99, -97, -95, -94, -92, -81, 10, 10,
239
- 32, -48, 10, 32, 34, 35, 37, 42,
240
- 64, 124, 9, 13, -48, 10, 32, -69,
241
- 10, -48, 10, -75, 10, -47, 10, -126,
242
- 10, -48, 10, -80, 10, -48, 10, -70,
243
- 10, -48, 10, -66, 10, -48, 10, -74,
244
- 10, -48, 10, -80, 10, -48, 10, -67,
245
- 10, -48, 10, -66, 10, -48, 10, -66,
246
- 10, -48, 10, -69, 10, -48, 10, -72,
247
- 10, -48, 10, -75, 10, -47, 10, -123,
248
- 10, -48, 10, -80, 10, -48, 10, -71,
249
- 10, -47, 10, -128, 10, -48, 10, -72,
250
- 10, -48, 10, -65, 10, -47, 10, -125,
251
- 10, -47, 10, -127, 10, -47, 10, -126,
252
- 10, -48, 10, -72, 10, -48, 10, -68,
253
- 10, -48, 10, -66, 10, 10, 32, 44,
254
- 10, 32, -47, 10, -119, 10, -47, 10,
255
- -126, -122, 10, -47, 10, -128, 10, -47,
256
- 10, -125, 10, -48, 10, -70, 10, -47,
257
- 10, -126, 10, -47, 10, -125, 10, -47,
258
- 10, -128, 10, -48, 10, -80, 10, 10,
259
- 32, -47, 10, -127, 10, -47, 10, -122,
260
- 10, -48, 10, -75, 10, -48, 10, -67,
261
- 10, -48, 10, -80, 10, -47, 10, -128,
262
- 10, -47, 10, -106, 10, -47, 10, -114,
263
- 10, 10, 58, -48, 10, -75, 10, -48,
264
- 10, -67, 10, -48, 10, -80, 10, -47,
265
- 10, -128, 10, -47, 10, -106, 10, -48,
266
- 10, -71, 10, -48, 10, -80, -66, 10,
267
- -48, 10, 32, -76, 10, -47, 10, -106,
268
- 10, -47, 10, -125, 10, -48, 10, -67,
269
- 10, -48, 10, -70, 10, -47, 10, -122,
270
- 10, -47, 10, -106, 10, -48, 10, -66,
271
- 10, -48, 10, -67, 10, -48, 10, -80,
272
- 10, -48, 10, -69, 10, -48, 10, -70,
273
- 10, 10, 95, 10, 70, 10, 69, 10,
274
- 65, 10, 84, 10, 85, 10, 82, 10,
275
- 69, 10, 95, 10, 69, 10, 78, 10,
276
- 68, 10, 95, 10, 37, -128, -48, -72,
277
- -48, -70, -65, -48, -69, -48, -80, -48,
278
- -76, -48, -72, 58, 10, 10, -48, 10,
279
- 32, 35, 124, 9, 13, -92, 10, -47,
280
- 10, -125, 10, -48, 10, -67, 10, -48,
281
- 10, -70, 10, -47, 10, -122, 10, -47,
282
- 10, -106, 10, -48, 10, -66, 10, -48,
283
- 10, -67, 10, -48, 10, -80, 10, -48,
284
- 10, -69, 10, 10, 58, -47, -125, -47,
285
- -127, -47, -126, -48, -72, -48, -68, -48,
286
- -66, 32, 44, 32, -47, -119, -47, -126,
287
- -122, -47, -128, -47, -125, -48, -70, -47,
288
- -126, -47, -125, -47, -128, -48, -80, 32,
289
- -47, -127, -47, -122, -48, -75, -48, -67,
290
- -48, -80, -47, -128, -47, -106, -47, -114,
291
- 58, 10, 10, -48, 10, 32, 35, 37,
292
- 42, 64, 9, 13, -122, -112, -108, -102,
293
- -99, -97, -95, -94, -92, -81, 10, 10,
294
- 32, -48, 10, 32, -69, 10, -48, 10,
295
- -75, 10, -47, 10, -126, 10, -48, 10,
296
- -80, 10, -48, 10, -70, 10, -48, 10,
297
- -66, 10, -48, 10, -74, 10, -48, 10,
298
- -80, 10, -48, 10, -67, 10, -48, 10,
299
- -66, 10, -48, 10, -66, 10, -48, 10,
300
- -69, 10, -48, 10, -72, 10, -48, 10,
301
- -75, 10, -47, 10, -123, 10, -48, 10,
302
- -80, 10, -48, 10, -71, 10, -47, 10,
303
- -128, 10, -48, 10, -72, 10, -48, 10,
304
- -65, 10, -47, 10, -125, 10, -47, 10,
305
- -127, 10, -47, 10, -126, 10, -48, 10,
306
- -72, 10, -48, 10, -68, 10, -48, 10,
307
- -66, 10, 10, 32, 44, 10, 32, -47,
308
- 10, -119, 10, -47, 10, -122, 10, -48,
309
- 10, -75, 10, -48, 10, -67, 10, -48,
310
- 10, -80, 10, -47, 10, -128, 10, -47,
311
- 10, -106, 10, -48, 10, -71, 10, 10,
312
- 58, -48, 10, -80, -66, 10, -48, 10,
313
- 32, -76, 10, -47, 10, -106, 10, -47,
314
- 10, -125, 10, -48, 10, -67, 10, -48,
315
- 10, -70, 10, -47, 10, -122, 10, -47,
316
- 10, -106, 10, -48, 10, -66, 10, -48,
317
- 10, -67, 10, -48, 10, -80, 10, -48,
318
- 10, -69, 10, -48, 10, -70, 10, 10,
319
- 95, 10, 70, 10, 69, 10, 65, 10,
320
- 84, 10, 85, 10, 82, 10, 69, 10,
321
- 95, 10, 69, 10, 78, 10, 68, 10,
322
- 95, 10, 37, -48, -75, -48, -67, -48,
323
- -80, -47, -128, -47, -106, -48, -71, 58,
324
- 10, 10, -48, 10, 32, 35, 37, 42,
325
- 64, 9, 13, -122, -112, -108, -102, -99,
326
- -97, -95, -94, -92, -81, 10, 10, 32,
327
- -48, 10, 32, -69, 10, -48, 10, -75,
328
- 10, -47, 10, -126, 10, -48, 10, -80,
329
- 10, -48, 10, -70, 10, -48, 10, -66,
330
- 10, -48, 10, -74, 10, -48, 10, -80,
331
- 10, -48, 10, -67, 10, -48, 10, -66,
332
- 10, -48, 10, -66, 10, -48, 10, -69,
333
- 10, -48, 10, -72, 10, -48, 10, -75,
334
- 10, -47, 10, -123, 10, -48, 10, -80,
335
- 10, -48, 10, -71, 10, -48, -47, 10,
336
- -75, 10, -47, 10, -128, 10, -48, 10,
337
- -75, 10, -48, 10, -76, 10, -47, 10,
338
- -125, 10, -48, 10, -68, 10, -48, 10,
339
- -66, 10, -48, 10, -78, 10, -48, 10,
340
- -80, 10, 10, 58, -128, 10, -48, 10,
341
- -72, 10, -48, 10, -65, 10, -47, 10,
342
- -125, 10, -47, 10, -127, 10, -47, 10,
343
- -126, 10, -48, 10, -72, 10, -48, 10,
344
- -68, 10, -48, 10, -66, 10, 10, 32,
345
- 44, 10, 32, -47, 10, -119, 10, -47,
346
- 10, -126, -122, 10, -47, 10, -128, 10,
347
- -47, 10, -125, 10, -48, 10, -70, 10,
348
- -47, 10, -126, 10, -47, 10, -125, 10,
349
- -47, 10, -128, 10, -48, 10, -80, 10,
350
- 10, 32, -47, 10, -127, 10, -47, 10,
351
- -122, 10, -48, 10, -75, 10, -48, 10,
352
- -67, 10, -48, 10, -80, 10, -47, 10,
353
- -128, 10, -47, 10, -106, 10, -47, 10,
354
- -114, 10, -48, 10, -75, 10, -48, 10,
355
- -67, 10, -48, 10, -80, 10, -47, 10,
356
- -128, 10, -47, 10, -106, 10, -48, 10,
357
- -71, 10, -48, 10, -80, -66, 10, -48,
358
- 10, 32, -76, 10, -47, 10, -106, 10,
359
- -47, 10, -125, 10, -48, 10, -67, 10,
360
- -48, 10, -70, 10, -47, 10, -122, 10,
361
- -47, 10, -106, 10, -48, 10, -66, 10,
362
- -48, 10, -67, 10, -48, 10, -80, 10,
363
- -48, 10, -69, 10, -48, 10, -70, 10,
364
- 10, 95, 10, 70, 10, 69, 10, 65,
365
- 10, 84, 10, 85, 10, 82, 10, 69,
366
- 10, 95, 10, 69, 10, 78, 10, 68,
367
- 10, 95, 10, 37, -48, -80, -66, -48,
368
- 32, -76, -47, -106, -47, -125, -48, -67,
369
- -48, -70, -47, -122, -47, -106, -48, -66,
370
- -48, -67, -48, -80, -48, -69, 58, 10,
371
- 10, -48, 10, 32, 35, 37, 64, 9,
372
- 13, -97, -95, -92, 10, -48, -47, 10,
373
- -75, 10, -47, 10, -128, 10, -48, 10,
374
- -75, 10, -48, 10, -76, 10, -47, 10,
375
- -125, 10, -48, 10, -68, 10, -48, 10,
376
- -66, 10, -48, 10, -78, 10, -48, 10,
377
- -80, 10, 10, 58, -128, 10, -48, 10,
378
- -72, 10, -48, 10, -70, 10, -48, 10,
379
- -69, 10, -48, 10, -80, 10, -48, 10,
380
- -76, 10, -48, 10, -72, 10, -47, 10,
381
- -126, -122, 10, -47, 10, -128, 10, -47,
382
- 10, -125, 10, -48, 10, -70, 10, -47,
383
- 10, -126, 10, -47, 10, -125, 10, -47,
384
- 10, -128, 10, -48, 10, -80, 10, 10,
385
- 32, -47, 10, -127, 10, -47, 10, -122,
386
- 10, -48, 10, -75, 10, -48, 10, -67,
387
- 10, -48, 10, -80, 10, -47, 10, -128,
388
- 10, -47, 10, -106, 10, -47, 10, -114,
389
- 10, -48, 10, -75, 10, -48, 10, -67,
390
- 10, -48, 10, -80, 10, -47, 10, -128,
391
- 10, -47, 10, -106, 10, -48, 10, -71,
392
- 10, -47, 10, -125, 10, -48, 10, -67,
393
- 10, -48, 10, -70, 10, -47, 10, -122,
394
- 10, -47, 10, -106, 10, -48, 10, -66,
395
- 10, -48, 10, -67, 10, -48, 10, -80,
396
- 10, -48, 10, -69, 10, 10, 95, 10,
397
- 70, 10, 69, 10, 65, 10, 84, 10,
398
- 85, 10, 82, 10, 69, 10, 95, 10,
399
- 69, 10, 78, 10, 68, 10, 95, 10,
400
- 37, -48, -70, -69, -65, 0
401
- };
402
-
403
- static const char _lexer_single_lengths[] = {
404
- 0, 10, 10, 1, 2, 2, 9, 1,
405
- 1, 2, 2, 3, 3, 3, 3, 2,
406
- 2, 2, 1, 1, 1, 1, 1, 1,
407
- 1, 1, 1, 1, 1, 1, 1, 1,
408
- 1, 3, 5, 3, 2, 4, 3, 2,
409
- 4, 9, 2, 1, 1, 1, 1, 1,
410
- 1, 1, 1, 1, 1, 1, 1, 1,
411
- 1, 1, 1, 1, 1, 1, 1, 1,
412
- 1, 1, 1, 1, 1, 1, 1, 1,
413
- 1, 1, 1, 1, 2, 1, 1, 1,
414
- 1, 1, 1, 1, 1, 1, 1, 1,
415
- 1, 1, 1, 1, 1, 1, 1, 1,
416
- 1, 7, 11, 2, 9, 3, 2, 2,
417
- 2, 2, 2, 2, 2, 2, 2, 2,
418
- 2, 2, 2, 2, 2, 2, 2, 2,
419
- 2, 2, 2, 2, 2, 2, 2, 2,
420
- 2, 2, 2, 2, 2, 2, 2, 2,
421
- 2, 2, 2, 2, 2, 2, 2, 2,
422
- 2, 2, 2, 2, 2, 2, 2, 2,
423
- 2, 3, 2, 2, 2, 2, 3, 2,
424
- 2, 2, 2, 2, 2, 2, 2, 2,
425
- 2, 2, 2, 2, 2, 2, 2, 2,
426
- 2, 2, 2, 2, 2, 2, 2, 2,
427
- 2, 2, 2, 2, 2, 2, 2, 2,
428
- 2, 2, 2, 2, 2, 2, 2, 2,
429
- 2, 2, 2, 2, 3, 3, 2, 2,
430
- 2, 2, 2, 2, 2, 2, 2, 2,
431
- 2, 2, 2, 2, 2, 2, 2, 2,
432
- 2, 2, 2, 2, 2, 2, 2, 2,
433
- 2, 2, 2, 2, 2, 2, 2, 2,
434
- 2, 2, 2, 1, 1, 1, 1, 2,
435
- 1, 1, 1, 1, 1, 1, 1, 1,
436
- 1, 1, 1, 5, 2, 2, 2, 2,
437
- 2, 2, 2, 2, 2, 2, 2, 2,
438
- 2, 2, 2, 2, 2, 2, 2, 2,
439
- 1, 1, 1, 1, 1, 1, 1, 1,
440
- 1, 1, 1, 1, 2, 1, 1, 1,
441
- 1, 2, 1, 1, 1, 1, 1, 1,
442
- 1, 1, 1, 1, 1, 1, 1, 1,
443
- 1, 1, 1, 1, 1, 1, 1, 1,
444
- 1, 1, 1, 1, 1, 1, 1, 1,
445
- 1, 1, 1, 1, 7, 11, 2, 3,
446
- 2, 2, 2, 2, 2, 2, 2, 2,
447
- 2, 2, 2, 2, 2, 2, 2, 2,
448
- 2, 2, 2, 2, 2, 2, 2, 2,
449
- 2, 2, 2, 2, 2, 2, 2, 2,
450
- 2, 2, 2, 2, 2, 2, 2, 2,
451
- 2, 2, 2, 2, 2, 2, 2, 2,
452
- 2, 2, 2, 3, 2, 2, 2, 2,
453
- 2, 2, 2, 2, 2, 2, 2, 2,
454
- 2, 2, 2, 2, 2, 2, 2, 3,
455
- 3, 2, 2, 2, 2, 2, 2, 2,
456
- 2, 2, 2, 2, 2, 2, 2, 2,
457
- 2, 2, 2, 2, 2, 2, 2, 2,
458
- 2, 2, 2, 2, 2, 2, 2, 2,
459
- 2, 2, 2, 2, 2, 2, 1, 1,
460
- 1, 1, 1, 1, 1, 1, 1, 1,
461
- 1, 1, 1, 1, 1, 7, 11, 2,
462
- 3, 2, 2, 2, 2, 2, 2, 2,
463
- 2, 2, 2, 2, 2, 2, 2, 2,
464
- 2, 2, 2, 2, 2, 2, 2, 2,
465
- 2, 2, 2, 2, 2, 2, 2, 2,
466
- 2, 2, 3, 2, 2, 2, 2, 2,
467
- 2, 2, 2, 2, 2, 2, 2, 2,
468
- 2, 2, 2, 2, 2, 2, 2, 2,
469
- 2, 2, 2, 2, 2, 2, 2, 2,
470
- 2, 2, 2, 2, 2, 2, 3, 2,
471
- 2, 2, 2, 3, 2, 2, 2, 2,
472
- 2, 2, 2, 2, 2, 2, 2, 2,
473
- 2, 2, 2, 2, 2, 2, 2, 2,
474
- 2, 2, 2, 2, 2, 2, 2, 2,
475
- 2, 2, 2, 2, 2, 2, 2, 2,
476
- 2, 2, 2, 2, 2, 2, 2, 2,
477
- 3, 3, 2, 2, 2, 2, 2, 2,
478
- 2, 2, 2, 2, 2, 2, 2, 2,
479
- 2, 2, 2, 2, 2, 2, 2, 2,
480
- 2, 2, 2, 2, 2, 2, 2, 2,
481
- 2, 2, 2, 2, 2, 2, 2, 1,
482
- 2, 2, 1, 1, 1, 1, 1, 1,
483
- 1, 1, 1, 1, 1, 1, 1, 1,
484
- 1, 1, 1, 1, 1, 1, 1, 1,
485
- 1, 1, 6, 4, 3, 2, 2, 2,
486
- 2, 2, 2, 2, 2, 2, 2, 2,
487
- 2, 2, 2, 2, 2, 2, 2, 2,
488
- 2, 2, 2, 2, 2, 2, 2, 2,
489
- 2, 2, 2, 2, 2, 3, 2, 2,
490
- 2, 2, 2, 2, 2, 2, 2, 2,
491
- 2, 2, 2, 2, 2, 2, 2, 2,
492
- 2, 2, 2, 2, 2, 2, 2, 2,
493
- 2, 2, 2, 2, 2, 2, 2, 2,
494
- 2, 2, 2, 2, 2, 2, 2, 2,
495
- 2, 2, 2, 2, 2, 2, 2, 2,
496
- 2, 2, 2, 2, 2, 2, 2, 2,
497
- 2, 2, 2, 2, 2, 2, 2, 2,
498
- 2, 2, 2, 2, 2, 2, 2, 2,
499
- 2, 1, 1, 1, 1, 0
500
- };
501
-
502
- static const char _lexer_range_lengths[] = {
503
- 0, 1, 0, 0, 0, 0, 1, 0,
504
- 0, 0, 0, 1, 1, 1, 1, 1,
505
- 1, 0, 0, 0, 0, 0, 0, 0,
506
- 0, 0, 0, 0, 0, 0, 0, 0,
507
- 0, 1, 1, 1, 1, 1, 0, 0,
508
- 1, 1, 0, 0, 0, 0, 0, 0,
509
- 0, 0, 0, 0, 0, 0, 0, 0,
510
- 0, 0, 0, 0, 0, 0, 0, 0,
511
- 0, 0, 0, 0, 0, 0, 0, 0,
512
- 0, 0, 0, 0, 0, 0, 0, 0,
513
- 0, 0, 0, 0, 0, 0, 0, 0,
514
- 0, 0, 0, 0, 0, 0, 0, 0,
515
- 0, 1, 0, 0, 1, 0, 0, 0,
516
- 0, 0, 0, 0, 0, 0, 0, 0,
517
- 0, 0, 0, 0, 0, 0, 0, 0,
518
- 0, 0, 0, 0, 0, 0, 0, 0,
519
- 0, 0, 0, 0, 0, 0, 0, 0,
520
- 0, 0, 0, 0, 0, 0, 0, 0,
521
- 0, 0, 0, 0, 0, 0, 0, 0,
522
- 0, 0, 0, 0, 0, 0, 0, 0,
523
- 0, 0, 0, 0, 0, 0, 0, 0,
524
- 0, 0, 0, 0, 0, 0, 0, 0,
525
- 0, 0, 0, 0, 0, 0, 0, 0,
526
- 0, 0, 0, 0, 0, 0, 0, 0,
527
- 0, 0, 0, 0, 0, 0, 0, 0,
528
- 0, 0, 0, 0, 0, 0, 0, 0,
529
- 0, 0, 0, 0, 0, 0, 0, 0,
530
- 0, 0, 0, 0, 0, 0, 0, 0,
531
- 0, 0, 0, 0, 0, 0, 0, 0,
532
- 0, 0, 0, 0, 0, 0, 0, 0,
533
- 0, 0, 0, 0, 0, 0, 0, 0,
534
- 0, 0, 0, 0, 0, 0, 0, 0,
535
- 0, 0, 0, 1, 0, 0, 0, 0,
536
- 0, 0, 0, 0, 0, 0, 0, 0,
537
- 0, 0, 0, 0, 0, 0, 0, 0,
538
- 0, 0, 0, 0, 0, 0, 0, 0,
539
- 0, 0, 0, 0, 0, 0, 0, 0,
540
- 0, 0, 0, 0, 0, 0, 0, 0,
541
- 0, 0, 0, 0, 0, 0, 0, 0,
542
- 0, 0, 0, 0, 0, 0, 0, 0,
543
- 0, 0, 0, 0, 0, 0, 0, 0,
544
- 0, 0, 0, 0, 1, 0, 0, 0,
545
- 0, 0, 0, 0, 0, 0, 0, 0,
546
- 0, 0, 0, 0, 0, 0, 0, 0,
547
- 0, 0, 0, 0, 0, 0, 0, 0,
548
- 0, 0, 0, 0, 0, 0, 0, 0,
549
- 0, 0, 0, 0, 0, 0, 0, 0,
550
- 0, 0, 0, 0, 0, 0, 0, 0,
551
- 0, 0, 0, 0, 0, 0, 0, 0,
552
- 0, 0, 0, 0, 0, 0, 0, 0,
553
- 0, 0, 0, 0, 0, 0, 0, 0,
554
- 0, 0, 0, 0, 0, 0, 0, 0,
555
- 0, 0, 0, 0, 0, 0, 0, 0,
556
- 0, 0, 0, 0, 0, 0, 0, 0,
557
- 0, 0, 0, 0, 0, 0, 0, 0,
558
- 0, 0, 0, 0, 0, 0, 0, 0,
559
- 0, 0, 0, 0, 0, 0, 0, 0,
560
- 0, 0, 0, 0, 0, 1, 0, 0,
561
- 0, 0, 0, 0, 0, 0, 0, 0,
562
- 0, 0, 0, 0, 0, 0, 0, 0,
563
- 0, 0, 0, 0, 0, 0, 0, 0,
564
- 0, 0, 0, 0, 0, 0, 0, 0,
565
- 0, 0, 0, 0, 0, 0, 0, 0,
566
- 0, 0, 0, 0, 0, 0, 0, 0,
567
- 0, 0, 0, 0, 0, 0, 0, 0,
568
- 0, 0, 0, 0, 0, 0, 0, 0,
569
- 0, 0, 0, 0, 0, 0, 0, 0,
570
- 0, 0, 0, 0, 0, 0, 0, 0,
571
- 0, 0, 0, 0, 0, 0, 0, 0,
572
- 0, 0, 0, 0, 0, 0, 0, 0,
573
- 0, 0, 0, 0, 0, 0, 0, 0,
574
- 0, 0, 0, 0, 0, 0, 0, 0,
575
- 0, 0, 0, 0, 0, 0, 0, 0,
576
- 0, 0, 0, 0, 0, 0, 0, 0,
577
- 0, 0, 0, 0, 0, 0, 0, 0,
578
- 0, 0, 0, 0, 0, 0, 0, 0,
579
- 0, 0, 0, 0, 0, 0, 0, 0,
580
- 0, 0, 0, 0, 0, 0, 0, 0,
581
- 0, 0, 0, 0, 0, 0, 0, 0,
582
- 0, 0, 0, 0, 0, 0, 0, 0,
583
- 0, 0, 0, 0, 0, 0, 0, 0,
584
- 0, 0, 1, 0, 0, 0, 0, 0,
585
- 0, 0, 0, 0, 0, 0, 0, 0,
586
- 0, 0, 0, 0, 0, 0, 0, 0,
587
- 0, 0, 0, 0, 0, 0, 0, 0,
588
- 0, 0, 0, 0, 0, 0, 0, 0,
589
- 0, 0, 0, 0, 0, 0, 0, 0,
590
- 0, 0, 0, 0, 0, 0, 0, 0,
591
- 0, 0, 0, 0, 0, 0, 0, 0,
592
- 0, 0, 0, 0, 0, 0, 0, 0,
593
- 0, 0, 0, 0, 0, 0, 0, 0,
594
- 0, 0, 0, 0, 0, 0, 0, 0,
595
- 0, 0, 0, 0, 0, 0, 0, 0,
596
- 0, 0, 0, 0, 0, 0, 0, 0,
597
- 0, 0, 0, 0, 0, 0, 0, 0,
598
- 0, 0, 0, 0, 0, 0
599
- };
600
-
601
- static const short _lexer_index_offsets[] = {
602
- 0, 0, 12, 23, 25, 28, 31, 42,
603
- 44, 46, 49, 52, 57, 62, 67, 72,
604
- 76, 80, 83, 85, 87, 89, 91, 93,
605
- 95, 97, 99, 101, 103, 105, 107, 109,
606
- 111, 113, 118, 125, 130, 134, 140, 144,
607
- 147, 153, 164, 167, 169, 171, 173, 175,
608
- 177, 179, 181, 183, 185, 187, 189, 191,
609
- 193, 195, 197, 199, 201, 203, 205, 207,
610
- 209, 211, 213, 215, 217, 219, 221, 223,
611
- 225, 227, 229, 231, 233, 236, 238, 240,
612
- 242, 244, 246, 248, 250, 252, 254, 256,
613
- 258, 260, 262, 264, 266, 268, 270, 272,
614
- 274, 276, 285, 297, 300, 311, 315, 318,
615
- 321, 324, 327, 330, 333, 336, 339, 342,
616
- 345, 348, 351, 354, 357, 360, 363, 366,
617
- 369, 372, 375, 378, 381, 384, 387, 390,
618
- 393, 396, 399, 402, 405, 408, 411, 414,
619
- 417, 420, 423, 426, 429, 432, 435, 438,
620
- 441, 444, 447, 450, 453, 456, 459, 462,
621
- 465, 468, 472, 475, 478, 481, 484, 488,
622
- 491, 494, 497, 500, 503, 506, 509, 512,
623
- 515, 518, 521, 524, 527, 530, 533, 536,
624
- 539, 542, 545, 548, 551, 554, 557, 560,
625
- 563, 566, 569, 572, 575, 578, 581, 584,
626
- 587, 590, 593, 596, 599, 602, 605, 608,
627
- 611, 614, 617, 620, 623, 627, 631, 634,
628
- 637, 640, 643, 646, 649, 652, 655, 658,
629
- 661, 664, 667, 670, 673, 676, 679, 682,
630
- 685, 688, 691, 694, 697, 700, 703, 706,
631
- 709, 712, 715, 718, 721, 724, 727, 730,
632
- 733, 736, 739, 742, 744, 746, 748, 750,
633
- 753, 755, 757, 759, 761, 763, 765, 767,
634
- 769, 771, 773, 775, 782, 785, 788, 791,
635
- 794, 797, 800, 803, 806, 809, 812, 815,
636
- 818, 821, 824, 827, 830, 833, 836, 839,
637
- 842, 844, 846, 848, 850, 852, 854, 856,
638
- 858, 860, 862, 864, 866, 869, 871, 873,
639
- 875, 877, 880, 882, 884, 886, 888, 890,
640
- 892, 894, 896, 898, 900, 902, 904, 906,
641
- 908, 910, 912, 914, 916, 918, 920, 922,
642
- 924, 926, 928, 930, 932, 934, 936, 938,
643
- 940, 942, 944, 946, 948, 957, 969, 972,
644
- 976, 979, 982, 985, 988, 991, 994, 997,
645
- 1000, 1003, 1006, 1009, 1012, 1015, 1018, 1021,
646
- 1024, 1027, 1030, 1033, 1036, 1039, 1042, 1045,
647
- 1048, 1051, 1054, 1057, 1060, 1063, 1066, 1069,
648
- 1072, 1075, 1078, 1081, 1084, 1087, 1090, 1093,
649
- 1096, 1099, 1102, 1105, 1108, 1111, 1114, 1117,
650
- 1120, 1123, 1126, 1129, 1133, 1136, 1139, 1142,
651
- 1145, 1148, 1151, 1154, 1157, 1160, 1163, 1166,
652
- 1169, 1172, 1175, 1178, 1181, 1184, 1187, 1190,
653
- 1194, 1198, 1201, 1204, 1207, 1210, 1213, 1216,
654
- 1219, 1222, 1225, 1228, 1231, 1234, 1237, 1240,
655
- 1243, 1246, 1249, 1252, 1255, 1258, 1261, 1264,
656
- 1267, 1270, 1273, 1276, 1279, 1282, 1285, 1288,
657
- 1291, 1294, 1297, 1300, 1303, 1306, 1309, 1311,
658
- 1313, 1315, 1317, 1319, 1321, 1323, 1325, 1327,
659
- 1329, 1331, 1333, 1335, 1337, 1339, 1348, 1360,
660
- 1363, 1367, 1370, 1373, 1376, 1379, 1382, 1385,
661
- 1388, 1391, 1394, 1397, 1400, 1403, 1406, 1409,
662
- 1412, 1415, 1418, 1421, 1424, 1427, 1430, 1433,
663
- 1436, 1439, 1442, 1445, 1448, 1451, 1454, 1457,
664
- 1460, 1463, 1466, 1470, 1473, 1476, 1479, 1482,
665
- 1485, 1488, 1491, 1494, 1497, 1500, 1503, 1506,
666
- 1509, 1512, 1515, 1518, 1521, 1524, 1527, 1530,
667
- 1533, 1536, 1539, 1542, 1545, 1548, 1551, 1554,
668
- 1557, 1560, 1563, 1566, 1569, 1572, 1575, 1579,
669
- 1582, 1585, 1588, 1591, 1595, 1598, 1601, 1604,
670
- 1607, 1610, 1613, 1616, 1619, 1622, 1625, 1628,
671
- 1631, 1634, 1637, 1640, 1643, 1646, 1649, 1652,
672
- 1655, 1658, 1661, 1664, 1667, 1670, 1673, 1676,
673
- 1679, 1682, 1685, 1688, 1691, 1694, 1697, 1700,
674
- 1703, 1706, 1709, 1712, 1715, 1718, 1721, 1724,
675
- 1727, 1731, 1735, 1738, 1741, 1744, 1747, 1750,
676
- 1753, 1756, 1759, 1762, 1765, 1768, 1771, 1774,
677
- 1777, 1780, 1783, 1786, 1789, 1792, 1795, 1798,
678
- 1801, 1804, 1807, 1810, 1813, 1816, 1819, 1822,
679
- 1825, 1828, 1831, 1834, 1837, 1840, 1843, 1846,
680
- 1848, 1851, 1854, 1856, 1858, 1860, 1862, 1864,
681
- 1866, 1868, 1870, 1872, 1874, 1876, 1878, 1880,
682
- 1882, 1884, 1886, 1888, 1890, 1892, 1894, 1896,
683
- 1898, 1900, 1902, 1910, 1915, 1919, 1922, 1925,
684
- 1928, 1931, 1934, 1937, 1940, 1943, 1946, 1949,
685
- 1952, 1955, 1958, 1961, 1964, 1967, 1970, 1973,
686
- 1976, 1979, 1982, 1985, 1988, 1991, 1994, 1997,
687
- 2000, 2003, 2006, 2009, 2012, 2015, 2019, 2022,
688
- 2025, 2028, 2031, 2034, 2037, 2040, 2043, 2046,
689
- 2049, 2052, 2055, 2058, 2061, 2064, 2067, 2070,
690
- 2073, 2076, 2079, 2082, 2085, 2088, 2091, 2094,
691
- 2097, 2100, 2103, 2106, 2109, 2112, 2115, 2118,
692
- 2121, 2124, 2127, 2130, 2133, 2136, 2139, 2142,
693
- 2145, 2148, 2151, 2154, 2157, 2160, 2163, 2166,
694
- 2169, 2172, 2175, 2178, 2181, 2184, 2187, 2190,
695
- 2193, 2196, 2199, 2202, 2205, 2208, 2211, 2214,
696
- 2217, 2220, 2223, 2226, 2229, 2232, 2235, 2238,
697
- 2241, 2244, 2246, 2248, 2250, 2252
698
- };
699
-
700
- static const short _lexer_trans_targs[] = {
701
- 2, 763, 6, 6, 7, 17, 19, 3,
702
- 33, 36, 6, 0, 3, 42, 56, 62,
703
- 68, 76, 296, 623, 629, 761, 0, 4,
704
- 0, 6, 18, 5, 6, 18, 5, 2,
705
- 6, 6, 7, 17, 19, 3, 33, 36,
706
- 6, 0, 8, 0, 9, 0, 11, 10,
707
- 10, 11, 10, 10, 12, 12, 13, 12,
708
- 12, 12, 12, 13, 12, 12, 12, 12,
709
- 14, 12, 12, 12, 12, 15, 12, 12,
710
- 6, 16, 16, 0, 6, 16, 16, 0,
711
- 6, 18, 17, 6, 0, 20, 0, 21,
712
- 0, 22, 0, 23, 0, 24, 0, 25,
713
- 0, 26, 0, 27, 0, 28, 0, 29,
714
- 0, 30, 0, 31, 0, 32, 0, 765,
715
- 0, 0, 0, 0, 0, 34, 35, 6,
716
- 35, 35, 33, 34, 34, 6, 35, 33,
717
- 35, 0, 36, 37, 36, 0, 41, 40,
718
- 39, 37, 40, 38, 0, 39, 37, 38,
719
- 0, 39, 38, 41, 40, 39, 37, 40,
720
- 38, 2, 41, 41, 7, 17, 19, 3,
721
- 33, 36, 41, 0, 43, 46, 0, 44,
722
- 0, 45, 0, 3, 0, 47, 0, 48,
723
- 0, 49, 0, 50, 0, 51, 0, 52,
724
- 0, 53, 0, 54, 0, 55, 0, 3,
725
- 0, 57, 0, 58, 0, 59, 0, 60,
726
- 0, 61, 0, 3, 0, 63, 0, 64,
727
- 0, 65, 0, 66, 0, 67, 0, 3,
728
- 0, 69, 0, 70, 0, 71, 0, 72,
729
- 0, 73, 0, 74, 0, 75, 0, 3,
730
- 0, 77, 243, 0, 78, 0, 79, 0,
731
- 80, 0, 81, 0, 82, 0, 83, 0,
732
- 84, 0, 85, 0, 86, 0, 87, 0,
733
- 88, 0, 89, 0, 90, 0, 91, 0,
734
- 92, 0, 93, 0, 94, 0, 95, 0,
735
- 97, 96, 97, 96, 98, 97, 97, 6,
736
- 229, 99, 6, 97, 96, 99, 101, 115,
737
- 121, 127, 135, 157, 203, 209, 227, 97,
738
- 96, 97, 100, 96, 2, 6, 6, 7,
739
- 17, 19, 3, 33, 36, 6, 0, 102,
740
- 97, 105, 96, 103, 97, 96, 104, 97,
741
- 96, 99, 97, 96, 106, 97, 96, 107,
742
- 97, 96, 108, 97, 96, 109, 97, 96,
743
- 110, 97, 96, 111, 97, 96, 112, 97,
744
- 96, 113, 97, 96, 114, 97, 96, 99,
745
- 97, 96, 116, 97, 96, 117, 97, 96,
746
- 118, 97, 96, 119, 97, 96, 120, 97,
747
- 96, 99, 97, 96, 122, 97, 96, 123,
748
- 97, 96, 124, 97, 96, 125, 97, 96,
749
- 126, 97, 96, 99, 97, 96, 128, 97,
750
- 96, 129, 97, 96, 130, 97, 96, 131,
751
- 97, 96, 132, 97, 96, 133, 97, 96,
752
- 134, 97, 96, 99, 97, 96, 136, 97,
753
- 96, 137, 97, 96, 138, 97, 96, 139,
754
- 97, 96, 140, 97, 96, 141, 97, 96,
755
- 142, 97, 96, 143, 97, 96, 144, 97,
756
- 96, 145, 97, 96, 146, 97, 96, 147,
757
- 97, 96, 148, 97, 96, 149, 97, 96,
758
- 150, 97, 96, 151, 97, 96, 152, 97,
759
- 96, 153, 97, 96, 97, 100, 154, 96,
760
- 97, 155, 96, 156, 97, 96, 119, 97,
761
- 96, 158, 97, 96, 159, 191, 97, 96,
762
- 160, 97, 96, 161, 97, 96, 162, 97,
763
- 96, 163, 97, 96, 164, 97, 96, 165,
764
- 97, 96, 166, 97, 96, 167, 97, 96,
765
- 168, 97, 96, 169, 97, 96, 170, 97,
766
- 96, 171, 97, 96, 172, 97, 96, 173,
767
- 97, 96, 97, 174, 96, 175, 97, 96,
768
- 176, 97, 96, 177, 97, 96, 178, 97,
769
- 96, 179, 97, 96, 180, 97, 96, 181,
770
- 97, 96, 182, 97, 96, 183, 97, 96,
771
- 184, 97, 96, 185, 97, 96, 186, 97,
772
- 96, 187, 97, 96, 188, 97, 96, 189,
773
- 97, 96, 190, 97, 96, 97, 100, 96,
774
- 192, 97, 96, 193, 97, 96, 194, 97,
775
- 96, 195, 97, 96, 196, 97, 96, 197,
776
- 97, 96, 198, 97, 96, 199, 97, 96,
777
- 200, 97, 96, 201, 97, 96, 202, 97,
778
- 96, 190, 97, 96, 204, 97, 96, 99,
779
- 205, 97, 96, 206, 97, 100, 96, 207,
780
- 97, 96, 208, 97, 96, 99, 97, 96,
781
- 210, 97, 96, 211, 97, 96, 212, 97,
782
- 96, 213, 97, 96, 214, 97, 96, 215,
783
- 97, 96, 216, 97, 96, 217, 97, 96,
784
- 218, 97, 96, 219, 97, 96, 220, 97,
785
- 96, 221, 97, 96, 222, 97, 96, 223,
786
- 97, 96, 224, 97, 96, 225, 97, 96,
787
- 226, 97, 96, 190, 97, 96, 228, 97,
788
- 96, 155, 97, 96, 97, 230, 96, 97,
789
- 231, 96, 97, 232, 96, 97, 233, 96,
790
- 97, 234, 96, 97, 235, 96, 97, 236,
791
- 96, 97, 237, 96, 97, 238, 96, 97,
792
- 239, 96, 97, 240, 96, 97, 241, 96,
793
- 97, 242, 96, 97, 6, 96, 244, 0,
794
- 245, 0, 246, 0, 247, 0, 248, 280,
795
- 0, 249, 0, 250, 0, 251, 0, 252,
796
- 0, 253, 0, 254, 0, 255, 0, 256,
797
- 0, 257, 0, 259, 258, 259, 258, 260,
798
- 259, 259, 6, 6, 259, 258, 261, 259,
799
- 258, 262, 259, 258, 263, 259, 258, 264,
800
- 259, 258, 265, 259, 258, 266, 259, 258,
801
- 267, 259, 258, 268, 259, 258, 269, 259,
802
- 258, 270, 259, 258, 271, 259, 258, 272,
803
- 259, 258, 273, 259, 258, 274, 259, 258,
804
- 275, 259, 258, 276, 259, 258, 277, 259,
805
- 258, 278, 259, 258, 279, 259, 258, 259,
806
- 100, 258, 281, 0, 282, 0, 283, 0,
807
- 284, 0, 285, 0, 286, 0, 287, 0,
808
- 288, 0, 289, 0, 290, 0, 291, 0,
809
- 292, 0, 4, 293, 0, 294, 0, 295,
810
- 0, 60, 0, 297, 0, 298, 446, 0,
811
- 299, 0, 300, 0, 301, 0, 302, 0,
812
- 303, 0, 304, 0, 305, 0, 306, 0,
813
- 307, 0, 308, 0, 309, 0, 310, 0,
814
- 311, 0, 312, 0, 313, 0, 314, 0,
815
- 315, 0, 316, 0, 317, 0, 318, 0,
816
- 319, 0, 320, 0, 321, 0, 322, 0,
817
- 323, 0, 324, 0, 325, 0, 326, 0,
818
- 327, 0, 328, 0, 329, 0, 330, 0,
819
- 332, 331, 332, 331, 333, 332, 332, 6,
820
- 432, 334, 6, 332, 331, 334, 335, 349,
821
- 355, 361, 369, 391, 406, 412, 430, 332,
822
- 331, 332, 100, 331, 336, 332, 339, 331,
823
- 337, 332, 331, 338, 332, 331, 334, 332,
824
- 331, 340, 332, 331, 341, 332, 331, 342,
825
- 332, 331, 343, 332, 331, 344, 332, 331,
826
- 345, 332, 331, 346, 332, 331, 347, 332,
827
- 331, 348, 332, 331, 334, 332, 331, 350,
828
- 332, 331, 351, 332, 331, 352, 332, 331,
829
- 353, 332, 331, 354, 332, 331, 334, 332,
830
- 331, 356, 332, 331, 357, 332, 331, 358,
831
- 332, 331, 359, 332, 331, 360, 332, 331,
832
- 334, 332, 331, 362, 332, 331, 363, 332,
833
- 331, 364, 332, 331, 365, 332, 331, 366,
834
- 332, 331, 367, 332, 331, 368, 332, 331,
835
- 334, 332, 331, 370, 332, 331, 371, 332,
836
- 331, 372, 332, 331, 373, 332, 331, 374,
837
- 332, 331, 375, 332, 331, 376, 332, 331,
838
- 377, 332, 331, 378, 332, 331, 379, 332,
839
- 331, 380, 332, 331, 381, 332, 331, 382,
840
- 332, 331, 383, 332, 331, 384, 332, 331,
841
- 385, 332, 331, 386, 332, 331, 387, 332,
842
- 331, 332, 100, 388, 331, 332, 389, 331,
843
- 390, 332, 331, 353, 332, 331, 392, 332,
844
- 331, 393, 332, 331, 394, 332, 331, 395,
845
- 332, 331, 396, 332, 331, 397, 332, 331,
846
- 398, 332, 331, 399, 332, 331, 400, 332,
847
- 331, 401, 332, 331, 402, 332, 331, 403,
848
- 332, 331, 404, 332, 331, 405, 332, 331,
849
- 332, 100, 331, 407, 332, 331, 334, 408,
850
- 332, 331, 409, 332, 100, 331, 410, 332,
851
- 331, 411, 332, 331, 334, 332, 331, 413,
852
- 332, 331, 414, 332, 331, 415, 332, 331,
853
- 416, 332, 331, 417, 332, 331, 418, 332,
854
- 331, 419, 332, 331, 420, 332, 331, 421,
855
- 332, 331, 422, 332, 331, 423, 332, 331,
856
- 424, 332, 331, 425, 332, 331, 426, 332,
857
- 331, 427, 332, 331, 428, 332, 331, 429,
858
- 332, 331, 405, 332, 331, 431, 332, 331,
859
- 389, 332, 331, 332, 433, 331, 332, 434,
860
- 331, 332, 435, 331, 332, 436, 331, 332,
861
- 437, 331, 332, 438, 331, 332, 439, 331,
862
- 332, 440, 331, 332, 441, 331, 332, 442,
863
- 331, 332, 443, 331, 332, 444, 331, 332,
864
- 445, 331, 332, 6, 331, 447, 0, 448,
865
- 0, 449, 0, 450, 0, 451, 0, 452,
866
- 0, 453, 0, 454, 0, 455, 0, 456,
867
- 0, 457, 0, 458, 0, 459, 0, 461,
868
- 460, 461, 460, 462, 461, 461, 6, 609,
869
- 463, 6, 461, 460, 463, 464, 478, 484,
870
- 490, 498, 538, 583, 589, 607, 461, 460,
871
- 461, 100, 460, 465, 461, 468, 460, 466,
872
- 461, 460, 467, 461, 460, 463, 461, 460,
873
- 469, 461, 460, 470, 461, 460, 471, 461,
874
- 460, 472, 461, 460, 473, 461, 460, 474,
875
- 461, 460, 475, 461, 460, 476, 461, 460,
876
- 477, 461, 460, 463, 461, 460, 479, 461,
877
- 460, 480, 461, 460, 481, 461, 460, 482,
878
- 461, 460, 483, 461, 460, 463, 461, 460,
879
- 485, 461, 460, 486, 461, 460, 487, 461,
880
- 460, 488, 461, 460, 489, 461, 460, 463,
881
- 461, 460, 491, 461, 460, 492, 461, 460,
882
- 493, 461, 460, 494, 461, 460, 495, 461,
883
- 460, 496, 461, 460, 497, 461, 460, 463,
884
- 461, 460, 499, 517, 461, 460, 500, 461,
885
- 460, 501, 461, 460, 502, 461, 460, 503,
886
- 461, 460, 504, 461, 460, 505, 461, 460,
887
- 506, 461, 460, 507, 461, 460, 508, 461,
888
- 460, 509, 461, 460, 510, 461, 460, 511,
889
- 461, 460, 512, 461, 460, 513, 461, 460,
890
- 514, 461, 460, 515, 461, 460, 516, 461,
891
- 460, 461, 100, 460, 518, 461, 460, 519,
892
- 461, 460, 520, 461, 460, 521, 461, 460,
893
- 522, 461, 460, 523, 461, 460, 524, 461,
894
- 460, 525, 461, 460, 526, 461, 460, 527,
895
- 461, 460, 528, 461, 460, 529, 461, 460,
896
- 530, 461, 460, 531, 461, 460, 532, 461,
897
- 460, 533, 461, 460, 534, 461, 460, 461,
898
- 100, 535, 460, 461, 536, 460, 537, 461,
899
- 460, 482, 461, 460, 539, 461, 460, 540,
900
- 571, 461, 460, 541, 461, 460, 542, 461,
901
- 460, 543, 461, 460, 544, 461, 460, 545,
902
- 461, 460, 546, 461, 460, 547, 461, 460,
903
- 548, 461, 460, 549, 461, 460, 550, 461,
904
- 460, 551, 461, 460, 552, 461, 460, 553,
905
- 461, 460, 554, 461, 460, 461, 555, 460,
906
- 556, 461, 460, 557, 461, 460, 558, 461,
907
- 460, 559, 461, 460, 560, 461, 460, 561,
908
- 461, 460, 562, 461, 460, 563, 461, 460,
909
- 564, 461, 460, 565, 461, 460, 566, 461,
910
- 460, 567, 461, 460, 568, 461, 460, 569,
911
- 461, 460, 570, 461, 460, 516, 461, 460,
912
- 572, 461, 460, 573, 461, 460, 574, 461,
913
- 460, 575, 461, 460, 576, 461, 460, 577,
914
- 461, 460, 578, 461, 460, 579, 461, 460,
915
- 580, 461, 460, 581, 461, 460, 582, 461,
916
- 460, 516, 461, 460, 584, 461, 460, 463,
917
- 585, 461, 460, 586, 461, 100, 460, 587,
918
- 461, 460, 588, 461, 460, 463, 461, 460,
919
- 590, 461, 460, 591, 461, 460, 592, 461,
920
- 460, 593, 461, 460, 594, 461, 460, 595,
921
- 461, 460, 596, 461, 460, 597, 461, 460,
922
- 598, 461, 460, 599, 461, 460, 600, 461,
923
- 460, 601, 461, 460, 602, 461, 460, 603,
924
- 461, 460, 604, 461, 460, 605, 461, 460,
925
- 606, 461, 460, 516, 461, 460, 608, 461,
926
- 460, 536, 461, 460, 461, 610, 460, 461,
927
- 611, 460, 461, 612, 460, 461, 613, 460,
928
- 461, 614, 460, 461, 615, 460, 461, 616,
929
- 460, 461, 617, 460, 461, 618, 460, 461,
930
- 619, 460, 461, 620, 460, 461, 621, 460,
931
- 461, 622, 460, 461, 6, 460, 624, 0,
932
- 3, 625, 0, 626, 4, 0, 627, 0,
933
- 628, 0, 3, 0, 630, 0, 631, 0,
934
- 632, 0, 633, 0, 634, 0, 635, 0,
935
- 636, 0, 637, 0, 638, 0, 639, 0,
936
- 640, 0, 641, 0, 642, 0, 643, 0,
937
- 644, 0, 645, 0, 646, 0, 647, 0,
938
- 648, 0, 650, 649, 650, 649, 651, 650,
939
- 650, 6, 747, 6, 650, 649, 652, 684,
940
- 729, 650, 649, 653, 671, 650, 649, 654,
941
- 650, 649, 655, 650, 649, 656, 650, 649,
942
- 657, 650, 649, 658, 650, 649, 659, 650,
943
- 649, 660, 650, 649, 661, 650, 649, 662,
944
- 650, 649, 663, 650, 649, 664, 650, 649,
945
- 665, 650, 649, 666, 650, 649, 667, 650,
946
- 649, 668, 650, 649, 669, 650, 649, 670,
947
- 650, 649, 650, 100, 649, 672, 650, 649,
948
- 673, 650, 649, 674, 650, 649, 675, 650,
949
- 649, 676, 650, 649, 677, 650, 649, 678,
950
- 650, 649, 679, 650, 649, 680, 650, 649,
951
- 681, 650, 649, 682, 650, 649, 683, 650,
952
- 649, 670, 650, 649, 685, 650, 649, 686,
953
- 717, 650, 649, 687, 650, 649, 688, 650,
954
- 649, 689, 650, 649, 690, 650, 649, 691,
955
- 650, 649, 692, 650, 649, 693, 650, 649,
956
- 694, 650, 649, 695, 650, 649, 696, 650,
957
- 649, 697, 650, 649, 698, 650, 649, 699,
958
- 650, 649, 700, 650, 649, 650, 701, 649,
959
- 702, 650, 649, 703, 650, 649, 704, 650,
960
- 649, 705, 650, 649, 706, 650, 649, 707,
961
- 650, 649, 708, 650, 649, 709, 650, 649,
962
- 710, 650, 649, 711, 650, 649, 712, 650,
963
- 649, 713, 650, 649, 714, 650, 649, 715,
964
- 650, 649, 716, 650, 649, 670, 650, 649,
965
- 718, 650, 649, 719, 650, 649, 720, 650,
966
- 649, 721, 650, 649, 722, 650, 649, 723,
967
- 650, 649, 724, 650, 649, 725, 650, 649,
968
- 726, 650, 649, 727, 650, 649, 728, 650,
969
- 649, 670, 650, 649, 730, 650, 649, 731,
970
- 650, 649, 732, 650, 649, 733, 650, 649,
971
- 734, 650, 649, 735, 650, 649, 736, 650,
972
- 649, 737, 650, 649, 738, 650, 649, 739,
973
- 650, 649, 740, 650, 649, 741, 650, 649,
974
- 742, 650, 649, 743, 650, 649, 744, 650,
975
- 649, 745, 650, 649, 746, 650, 649, 670,
976
- 650, 649, 650, 748, 649, 650, 749, 649,
977
- 650, 750, 649, 650, 751, 649, 650, 752,
978
- 649, 650, 753, 649, 650, 754, 649, 650,
979
- 755, 649, 650, 756, 649, 650, 757, 649,
980
- 650, 758, 649, 650, 759, 649, 650, 760,
981
- 649, 650, 6, 649, 762, 0, 294, 0,
982
- 764, 0, 6, 0, 0, 0
983
- };
984
-
985
- static const unsigned char _lexer_trans_actions[] = {
986
- 29, 0, 54, 0, 5, 1, 0, 29,
987
- 1, 35, 0, 43, 0, 0, 0, 0,
988
- 0, 0, 0, 0, 0, 0, 43, 0,
989
- 43, 149, 126, 57, 110, 23, 0, 29,
990
- 54, 0, 5, 1, 0, 29, 1, 35,
991
- 0, 43, 0, 43, 0, 43, 139, 48,
992
- 9, 106, 11, 0, 134, 45, 45, 45,
993
- 3, 122, 33, 33, 33, 0, 122, 33,
994
- 33, 33, 0, 122, 33, 0, 33, 0,
995
- 102, 7, 7, 43, 54, 0, 0, 43,
996
- 114, 25, 0, 54, 43, 0, 43, 0,
997
- 43, 0, 43, 0, 43, 0, 43, 0,
998
- 43, 0, 43, 0, 43, 0, 43, 0,
999
- 43, 0, 43, 0, 43, 0, 43, 0,
1000
- 43, 43, 43, 43, 43, 0, 27, 118,
1001
- 27, 27, 51, 27, 0, 54, 0, 1,
1002
- 0, 43, 0, 0, 0, 43, 54, 37,
1003
- 37, 87, 37, 37, 43, 0, 39, 0,
1004
- 43, 0, 0, 54, 0, 0, 39, 0,
1005
- 0, 96, 54, 0, 93, 90, 41, 96,
1006
- 90, 99, 0, 43, 0, 0, 43, 0,
1007
- 43, 0, 43, 0, 43, 0, 43, 0,
1008
- 43, 0, 43, 0, 43, 0, 43, 0,
1009
- 43, 0, 43, 0, 43, 0, 43, 0,
1010
- 43, 0, 43, 0, 43, 0, 43, 0,
1011
- 43, 0, 43, 0, 43, 0, 43, 0,
1012
- 43, 0, 43, 0, 43, 0, 43, 0,
1013
- 43, 0, 43, 0, 43, 0, 43, 0,
1014
- 43, 0, 43, 0, 43, 0, 43, 0,
1015
- 43, 0, 0, 43, 0, 43, 0, 43,
1016
- 0, 43, 0, 43, 0, 43, 0, 43,
1017
- 0, 43, 0, 43, 0, 43, 0, 43,
1018
- 0, 43, 0, 43, 0, 43, 0, 43,
1019
- 0, 43, 0, 43, 0, 43, 0, 43,
1020
- 144, 57, 54, 0, 84, 54, 0, 72,
1021
- 33, 84, 72, 0, 0, 0, 0, 0,
1022
- 0, 0, 0, 0, 0, 0, 0, 54,
1023
- 0, 54, 15, 0, 63, 130, 31, 60,
1024
- 57, 31, 63, 57, 66, 31, 43, 0,
1025
- 54, 0, 0, 0, 54, 0, 0, 54,
1026
- 0, 0, 54, 0, 0, 54, 0, 0,
1027
- 54, 0, 0, 54, 0, 0, 54, 0,
1028
- 0, 54, 0, 0, 54, 0, 0, 54,
1029
- 0, 0, 54, 0, 0, 54, 0, 0,
1030
- 54, 0, 0, 54, 0, 0, 54, 0,
1031
- 0, 54, 0, 0, 54, 0, 0, 54,
1032
- 0, 0, 54, 0, 0, 54, 0, 0,
1033
- 54, 0, 0, 54, 0, 0, 54, 0,
1034
- 0, 54, 0, 0, 54, 0, 0, 54,
1035
- 0, 0, 54, 0, 0, 54, 0, 0,
1036
- 54, 0, 0, 54, 0, 0, 54, 0,
1037
- 0, 54, 0, 0, 54, 0, 0, 54,
1038
- 0, 0, 54, 0, 0, 54, 0, 0,
1039
- 54, 0, 0, 54, 0, 0, 54, 0,
1040
- 0, 54, 0, 0, 54, 0, 0, 54,
1041
- 0, 0, 54, 0, 0, 54, 0, 0,
1042
- 54, 0, 0, 54, 0, 0, 54, 0,
1043
- 0, 54, 0, 0, 54, 0, 0, 54,
1044
- 0, 0, 54, 0, 54, 15, 0, 0,
1045
- 54, 0, 0, 0, 54, 0, 0, 54,
1046
- 0, 0, 54, 0, 0, 0, 54, 0,
1047
- 0, 54, 0, 0, 54, 0, 0, 54,
1048
- 0, 0, 54, 0, 0, 54, 0, 0,
1049
- 54, 0, 0, 54, 0, 0, 54, 0,
1050
- 0, 54, 0, 0, 54, 0, 0, 54,
1051
- 0, 0, 54, 0, 0, 54, 0, 0,
1052
- 54, 0, 54, 0, 0, 0, 54, 0,
1053
- 0, 54, 0, 0, 54, 0, 0, 54,
1054
- 0, 0, 54, 0, 0, 54, 0, 0,
1055
- 54, 0, 0, 54, 0, 0, 54, 0,
1056
- 0, 54, 0, 0, 54, 0, 0, 54,
1057
- 0, 0, 54, 0, 0, 54, 0, 0,
1058
- 54, 0, 0, 54, 0, 54, 15, 0,
1059
- 0, 54, 0, 0, 54, 0, 0, 54,
1060
- 0, 0, 54, 0, 0, 54, 0, 0,
1061
- 54, 0, 0, 54, 0, 0, 54, 0,
1062
- 0, 54, 0, 0, 54, 0, 0, 54,
1063
- 0, 0, 54, 0, 0, 54, 0, 0,
1064
- 0, 54, 0, 0, 54, 15, 0, 0,
1065
- 54, 0, 0, 54, 0, 0, 54, 0,
1066
- 0, 54, 0, 0, 54, 0, 0, 54,
1067
- 0, 0, 54, 0, 0, 54, 0, 0,
1068
- 54, 0, 0, 54, 0, 0, 54, 0,
1069
- 0, 54, 0, 0, 54, 0, 0, 54,
1070
- 0, 0, 54, 0, 0, 54, 0, 0,
1071
- 54, 0, 0, 54, 0, 0, 54, 0,
1072
- 0, 54, 0, 0, 54, 0, 0, 54,
1073
- 0, 0, 54, 0, 54, 0, 0, 54,
1074
- 0, 0, 54, 0, 0, 54, 0, 0,
1075
- 54, 0, 0, 54, 0, 0, 54, 0,
1076
- 0, 54, 0, 0, 54, 0, 0, 54,
1077
- 0, 0, 54, 0, 0, 54, 0, 0,
1078
- 54, 0, 0, 54, 15, 0, 0, 43,
1079
- 0, 43, 0, 43, 0, 43, 0, 0,
1080
- 43, 0, 43, 0, 43, 0, 43, 0,
1081
- 43, 0, 43, 0, 43, 0, 43, 0,
1082
- 43, 0, 43, 144, 57, 54, 0, 84,
1083
- 54, 0, 81, 81, 0, 0, 0, 54,
1084
- 0, 0, 54, 0, 0, 54, 0, 0,
1085
- 54, 0, 0, 54, 0, 0, 54, 0,
1086
- 0, 54, 0, 0, 54, 0, 0, 54,
1087
- 0, 0, 54, 0, 0, 54, 0, 0,
1088
- 54, 0, 0, 54, 0, 0, 54, 0,
1089
- 0, 54, 0, 0, 54, 0, 0, 54,
1090
- 0, 0, 54, 0, 0, 54, 0, 54,
1091
- 21, 0, 0, 43, 0, 43, 0, 43,
1092
- 0, 43, 0, 43, 0, 43, 0, 43,
1093
- 0, 43, 0, 43, 0, 43, 0, 43,
1094
- 0, 43, 0, 0, 43, 0, 43, 0,
1095
- 43, 0, 43, 0, 43, 0, 0, 43,
1096
- 0, 43, 0, 43, 0, 43, 0, 43,
1097
- 0, 43, 0, 43, 0, 43, 0, 43,
1098
- 0, 43, 0, 43, 0, 43, 0, 43,
1099
- 0, 43, 0, 43, 0, 43, 0, 43,
1100
- 0, 43, 0, 43, 0, 43, 0, 43,
1101
- 0, 43, 0, 43, 0, 43, 0, 43,
1102
- 0, 43, 0, 43, 0, 43, 0, 43,
1103
- 0, 43, 0, 43, 0, 43, 0, 43,
1104
- 144, 57, 54, 0, 84, 54, 0, 78,
1105
- 33, 84, 78, 0, 0, 0, 0, 0,
1106
- 0, 0, 0, 0, 0, 0, 0, 54,
1107
- 0, 54, 19, 0, 0, 54, 0, 0,
1108
- 0, 54, 0, 0, 54, 0, 0, 54,
1109
- 0, 0, 54, 0, 0, 54, 0, 0,
1110
- 54, 0, 0, 54, 0, 0, 54, 0,
1111
- 0, 54, 0, 0, 54, 0, 0, 54,
1112
- 0, 0, 54, 0, 0, 54, 0, 0,
1113
- 54, 0, 0, 54, 0, 0, 54, 0,
1114
- 0, 54, 0, 0, 54, 0, 0, 54,
1115
- 0, 0, 54, 0, 0, 54, 0, 0,
1116
- 54, 0, 0, 54, 0, 0, 54, 0,
1117
- 0, 54, 0, 0, 54, 0, 0, 54,
1118
- 0, 0, 54, 0, 0, 54, 0, 0,
1119
- 54, 0, 0, 54, 0, 0, 54, 0,
1120
- 0, 54, 0, 0, 54, 0, 0, 54,
1121
- 0, 0, 54, 0, 0, 54, 0, 0,
1122
- 54, 0, 0, 54, 0, 0, 54, 0,
1123
- 0, 54, 0, 0, 54, 0, 0, 54,
1124
- 0, 0, 54, 0, 0, 54, 0, 0,
1125
- 54, 0, 0, 54, 0, 0, 54, 0,
1126
- 0, 54, 0, 0, 54, 0, 0, 54,
1127
- 0, 54, 19, 0, 0, 54, 0, 0,
1128
- 0, 54, 0, 0, 54, 0, 0, 54,
1129
- 0, 0, 54, 0, 0, 54, 0, 0,
1130
- 54, 0, 0, 54, 0, 0, 54, 0,
1131
- 0, 54, 0, 0, 54, 0, 0, 54,
1132
- 0, 0, 54, 0, 0, 54, 0, 0,
1133
- 54, 0, 0, 54, 0, 0, 54, 0,
1134
- 54, 19, 0, 0, 54, 0, 0, 0,
1135
- 54, 0, 0, 54, 19, 0, 0, 54,
1136
- 0, 0, 54, 0, 0, 54, 0, 0,
1137
- 54, 0, 0, 54, 0, 0, 54, 0,
1138
- 0, 54, 0, 0, 54, 0, 0, 54,
1139
- 0, 0, 54, 0, 0, 54, 0, 0,
1140
- 54, 0, 0, 54, 0, 0, 54, 0,
1141
- 0, 54, 0, 0, 54, 0, 0, 54,
1142
- 0, 0, 54, 0, 0, 54, 0, 0,
1143
- 54, 0, 0, 54, 0, 0, 54, 0,
1144
- 0, 54, 0, 54, 0, 0, 54, 0,
1145
- 0, 54, 0, 0, 54, 0, 0, 54,
1146
- 0, 0, 54, 0, 0, 54, 0, 0,
1147
- 54, 0, 0, 54, 0, 0, 54, 0,
1148
- 0, 54, 0, 0, 54, 0, 0, 54,
1149
- 0, 0, 54, 19, 0, 0, 43, 0,
1150
- 43, 0, 43, 0, 43, 0, 43, 0,
1151
- 43, 0, 43, 0, 43, 0, 43, 0,
1152
- 43, 0, 43, 0, 43, 0, 43, 144,
1153
- 57, 54, 0, 84, 54, 0, 75, 33,
1154
- 84, 75, 0, 0, 0, 0, 0, 0,
1155
- 0, 0, 0, 0, 0, 0, 54, 0,
1156
- 54, 17, 0, 0, 54, 0, 0, 0,
1157
- 54, 0, 0, 54, 0, 0, 54, 0,
1158
- 0, 54, 0, 0, 54, 0, 0, 54,
1159
- 0, 0, 54, 0, 0, 54, 0, 0,
1160
- 54, 0, 0, 54, 0, 0, 54, 0,
1161
- 0, 54, 0, 0, 54, 0, 0, 54,
1162
- 0, 0, 54, 0, 0, 54, 0, 0,
1163
- 54, 0, 0, 54, 0, 0, 54, 0,
1164
- 0, 54, 0, 0, 54, 0, 0, 54,
1165
- 0, 0, 54, 0, 0, 54, 0, 0,
1166
- 54, 0, 0, 54, 0, 0, 54, 0,
1167
- 0, 54, 0, 0, 54, 0, 0, 54,
1168
- 0, 0, 54, 0, 0, 54, 0, 0,
1169
- 54, 0, 0, 0, 54, 0, 0, 54,
1170
- 0, 0, 54, 0, 0, 54, 0, 0,
1171
- 54, 0, 0, 54, 0, 0, 54, 0,
1172
- 0, 54, 0, 0, 54, 0, 0, 54,
1173
- 0, 0, 54, 0, 0, 54, 0, 0,
1174
- 54, 0, 0, 54, 0, 0, 54, 0,
1175
- 0, 54, 0, 0, 54, 0, 0, 54,
1176
- 0, 54, 17, 0, 0, 54, 0, 0,
1177
- 54, 0, 0, 54, 0, 0, 54, 0,
1178
- 0, 54, 0, 0, 54, 0, 0, 54,
1179
- 0, 0, 54, 0, 0, 54, 0, 0,
1180
- 54, 0, 0, 54, 0, 0, 54, 0,
1181
- 0, 54, 0, 0, 54, 0, 0, 54,
1182
- 0, 0, 54, 0, 0, 54, 0, 54,
1183
- 17, 0, 0, 54, 0, 0, 0, 54,
1184
- 0, 0, 54, 0, 0, 54, 0, 0,
1185
- 0, 54, 0, 0, 54, 0, 0, 54,
1186
- 0, 0, 54, 0, 0, 54, 0, 0,
1187
- 54, 0, 0, 54, 0, 0, 54, 0,
1188
- 0, 54, 0, 0, 54, 0, 0, 54,
1189
- 0, 0, 54, 0, 0, 54, 0, 0,
1190
- 54, 0, 0, 54, 0, 54, 0, 0,
1191
- 0, 54, 0, 0, 54, 0, 0, 54,
1192
- 0, 0, 54, 0, 0, 54, 0, 0,
1193
- 54, 0, 0, 54, 0, 0, 54, 0,
1194
- 0, 54, 0, 0, 54, 0, 0, 54,
1195
- 0, 0, 54, 0, 0, 54, 0, 0,
1196
- 54, 0, 0, 54, 0, 0, 54, 0,
1197
- 0, 54, 0, 0, 54, 0, 0, 54,
1198
- 0, 0, 54, 0, 0, 54, 0, 0,
1199
- 54, 0, 0, 54, 0, 0, 54, 0,
1200
- 0, 54, 0, 0, 54, 0, 0, 54,
1201
- 0, 0, 54, 0, 0, 54, 0, 0,
1202
- 0, 54, 0, 0, 54, 17, 0, 0,
1203
- 54, 0, 0, 54, 0, 0, 54, 0,
1204
- 0, 54, 0, 0, 54, 0, 0, 54,
1205
- 0, 0, 54, 0, 0, 54, 0, 0,
1206
- 54, 0, 0, 54, 0, 0, 54, 0,
1207
- 0, 54, 0, 0, 54, 0, 0, 54,
1208
- 0, 0, 54, 0, 0, 54, 0, 0,
1209
- 54, 0, 0, 54, 0, 0, 54, 0,
1210
- 0, 54, 0, 0, 54, 0, 0, 54,
1211
- 0, 0, 54, 0, 54, 0, 0, 54,
1212
- 0, 0, 54, 0, 0, 54, 0, 0,
1213
- 54, 0, 0, 54, 0, 0, 54, 0,
1214
- 0, 54, 0, 0, 54, 0, 0, 54,
1215
- 0, 0, 54, 0, 0, 54, 0, 0,
1216
- 54, 0, 0, 54, 17, 0, 0, 43,
1217
- 0, 0, 43, 0, 0, 43, 0, 43,
1218
- 0, 43, 0, 43, 0, 43, 0, 43,
1219
- 0, 43, 0, 43, 0, 43, 0, 43,
1220
- 0, 43, 0, 43, 0, 43, 0, 43,
1221
- 0, 43, 0, 43, 0, 43, 0, 43,
1222
- 0, 43, 0, 43, 0, 43, 0, 43,
1223
- 0, 43, 144, 57, 54, 0, 84, 54,
1224
- 0, 69, 33, 69, 0, 0, 0, 0,
1225
- 0, 54, 0, 0, 0, 54, 0, 0,
1226
- 54, 0, 0, 54, 0, 0, 54, 0,
1227
- 0, 54, 0, 0, 54, 0, 0, 54,
1228
- 0, 0, 54, 0, 0, 54, 0, 0,
1229
- 54, 0, 0, 54, 0, 0, 54, 0,
1230
- 0, 54, 0, 0, 54, 0, 0, 54,
1231
- 0, 0, 54, 0, 0, 54, 0, 0,
1232
- 54, 0, 54, 13, 0, 0, 54, 0,
1233
- 0, 54, 0, 0, 54, 0, 0, 54,
1234
- 0, 0, 54, 0, 0, 54, 0, 0,
1235
- 54, 0, 0, 54, 0, 0, 54, 0,
1236
- 0, 54, 0, 0, 54, 0, 0, 54,
1237
- 0, 0, 54, 0, 0, 54, 0, 0,
1238
- 0, 54, 0, 0, 54, 0, 0, 54,
1239
- 0, 0, 54, 0, 0, 54, 0, 0,
1240
- 54, 0, 0, 54, 0, 0, 54, 0,
1241
- 0, 54, 0, 0, 54, 0, 0, 54,
1242
- 0, 0, 54, 0, 0, 54, 0, 0,
1243
- 54, 0, 0, 54, 0, 54, 0, 0,
1244
- 0, 54, 0, 0, 54, 0, 0, 54,
1245
- 0, 0, 54, 0, 0, 54, 0, 0,
1246
- 54, 0, 0, 54, 0, 0, 54, 0,
1247
- 0, 54, 0, 0, 54, 0, 0, 54,
1248
- 0, 0, 54, 0, 0, 54, 0, 0,
1249
- 54, 0, 0, 54, 0, 0, 54, 0,
1250
- 0, 54, 0, 0, 54, 0, 0, 54,
1251
- 0, 0, 54, 0, 0, 54, 0, 0,
1252
- 54, 0, 0, 54, 0, 0, 54, 0,
1253
- 0, 54, 0, 0, 54, 0, 0, 54,
1254
- 0, 0, 54, 0, 0, 54, 0, 0,
1255
- 54, 0, 0, 54, 0, 0, 54, 0,
1256
- 0, 54, 0, 0, 54, 0, 0, 54,
1257
- 0, 0, 54, 0, 0, 54, 0, 0,
1258
- 54, 0, 0, 54, 0, 0, 54, 0,
1259
- 0, 54, 0, 0, 54, 0, 0, 54,
1260
- 0, 0, 54, 0, 0, 54, 0, 0,
1261
- 54, 0, 54, 0, 0, 54, 0, 0,
1262
- 54, 0, 0, 54, 0, 0, 54, 0,
1263
- 0, 54, 0, 0, 54, 0, 0, 54,
1264
- 0, 0, 54, 0, 0, 54, 0, 0,
1265
- 54, 0, 0, 54, 0, 0, 54, 0,
1266
- 0, 54, 13, 0, 0, 43, 0, 43,
1267
- 0, 43, 0, 43, 0, 0
1268
- };
1269
-
1270
- static const unsigned char _lexer_eof_actions[] = {
1271
- 0, 43, 43, 43, 43, 43, 43, 43,
1272
- 43, 43, 43, 43, 43, 43, 43, 43,
1273
- 43, 43, 43, 43, 43, 43, 43, 43,
1274
- 43, 43, 43, 43, 43, 43, 43, 43,
1275
- 43, 43, 43, 43, 43, 43, 43, 43,
1276
- 43, 43, 43, 43, 43, 43, 43, 43,
1277
- 43, 43, 43, 43, 43, 43, 43, 43,
1278
- 43, 43, 43, 43, 43, 43, 43, 43,
1279
- 43, 43, 43, 43, 43, 43, 43, 43,
1280
- 43, 43, 43, 43, 43, 43, 43, 43,
1281
- 43, 43, 43, 43, 43, 43, 43, 43,
1282
- 43, 43, 43, 43, 43, 43, 43, 43,
1283
- 43, 43, 43, 43, 43, 43, 43, 43,
1284
- 43, 43, 43, 43, 43, 43, 43, 43,
1285
- 43, 43, 43, 43, 43, 43, 43, 43,
1286
- 43, 43, 43, 43, 43, 43, 43, 43,
1287
- 43, 43, 43, 43, 43, 43, 43, 43,
1288
- 43, 43, 43, 43, 43, 43, 43, 43,
1289
- 43, 43, 43, 43, 43, 43, 43, 43,
1290
- 43, 43, 43, 43, 43, 43, 43, 43,
1291
- 43, 43, 43, 43, 43, 43, 43, 43,
1292
- 43, 43, 43, 43, 43, 43, 43, 43,
1293
- 43, 43, 43, 43, 43, 43, 43, 43,
1294
- 43, 43, 43, 43, 43, 43, 43, 43,
1295
- 43, 43, 43, 43, 43, 43, 43, 43,
1296
- 43, 43, 43, 43, 43, 43, 43, 43,
1297
- 43, 43, 43, 43, 43, 43, 43, 43,
1298
- 43, 43, 43, 43, 43, 43, 43, 43,
1299
- 43, 43, 43, 43, 43, 43, 43, 43,
1300
- 43, 43, 43, 43, 43, 43, 43, 43,
1301
- 43, 43, 43, 43, 43, 43, 43, 43,
1302
- 43, 43, 43, 43, 43, 43, 43, 43,
1303
- 43, 43, 43, 43, 43, 43, 43, 43,
1304
- 43, 43, 43, 43, 43, 43, 43, 43,
1305
- 43, 43, 43, 43, 43, 43, 43, 43,
1306
- 43, 43, 43, 43, 43, 43, 43, 43,
1307
- 43, 43, 43, 43, 43, 43, 43, 43,
1308
- 43, 43, 43, 43, 43, 43, 43, 43,
1309
- 43, 43, 43, 43, 43, 43, 43, 43,
1310
- 43, 43, 43, 43, 43, 43, 43, 43,
1311
- 43, 43, 43, 43, 43, 43, 43, 43,
1312
- 43, 43, 43, 43, 43, 43, 43, 43,
1313
- 43, 43, 43, 43, 43, 43, 43, 43,
1314
- 43, 43, 43, 43, 43, 43, 43, 43,
1315
- 43, 43, 43, 43, 43, 43, 43, 43,
1316
- 43, 43, 43, 43, 43, 43, 43, 43,
1317
- 43, 43, 43, 43, 43, 43, 43, 43,
1318
- 43, 43, 43, 43, 43, 43, 43, 43,
1319
- 43, 43, 43, 43, 43, 43, 43, 43,
1320
- 43, 43, 43, 43, 43, 43, 43, 43,
1321
- 43, 43, 43, 43, 43, 43, 43, 43,
1322
- 43, 43, 43, 43, 43, 43, 43, 43,
1323
- 43, 43, 43, 43, 43, 43, 43, 43,
1324
- 43, 43, 43, 43, 43, 43, 43, 43,
1325
- 43, 43, 43, 43, 43, 43, 43, 43,
1326
- 43, 43, 43, 43, 43, 43, 43, 43,
1327
- 43, 43, 43, 43, 43, 43, 43, 43,
1328
- 43, 43, 43, 43, 43, 43, 43, 43,
1329
- 43, 43, 43, 43, 43, 43, 43, 43,
1330
- 43, 43, 43, 43, 43, 43, 43, 43,
1331
- 43, 43, 43, 43, 43, 43, 43, 43,
1332
- 43, 43, 43, 43, 43, 43, 43, 43,
1333
- 43, 43, 43, 43, 43, 43, 43, 43,
1334
- 43, 43, 43, 43, 43, 43, 43, 43,
1335
- 43, 43, 43, 43, 43, 43, 43, 43,
1336
- 43, 43, 43, 43, 43, 43, 43, 43,
1337
- 43, 43, 43, 43, 43, 43, 43, 43,
1338
- 43, 43, 43, 43, 43, 43, 43, 43,
1339
- 43, 43, 43, 43, 43, 43, 43, 43,
1340
- 43, 43, 43, 43, 43, 43, 43, 43,
1341
- 43, 43, 43, 43, 43, 43, 43, 43,
1342
- 43, 43, 43, 43, 43, 43, 43, 43,
1343
- 43, 43, 43, 43, 43, 43, 43, 43,
1344
- 43, 43, 43, 43, 43, 43, 43, 43,
1345
- 43, 43, 43, 43, 43, 43, 43, 43,
1346
- 43, 43, 43, 43, 43, 43, 43, 43,
1347
- 43, 43, 43, 43, 43, 43, 43, 43,
1348
- 43, 43, 43, 43, 43, 43, 43, 43,
1349
- 43, 43, 43, 43, 43, 43, 43, 43,
1350
- 43, 43, 43, 43, 43, 43, 43, 43,
1351
- 43, 43, 43, 43, 43, 43, 43, 43,
1352
- 43, 43, 43, 43, 43, 43, 43, 43,
1353
- 43, 43, 43, 43, 43, 43, 43, 43,
1354
- 43, 43, 43, 43, 43, 43, 43, 43,
1355
- 43, 43, 43, 43, 43, 43, 43, 43,
1356
- 43, 43, 43, 43, 43, 43, 43, 43,
1357
- 43, 43, 43, 43, 43, 43, 43, 43,
1358
- 43, 43, 43, 43, 43, 43, 43, 43,
1359
- 43, 43, 43, 43, 43, 43, 43, 43,
1360
- 43, 43, 43, 43, 43, 43, 43, 43,
1361
- 43, 43, 43, 43, 43, 43, 43, 43,
1362
- 43, 43, 43, 43, 43, 43, 43, 43,
1363
- 43, 43, 43, 43, 43, 43, 43, 43,
1364
- 43, 43, 43, 43, 43, 43, 43, 43,
1365
- 43, 43, 43, 43, 43, 43, 43, 43,
1366
- 43, 43, 43, 43, 43, 43
1367
- };
1368
-
1369
- static const int lexer_start = 1;
1370
- static const int lexer_first_final = 765;
1371
- static const int lexer_error = 0;
1372
-
1373
- static const int lexer_en_main = 1;
1374
-
1375
-
1376
- #line 258 "ragel/i18n/uk.c.rl"
1377
-
1378
- static VALUE
1379
- unindent(VALUE con, int start_col)
1380
- {
1381
- VALUE re;
1382
- /* Gherkin will crash gracefully if the string representation of start_col pushes the pattern past 32 characters */
1383
- char pat[32];
1384
- snprintf(pat, 32, "^[\t ]{0,%d}", start_col);
1385
- re = rb_reg_regcomp(rb_str_new2(pat));
1386
- rb_funcall(con, rb_intern("gsub!"), 2, re, rb_str_new2(""));
1387
-
1388
- return Qnil;
1389
-
1390
- }
1391
-
1392
- static void
1393
- store_kw_con(VALUE listener, const char * event_name,
1394
- const char * keyword_at, size_t keyword_length,
1395
- const char * at, size_t length,
1396
- int current_line)
1397
- {
1398
- VALUE con = Qnil, kw = Qnil;
1399
- kw = ENCODED_STR_NEW(keyword_at, keyword_length);
1400
- con = ENCODED_STR_NEW(at, length);
1401
- rb_funcall(con, rb_intern("strip!"), 0);
1402
- rb_funcall(listener, rb_intern(event_name), 3, kw, con, INT2FIX(current_line));
1403
- }
1404
-
1405
- static void
1406
- store_multiline_kw_con(VALUE listener, const char * event_name,
1407
- const char * keyword_at, size_t keyword_length,
1408
- const char * at, size_t length,
1409
- int current_line, int start_col)
1410
- {
1411
- VALUE split;
1412
- VALUE con = Qnil, kw = Qnil, name = Qnil, desc = Qnil;
1413
-
1414
- kw = ENCODED_STR_NEW(keyword_at, keyword_length);
1415
- con = ENCODED_STR_NEW(at, length);
1416
-
1417
- unindent(con, start_col);
1418
-
1419
- split = rb_str_split(con, "\n");
1420
-
1421
- name = rb_funcall(split, rb_intern("shift"), 0);
1422
- desc = rb_ary_join(split, rb_str_new2( "\n" ));
1423
-
1424
- if( name == Qnil )
1425
- {
1426
- name = rb_str_new2("");
1427
- }
1428
- if( rb_funcall(desc, rb_intern("size"), 0) == 0)
1429
- {
1430
- desc = rb_str_new2("");
1431
- }
1432
- rb_funcall(name, rb_intern("strip!"), 0);
1433
- rb_funcall(desc, rb_intern("rstrip!"), 0);
1434
- rb_funcall(listener, rb_intern(event_name), 4, kw, name, desc, INT2FIX(current_line));
1435
- }
1436
-
1437
- static void
1438
- store_attr(VALUE listener, const char * attr_type,
1439
- const char * at, size_t length,
1440
- int line)
1441
- {
1442
- VALUE val = ENCODED_STR_NEW(at, length);
1443
- rb_funcall(listener, rb_intern(attr_type), 2, val, INT2FIX(line));
1444
- }
1445
- static void
1446
- store_docstring_content(VALUE listener,
1447
- int start_col,
1448
- const char *type_at, size_t type_length,
1449
- const char *at, size_t length,
1450
- int current_line)
1451
- {
1452
- VALUE re2;
1453
- VALUE unescape_escaped_quotes;
1454
- VALUE con = ENCODED_STR_NEW(at, length);
1455
- VALUE con_type = ENCODED_STR_NEW(type_at, type_length);
1456
-
1457
- unindent(con, start_col);
1458
-
1459
- re2 = rb_reg_regcomp(rb_str_new2("\r\\Z"));
1460
- unescape_escaped_quotes = rb_reg_regcomp(rb_str_new2("\\\\\"\\\\\"\\\\\""));
1461
- rb_funcall(con, rb_intern("sub!"), 2, re2, rb_str_new2(""));
1462
- rb_funcall(con_type, rb_intern("strip!"), 0);
1463
- rb_funcall(con, rb_intern("gsub!"), 2, unescape_escaped_quotes, rb_str_new2("\"\"\""));
1464
- rb_funcall(listener, rb_intern("doc_string"), 3, con_type, con, INT2FIX(current_line));
1465
- }
1466
- static void
1467
- raise_lexer_error(const char * at, int line)
1468
- {
1469
- rb_raise(rb_eGherkinLexingError, "Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information.", line, at);
1470
- }
1471
-
1472
- static void lexer_init(lexer_state *lexer) {
1473
- lexer->content_start = 0;
1474
- lexer->content_end = 0;
1475
- lexer->content_len = 0;
1476
- lexer->docstring_content_type_start = 0;
1477
- lexer->docstring_content_type_end = 0;
1478
- lexer->mark = 0;
1479
- lexer->keyword_start = 0;
1480
- lexer->keyword_end = 0;
1481
- lexer->next_keyword_start = 0;
1482
- lexer->line_number = 1;
1483
- lexer->last_newline = 0;
1484
- lexer->final_newline = 0;
1485
- lexer->start_col = 0;
1486
- }
1487
-
1488
- static VALUE CLexer_alloc(VALUE klass)
1489
- {
1490
- VALUE obj;
1491
- lexer_state *lxr = ALLOC(lexer_state);
1492
- lexer_init(lxr);
1493
-
1494
- obj = Data_Wrap_Struct(klass, NULL, -1, lxr);
1495
-
1496
- return obj;
1497
- }
1498
-
1499
- static VALUE CLexer_init(VALUE self, VALUE listener)
1500
- {
1501
- lexer_state *lxr;
1502
- rb_iv_set(self, "@listener", listener);
1503
-
1504
- lxr = NULL;
1505
- DATA_GET(self, lexer_state, lxr);
1506
- lexer_init(lxr);
1507
-
1508
- return self;
1509
- }
1510
-
1511
- static VALUE CLexer_scan(VALUE self, VALUE input)
1512
- {
1513
- VALUE input_copy;
1514
- char *data;
1515
- size_t len;
1516
- VALUE listener = rb_iv_get(self, "@listener");
1517
-
1518
- lexer_state *lexer;
1519
- lexer = NULL;
1520
- DATA_GET(self, lexer_state, lexer);
1521
-
1522
- input_copy = rb_str_dup(input);
1523
-
1524
- rb_str_append(input_copy, rb_str_new2("\n%_FEATURE_END_%"));
1525
- data = RSTRING_PTR(input_copy);
1526
- len = RSTRING_LEN(input_copy);
1527
-
1528
- if (len == 0) {
1529
- rb_raise(rb_eGherkinLexingError, "No content to lex.");
1530
- } else {
1531
-
1532
- const char *p, *pe, *eof;
1533
- int cs = 0;
1534
-
1535
- VALUE current_row = Qnil;
1536
-
1537
- p = data;
1538
- pe = data + len;
1539
- eof = pe;
1540
-
1541
- assert(*pe == '\0' && "pointer does not end on NULL");
1542
-
1543
-
1544
- #line 1545 "ext/gherkin_lexer_uk/gherkin_lexer_uk.c"
1545
- {
1546
- cs = lexer_start;
1547
- }
1548
-
1549
- #line 425 "ragel/i18n/uk.c.rl"
1550
-
1551
- #line 1552 "ext/gherkin_lexer_uk/gherkin_lexer_uk.c"
1552
- {
1553
- int _klen;
1554
- unsigned int _trans;
1555
- const char *_acts;
1556
- unsigned int _nacts;
1557
- const char *_keys;
1558
-
1559
- if ( p == pe )
1560
- goto _test_eof;
1561
- if ( cs == 0 )
1562
- goto _out;
1563
- _resume:
1564
- _keys = _lexer_trans_keys + _lexer_key_offsets[cs];
1565
- _trans = _lexer_index_offsets[cs];
1566
-
1567
- _klen = _lexer_single_lengths[cs];
1568
- if ( _klen > 0 ) {
1569
- const char *_lower = _keys;
1570
- const char *_mid;
1571
- const char *_upper = _keys + _klen - 1;
1572
- while (1) {
1573
- if ( _upper < _lower )
1574
- break;
1575
-
1576
- _mid = _lower + ((_upper-_lower) >> 1);
1577
- if ( (*p) < *_mid )
1578
- _upper = _mid - 1;
1579
- else if ( (*p) > *_mid )
1580
- _lower = _mid + 1;
1581
- else {
1582
- _trans += (unsigned int)(_mid - _keys);
1583
- goto _match;
1584
- }
1585
- }
1586
- _keys += _klen;
1587
- _trans += _klen;
1588
- }
1589
-
1590
- _klen = _lexer_range_lengths[cs];
1591
- if ( _klen > 0 ) {
1592
- const char *_lower = _keys;
1593
- const char *_mid;
1594
- const char *_upper = _keys + (_klen<<1) - 2;
1595
- while (1) {
1596
- if ( _upper < _lower )
1597
- break;
1598
-
1599
- _mid = _lower + (((_upper-_lower) >> 1) & ~1);
1600
- if ( (*p) < _mid[0] )
1601
- _upper = _mid - 2;
1602
- else if ( (*p) > _mid[1] )
1603
- _lower = _mid + 2;
1604
- else {
1605
- _trans += (unsigned int)((_mid - _keys)>>1);
1606
- goto _match;
1607
- }
1608
- }
1609
- _trans += _klen;
1610
- }
1611
-
1612
- _match:
1613
- cs = _lexer_trans_targs[_trans];
1614
-
1615
- if ( _lexer_trans_actions[_trans] == 0 )
1616
- goto _again;
1617
-
1618
- _acts = _lexer_actions + _lexer_trans_actions[_trans];
1619
- _nacts = (unsigned int) *_acts++;
1620
- while ( _nacts-- > 0 )
1621
- {
1622
- switch ( *_acts++ )
1623
- {
1624
- case 0:
1625
- #line 83 "ragel/i18n/uk.c.rl"
1626
- {
1627
- MARK(content_start, p);
1628
- lexer->current_line = lexer->line_number;
1629
- lexer->start_col = lexer->content_start - lexer->last_newline - (lexer->keyword_end - lexer->keyword_start) + 2;
1630
- }
1631
- break;
1632
- case 1:
1633
- #line 89 "ragel/i18n/uk.c.rl"
1634
- {
1635
- MARK(content_start, p);
1636
- }
1637
- break;
1638
- case 2:
1639
- #line 93 "ragel/i18n/uk.c.rl"
1640
- {
1641
- lexer->current_line = lexer->line_number;
1642
- lexer->start_col = p - data - lexer->last_newline;
1643
- }
1644
- break;
1645
- case 3:
1646
- #line 98 "ragel/i18n/uk.c.rl"
1647
- {
1648
- int len = LEN(content_start, PTR_TO(final_newline));
1649
- int type_len = LEN(docstring_content_type_start, PTR_TO(docstring_content_type_end));
1650
-
1651
- if (len < 0) len = 0;
1652
- if (type_len < 0) len = 0;
1653
-
1654
- store_docstring_content(listener, lexer->start_col, PTR_TO(docstring_content_type_start), type_len, PTR_TO(content_start), len, lexer->current_line);
1655
- }
1656
- break;
1657
- case 4:
1658
- #line 108 "ragel/i18n/uk.c.rl"
1659
- {
1660
- MARK(docstring_content_type_start, p);
1661
- }
1662
- break;
1663
- case 5:
1664
- #line 112 "ragel/i18n/uk.c.rl"
1665
- {
1666
- MARK(docstring_content_type_end, p);
1667
- }
1668
- break;
1669
- case 6:
1670
- #line 116 "ragel/i18n/uk.c.rl"
1671
- {
1672
- STORE_KW_END_CON(feature);
1673
- }
1674
- break;
1675
- case 7:
1676
- #line 120 "ragel/i18n/uk.c.rl"
1677
- {
1678
- STORE_KW_END_CON(background);
1679
- }
1680
- break;
1681
- case 8:
1682
- #line 124 "ragel/i18n/uk.c.rl"
1683
- {
1684
- STORE_KW_END_CON(scenario);
1685
- }
1686
- break;
1687
- case 9:
1688
- #line 128 "ragel/i18n/uk.c.rl"
1689
- {
1690
- STORE_KW_END_CON(scenario_outline);
1691
- }
1692
- break;
1693
- case 10:
1694
- #line 132 "ragel/i18n/uk.c.rl"
1695
- {
1696
- STORE_KW_END_CON(examples);
1697
- }
1698
- break;
1699
- case 11:
1700
- #line 136 "ragel/i18n/uk.c.rl"
1701
- {
1702
- store_kw_con(listener, "step",
1703
- PTR_TO(keyword_start), LEN(keyword_start, PTR_TO(keyword_end)),
1704
- PTR_TO(content_start), LEN(content_start, p),
1705
- lexer->current_line);
1706
- }
1707
- break;
1708
- case 12:
1709
- #line 143 "ragel/i18n/uk.c.rl"
1710
- {
1711
- STORE_ATTR(comment);
1712
- lexer->mark = 0;
1713
- }
1714
- break;
1715
- case 13:
1716
- #line 148 "ragel/i18n/uk.c.rl"
1717
- {
1718
- STORE_ATTR(tag);
1719
- lexer->mark = 0;
1720
- }
1721
- break;
1722
- case 14:
1723
- #line 153 "ragel/i18n/uk.c.rl"
1724
- {
1725
- lexer->line_number += 1;
1726
- MARK(final_newline, p);
1727
- }
1728
- break;
1729
- case 15:
1730
- #line 158 "ragel/i18n/uk.c.rl"
1731
- {
1732
- MARK(last_newline, p + 1);
1733
- }
1734
- break;
1735
- case 16:
1736
- #line 162 "ragel/i18n/uk.c.rl"
1737
- {
1738
- if (lexer->mark == 0) {
1739
- MARK(mark, p);
1740
- }
1741
- }
1742
- break;
1743
- case 17:
1744
- #line 168 "ragel/i18n/uk.c.rl"
1745
- {
1746
- MARK(keyword_end, p);
1747
- MARK(keyword_start, PTR_TO(mark));
1748
- MARK(content_start, p + 1);
1749
- lexer->mark = 0;
1750
- }
1751
- break;
1752
- case 18:
1753
- #line 175 "ragel/i18n/uk.c.rl"
1754
- {
1755
- MARK(content_end, p);
1756
- }
1757
- break;
1758
- case 19:
1759
- #line 179 "ragel/i18n/uk.c.rl"
1760
- {
1761
- p = p - 1;
1762
- lexer->current_line = lexer->line_number;
1763
- current_row = rb_ary_new();
1764
- }
1765
- break;
1766
- case 20:
1767
- #line 185 "ragel/i18n/uk.c.rl"
1768
- {
1769
- MARK(content_start, p);
1770
- }
1771
- break;
1772
- case 21:
1773
- #line 189 "ragel/i18n/uk.c.rl"
1774
- {
1775
- VALUE re_pipe, re_newline, re_backslash;
1776
- VALUE con = ENCODED_STR_NEW(PTR_TO(content_start), LEN(content_start, p));
1777
- rb_funcall(con, rb_intern("strip!"), 0);
1778
- re_pipe = rb_reg_regcomp(rb_str_new2("\\\\\\|"));
1779
- re_newline = rb_reg_regcomp(rb_str_new2("\\\\n"));
1780
- re_backslash = rb_reg_regcomp(rb_str_new2("\\\\\\\\"));
1781
- rb_funcall(con, rb_intern("gsub!"), 2, re_pipe, rb_str_new2("|"));
1782
- rb_funcall(con, rb_intern("gsub!"), 2, re_newline, rb_str_new2("\n"));
1783
- rb_funcall(con, rb_intern("gsub!"), 2, re_backslash, rb_str_new2("\\"));
1784
-
1785
- rb_ary_push(current_row, con);
1786
- }
1787
- break;
1788
- case 22:
1789
- #line 203 "ragel/i18n/uk.c.rl"
1790
- {
1791
- rb_funcall(listener, rb_intern("row"), 2, current_row, INT2FIX(lexer->current_line));
1792
- }
1793
- break;
1794
- case 23:
1795
- #line 207 "ragel/i18n/uk.c.rl"
1796
- {
1797
- int line;
1798
- if (cs < lexer_first_final) {
1799
- size_t count = 0;
1800
- VALUE newstr_val;
1801
- char *newstr;
1802
- int newstr_count = 0;
1803
- size_t len;
1804
- const char *buff;
1805
- if (lexer->last_newline != 0) {
1806
- len = LEN(last_newline, eof);
1807
- buff = PTR_TO(last_newline);
1808
- } else {
1809
- len = strlen(data);
1810
- buff = data;
1811
- }
1812
-
1813
- /* Allocate as a ruby string so that it gets cleaned up by GC */
1814
- newstr_val = rb_str_new(buff, len);
1815
- newstr = RSTRING_PTR(newstr_val);
1816
-
1817
-
1818
- for (count = 0; count < len; count++) {
1819
- if(buff[count] == 10) {
1820
- newstr[newstr_count] = '\0'; /* terminate new string at first newline found */
1821
- break;
1822
- } else {
1823
- if (buff[count] == '%') {
1824
- newstr[newstr_count++] = buff[count];
1825
- newstr[newstr_count] = buff[count];
1826
- } else {
1827
- newstr[newstr_count] = buff[count];
1828
- }
1829
- }
1830
- newstr_count++;
1831
- }
1832
-
1833
- line = lexer->line_number;
1834
- lexer_init(lexer); /* Re-initialize so we can scan again with the same lexer */
1835
- raise_lexer_error(newstr, line);
1836
- } else {
1837
- rb_funcall(listener, rb_intern("eof"), 0);
1838
- }
1839
- }
1840
- break;
1841
- #line 1842 "ext/gherkin_lexer_uk/gherkin_lexer_uk.c"
1842
- }
1843
- }
1844
-
1845
- _again:
1846
- if ( cs == 0 )
1847
- goto _out;
1848
- if ( ++p != pe )
1849
- goto _resume;
1850
- _test_eof: {}
1851
- if ( p == eof )
1852
- {
1853
- const char *__acts = _lexer_actions + _lexer_eof_actions[cs];
1854
- unsigned int __nacts = (unsigned int) *__acts++;
1855
- while ( __nacts-- > 0 ) {
1856
- switch ( *__acts++ ) {
1857
- case 23:
1858
- #line 207 "ragel/i18n/uk.c.rl"
1859
- {
1860
- int line;
1861
- if (cs < lexer_first_final) {
1862
- size_t count = 0;
1863
- VALUE newstr_val;
1864
- char *newstr;
1865
- int newstr_count = 0;
1866
- size_t len;
1867
- const char *buff;
1868
- if (lexer->last_newline != 0) {
1869
- len = LEN(last_newline, eof);
1870
- buff = PTR_TO(last_newline);
1871
- } else {
1872
- len = strlen(data);
1873
- buff = data;
1874
- }
1875
-
1876
- /* Allocate as a ruby string so that it gets cleaned up by GC */
1877
- newstr_val = rb_str_new(buff, len);
1878
- newstr = RSTRING_PTR(newstr_val);
1879
-
1880
-
1881
- for (count = 0; count < len; count++) {
1882
- if(buff[count] == 10) {
1883
- newstr[newstr_count] = '\0'; /* terminate new string at first newline found */
1884
- break;
1885
- } else {
1886
- if (buff[count] == '%') {
1887
- newstr[newstr_count++] = buff[count];
1888
- newstr[newstr_count] = buff[count];
1889
- } else {
1890
- newstr[newstr_count] = buff[count];
1891
- }
1892
- }
1893
- newstr_count++;
1894
- }
1895
-
1896
- line = lexer->line_number;
1897
- lexer_init(lexer); /* Re-initialize so we can scan again with the same lexer */
1898
- raise_lexer_error(newstr, line);
1899
- } else {
1900
- rb_funcall(listener, rb_intern("eof"), 0);
1901
- }
1902
- }
1903
- break;
1904
- #line 1905 "ext/gherkin_lexer_uk/gherkin_lexer_uk.c"
1905
- }
1906
- }
1907
- }
1908
-
1909
- _out: {}
1910
- }
1911
-
1912
- #line 426 "ragel/i18n/uk.c.rl"
1913
-
1914
- assert(p <= pe && "data overflow after parsing execute");
1915
- assert(lexer->content_start <= len && "content starts after data end");
1916
- assert(lexer->mark < len && "mark is after data end");
1917
-
1918
- /* Reset lexer by re-initializing the whole thing */
1919
- lexer_init(lexer);
1920
-
1921
- if (cs == lexer_error) {
1922
- rb_raise(rb_eGherkinLexingError, "Invalid format, lexing fails.");
1923
- } else {
1924
- return Qtrue;
1925
- }
1926
- }
1927
- }
1928
-
1929
- void Init_gherkin_lexer_uk()
1930
- {
1931
- mGherkin = rb_define_module("Gherkin");
1932
- mGherkinLexer = rb_define_module_under(mGherkin, "Lexer");
1933
- rb_eGherkinLexingError = rb_const_get(mGherkinLexer, rb_intern("LexingError"));
1934
-
1935
- mCLexer = rb_define_module_under(mGherkin, "CLexer");
1936
- cI18nLexer = rb_define_class_under(mCLexer, "Uk", rb_cObject);
1937
- rb_define_alloc_func(cI18nLexer, CLexer_alloc);
1938
- rb_define_method(cI18nLexer, "initialize", CLexer_init, 1);
1939
- rb_define_method(cI18nLexer, "scan", CLexer_scan, 1);
1940
- }
1941
-