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