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