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