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