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