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