benhamill-gherkin 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. data/.gitattributes +2 -0
  2. data/.gitignore +11 -0
  3. data/.mailmap +2 -0
  4. data/.rspec +1 -0
  5. data/.rvmrc +1 -0
  6. data/Gemfile +7 -0
  7. data/History.txt +363 -0
  8. data/LICENSE +20 -0
  9. data/README.rdoc +149 -0
  10. data/Rakefile +19 -0
  11. data/VERSION +1 -0
  12. data/build_native_gems.sh +8 -0
  13. data/cucumber.yml +3 -0
  14. data/features/escaped_pipes.feature +8 -0
  15. data/features/feature_parser.feature +237 -0
  16. data/features/json_formatter.feature +377 -0
  17. data/features/json_parser.feature +318 -0
  18. data/features/native_lexer.feature +19 -0
  19. data/features/parser_with_native_lexer.feature +205 -0
  20. data/features/pretty_formatter.feature +15 -0
  21. data/features/step_definitions/eyeball_steps.rb +3 -0
  22. data/features/step_definitions/gherkin_steps.rb +29 -0
  23. data/features/step_definitions/json_formatter_steps.rb +28 -0
  24. data/features/step_definitions/json_parser_steps.rb +20 -0
  25. data/features/step_definitions/pretty_formatter_steps.rb +84 -0
  26. data/features/steps_parser.feature +46 -0
  27. data/features/support/env.rb +38 -0
  28. data/gherkin.gemspec +61 -0
  29. data/ikvm/.gitignore +3 -0
  30. data/java/.gitignore +5 -0
  31. data/java/src/main/java/gherkin/lexer/i18n/.gitignore +1 -0
  32. data/java/src/main/resources/gherkin/.gitignore +1 -0
  33. data/js/lib/gherkin/lexer/i18n/ar.js +1094 -0
  34. data/js/lib/gherkin/lexer/i18n/bg.js +1308 -0
  35. data/js/lib/gherkin/lexer/i18n/ca.js +1236 -0
  36. data/js/lib/gherkin/lexer/i18n/cs.js +1090 -0
  37. data/js/lib/gherkin/lexer/i18n/cy_gb.js +958 -0
  38. data/js/lib/gherkin/lexer/i18n/da.js +974 -0
  39. data/js/lib/gherkin/lexer/i18n/de.js +1082 -0
  40. data/js/lib/gherkin/lexer/i18n/en.js +965 -0
  41. data/js/lib/gherkin/lexer/i18n/en_au.js +902 -0
  42. data/js/lib/gherkin/lexer/i18n/en_lol.js +859 -0
  43. data/js/lib/gherkin/lexer/i18n/en_pirate.js +1136 -0
  44. data/js/lib/gherkin/lexer/i18n/en_scouse.js +1289 -0
  45. data/js/lib/gherkin/lexer/i18n/en_tx.js +942 -0
  46. data/js/lib/gherkin/lexer/i18n/eo.js +916 -0
  47. data/js/lib/gherkin/lexer/i18n/es.js +1049 -0
  48. data/js/lib/gherkin/lexer/i18n/et.js +915 -0
  49. data/js/lib/gherkin/lexer/i18n/fi.js +894 -0
  50. data/js/lib/gherkin/lexer/i18n/fr.js +1116 -0
  51. data/js/lib/gherkin/lexer/i18n/he.js +1044 -0
  52. data/js/lib/gherkin/lexer/i18n/hr.js +994 -0
  53. data/js/lib/gherkin/lexer/i18n/hu.js +1043 -0
  54. data/js/lib/gherkin/lexer/i18n/id.js +884 -0
  55. data/js/lib/gherkin/lexer/i18n/it.js +1007 -0
  56. data/js/lib/gherkin/lexer/i18n/ja.js +1344 -0
  57. data/js/lib/gherkin/lexer/i18n/ko.js +1028 -0
  58. data/js/lib/gherkin/lexer/i18n/lt.js +972 -0
  59. data/js/lib/gherkin/lexer/i18n/lu.js +1057 -0
  60. data/js/lib/gherkin/lexer/i18n/lv.js +1092 -0
  61. data/js/lib/gherkin/lexer/i18n/nl.js +1036 -0
  62. data/js/lib/gherkin/lexer/i18n/no.js +986 -0
  63. data/js/lib/gherkin/lexer/i18n/pl.js +1140 -0
  64. data/js/lib/gherkin/lexer/i18n/pt.js +1000 -0
  65. data/js/lib/gherkin/lexer/i18n/ro.js +1089 -0
  66. data/js/lib/gherkin/lexer/i18n/ru.js +1560 -0
  67. data/js/lib/gherkin/lexer/i18n/sk.js +972 -0
  68. data/js/lib/gherkin/lexer/i18n/sr_cyrl.js +1728 -0
  69. data/js/lib/gherkin/lexer/i18n/sr_latn.js +1220 -0
  70. data/js/lib/gherkin/lexer/i18n/sv.js +997 -0
  71. data/js/lib/gherkin/lexer/i18n/tr.js +1014 -0
  72. data/js/lib/gherkin/lexer/i18n/uk.js +1572 -0
  73. data/js/lib/gherkin/lexer/i18n/uz.js +1302 -0
  74. data/js/lib/gherkin/lexer/i18n/vi.js +1124 -0
  75. data/js/lib/gherkin/lexer/i18n/zh_cn.js +902 -0
  76. data/js/lib/gherkin/lexer/i18n/zh_tw.js +940 -0
  77. data/lib/.gitignore +4 -0
  78. data/lib/gherkin.rb +2 -0
  79. data/lib/gherkin/c_lexer.rb +17 -0
  80. data/lib/gherkin/formatter/ansi_escapes.rb +95 -0
  81. data/lib/gherkin/formatter/argument.rb +16 -0
  82. data/lib/gherkin/formatter/escaping.rb +15 -0
  83. data/lib/gherkin/formatter/filter_formatter.rb +136 -0
  84. data/lib/gherkin/formatter/hashable.rb +19 -0
  85. data/lib/gherkin/formatter/json_formatter.rb +102 -0
  86. data/lib/gherkin/formatter/line_filter.rb +26 -0
  87. data/lib/gherkin/formatter/model.rb +236 -0
  88. data/lib/gherkin/formatter/pretty_formatter.rb +243 -0
  89. data/lib/gherkin/formatter/regexp_filter.rb +21 -0
  90. data/lib/gherkin/formatter/step_printer.rb +17 -0
  91. data/lib/gherkin/formatter/tag_count_formatter.rb +47 -0
  92. data/lib/gherkin/formatter/tag_filter.rb +19 -0
  93. data/lib/gherkin/i18n.rb +175 -0
  94. data/lib/gherkin/i18n.yml +588 -0
  95. data/lib/gherkin/json_parser.rb +137 -0
  96. data/lib/gherkin/lexer/i18n_lexer.rb +47 -0
  97. data/lib/gherkin/listener/event.rb +45 -0
  98. data/lib/gherkin/listener/formatter_listener.rb +113 -0
  99. data/lib/gherkin/native.rb +7 -0
  100. data/lib/gherkin/native/ikvm.rb +55 -0
  101. data/lib/gherkin/native/java.rb +55 -0
  102. data/lib/gherkin/native/null.rb +9 -0
  103. data/lib/gherkin/parser/meta.txt +5 -0
  104. data/lib/gherkin/parser/parser.rb +164 -0
  105. data/lib/gherkin/parser/root.txt +11 -0
  106. data/lib/gherkin/parser/steps.txt +4 -0
  107. data/lib/gherkin/rb_lexer.rb +8 -0
  108. data/lib/gherkin/rb_lexer/.gitignore +1 -0
  109. data/lib/gherkin/rb_lexer/README.rdoc +8 -0
  110. data/lib/gherkin/rubify.rb +24 -0
  111. data/lib/gherkin/tag_expression.rb +62 -0
  112. data/lib/gherkin/version.rb +3 -0
  113. data/ragel/i18n/.gitignore +1 -0
  114. data/ragel/lexer.c.rl.erb +439 -0
  115. data/ragel/lexer.java.rl.erb +208 -0
  116. data/ragel/lexer.rb.rl.erb +167 -0
  117. data/ragel/lexer_common.rl.erb +50 -0
  118. data/spec/gherkin/c_lexer_spec.rb +21 -0
  119. data/spec/gherkin/fixtures/1.feature +8 -0
  120. data/spec/gherkin/fixtures/comments_in_table.feature +9 -0
  121. data/spec/gherkin/fixtures/complex.feature +45 -0
  122. data/spec/gherkin/fixtures/complex.json +143 -0
  123. data/spec/gherkin/fixtures/complex_for_filtering.feature +60 -0
  124. data/spec/gherkin/fixtures/complex_with_tags.feature +61 -0
  125. data/spec/gherkin/fixtures/dos_line_endings.feature +45 -0
  126. data/spec/gherkin/fixtures/hantu_pisang.feature +35 -0
  127. data/spec/gherkin/fixtures/i18n_fr.feature +14 -0
  128. data/spec/gherkin/fixtures/i18n_no.feature +7 -0
  129. data/spec/gherkin/fixtures/i18n_zh-CN.feature +9 -0
  130. data/spec/gherkin/fixtures/scenario_outline_with_tags.feature +13 -0
  131. data/spec/gherkin/fixtures/scenario_without_steps.feature +5 -0
  132. data/spec/gherkin/fixtures/simple_with_comments.feature +7 -0
  133. data/spec/gherkin/fixtures/simple_with_tags.feature +11 -0
  134. data/spec/gherkin/fixtures/with_bom.feature +3 -0
  135. data/spec/gherkin/formatter/ansi_escapes_spec.rb +19 -0
  136. data/spec/gherkin/formatter/filter_formatter_spec.rb +165 -0
  137. data/spec/gherkin/formatter/model_spec.rb +28 -0
  138. data/spec/gherkin/formatter/pretty_formatter_spec.rb +158 -0
  139. data/spec/gherkin/formatter/spaces.feature +9 -0
  140. data/spec/gherkin/formatter/step_printer_spec.rb +55 -0
  141. data/spec/gherkin/formatter/tabs.feature +9 -0
  142. data/spec/gherkin/formatter/tag_count_formatter_spec.rb +30 -0
  143. data/spec/gherkin/i18n_spec.rb +152 -0
  144. data/spec/gherkin/java_lexer_spec.rb +20 -0
  145. data/spec/gherkin/java_libs.rb +20 -0
  146. data/spec/gherkin/json_parser_spec.rb +113 -0
  147. data/spec/gherkin/lexer/i18n_lexer_spec.rb +43 -0
  148. data/spec/gherkin/output_stream_string_io.rb +20 -0
  149. data/spec/gherkin/parser/parser_spec.rb +16 -0
  150. data/spec/gherkin/rb_lexer_spec.rb +19 -0
  151. data/spec/gherkin/sexp_recorder.rb +56 -0
  152. data/spec/gherkin/shared/lexer_group.rb +593 -0
  153. data/spec/gherkin/shared/py_string_group.rb +153 -0
  154. data/spec/gherkin/shared/row_group.rb +125 -0
  155. data/spec/gherkin/shared/tags_group.rb +54 -0
  156. data/spec/gherkin/tag_expression_spec.rb +137 -0
  157. data/spec/spec_helper.rb +69 -0
  158. data/tasks/bench.rake +184 -0
  159. data/tasks/bench/feature_builder.rb +49 -0
  160. data/tasks/bench/generated/.gitignore +1 -0
  161. data/tasks/bench/null_listener.rb +4 -0
  162. data/tasks/compile.rake +102 -0
  163. data/tasks/cucumber.rake +20 -0
  164. data/tasks/gems.rake +35 -0
  165. data/tasks/ikvm.rake +79 -0
  166. data/tasks/ragel_task.rb +70 -0
  167. data/tasks/rdoc.rake +9 -0
  168. data/tasks/release.rake +30 -0
  169. data/tasks/rspec.rake +8 -0
  170. metadata +609 -0
@@ -0,0 +1,1236 @@
1
+
2
+ /* line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
3
+ ;(function() {
4
+
5
+
6
+ /* line 107 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
7
+
8
+
9
+
10
+ /* line 11 "js/lib/gherkin/lexer/i18n/ca.js" */
11
+ const _lexer_actions = [
12
+ 0, 1, 0, 1, 1, 1, 2, 1,
13
+ 3, 1, 4, 1, 5, 1, 6, 1,
14
+ 7, 1, 8, 1, 9, 1, 10, 1,
15
+ 11, 1, 14, 1, 15, 1, 16, 1,
16
+ 17, 1, 18, 1, 19, 1, 20, 1,
17
+ 21, 2, 2, 16, 2, 11, 0, 2,
18
+ 12, 13, 2, 15, 0, 2, 15, 1,
19
+ 2, 15, 14, 2, 15, 17, 2, 16,
20
+ 4, 2, 16, 5, 2, 16, 6, 2,
21
+ 16, 7, 2, 16, 8, 2, 16, 14,
22
+ 2, 18, 19, 2, 20, 0, 2, 20,
23
+ 1, 2, 20, 14, 2, 20, 17, 3,
24
+ 3, 12, 13, 3, 9, 12, 13, 3,
25
+ 10, 12, 13, 3, 11, 12, 13, 3,
26
+ 12, 13, 16, 3, 15, 12, 13, 4,
27
+ 2, 12, 13, 16, 4, 15, 0, 12,
28
+ 13
29
+ ];
30
+
31
+ const _lexer_key_offsets = [
32
+ 0, 0, 20, 39, 40, 41, 45, 50,
33
+ 55, 60, 65, 69, 73, 75, 76, 77,
34
+ 78, 79, 80, 81, 82, 83, 84, 85,
35
+ 86, 87, 88, 89, 90, 91, 92, 94,
36
+ 99, 106, 111, 114, 115, 116, 117, 118,
37
+ 119, 120, 121, 122, 123, 124, 125, 126,
38
+ 127, 128, 129, 130, 131, 132, 133, 149,
39
+ 151, 153, 155, 157, 159, 161, 163, 165,
40
+ 167, 169, 171, 173, 175, 177, 179, 198,
41
+ 199, 201, 202, 203, 204, 205, 206, 207,
42
+ 208, 209, 210, 211, 212, 213, 214, 215,
43
+ 216, 228, 230, 232, 234, 236, 238, 240,
44
+ 242, 244, 246, 248, 250, 252, 254, 256,
45
+ 258, 260, 262, 264, 266, 268, 270, 272,
46
+ 274, 276, 278, 280, 282, 284, 286, 288,
47
+ 290, 292, 294, 296, 298, 300, 302, 304,
48
+ 306, 309, 312, 314, 316, 318, 320, 322,
49
+ 324, 326, 328, 330, 332, 334, 336, 338,
50
+ 340, 342, 344, 346, 348, 350, 352, 354,
51
+ 356, 358, 360, 362, 364, 366, 368, 370,
52
+ 372, 374, 376, 378, 380, 382, 384, 386,
53
+ 388, 390, 392, 394, 395, 396, 397, 399,
54
+ 400, 402, 404, 405, 406, 407, 408, 409,
55
+ 410, 411, 412, 429, 431, 433, 435, 437,
56
+ 439, 441, 443, 445, 447, 449, 451, 453,
57
+ 455, 457, 459, 463, 465, 467, 469, 471,
58
+ 473, 475, 477, 479, 481, 483, 485, 487,
59
+ 489, 491, 493, 495, 497, 500, 502, 504,
60
+ 506, 508, 511, 513, 515, 517, 519, 521,
61
+ 523, 525, 527, 529, 531, 533, 535, 537,
62
+ 539, 541, 544, 546, 549, 551, 553, 555,
63
+ 557, 559, 561, 563, 565, 567, 569, 571,
64
+ 573, 575, 577, 579, 581, 583, 585, 587,
65
+ 589, 591, 593, 595, 597, 599, 601, 603,
66
+ 605, 607, 609, 611, 613, 615, 617, 619,
67
+ 621, 623, 625, 627, 629, 631, 633, 635,
68
+ 636, 637, 638, 639, 640, 641, 642, 643,
69
+ 644, 645, 646, 647, 648, 649, 650, 651,
70
+ 652, 653, 654, 655, 656, 672, 674, 676,
71
+ 678, 680, 682, 684, 686, 688, 690, 692,
72
+ 694, 696, 698, 700, 702, 705, 707, 709,
73
+ 711, 713, 715, 717, 719, 722, 724, 726,
74
+ 728, 730, 733, 735, 737, 739, 741, 743,
75
+ 745, 747, 749, 751, 753, 755, 757, 759,
76
+ 761, 763, 765, 768, 770, 772, 774, 776,
77
+ 778, 780, 782, 784, 786, 788, 790, 792,
78
+ 794, 796, 798, 800, 802, 804, 806, 808,
79
+ 810, 812, 814, 816, 818, 820, 821, 822,
80
+ 823, 824, 825, 826, 827, 828, 829, 837,
81
+ 839, 841, 843, 845, 847, 849, 851, 853,
82
+ 855, 857, 859, 861, 863, 865, 867, 869,
83
+ 871, 873, 875, 877, 879, 881, 883, 885,
84
+ 887, 889, 891, 892, 893, 894, 895, 896,
85
+ 897, 898, 899, 900, 901, 902, 903, 904,
86
+ 905, 906, 907, 908, 909, 910, 911, 912,
87
+ 913, 914, 915, 916, 920, 926, 929, 931,
88
+ 937, 956, 959, 961, 963, 965, 967, 969,
89
+ 971, 973, 976, 978, 980, 982, 984, 987,
90
+ 989, 991, 993, 995, 997, 999, 1001, 1003,
91
+ 1005, 1007, 1009, 1011, 1013, 1015, 1017, 1019,
92
+ 1022, 1024, 1027, 1029, 1031, 1033, 1035, 1037,
93
+ 1039, 1041, 1043, 1045, 1047, 1049, 1051, 1053,
94
+ 1055, 1057, 1059, 1061, 1063, 1065, 1067, 1069,
95
+ 1071, 1073, 1075, 1077, 1079, 1081, 1083, 1085,
96
+ 1087, 1089, 1091, 1093, 1095, 1097, 1099, 1101,
97
+ 1103, 1104, 1105, 1106, 1107
98
+ ];
99
+
100
+ const _lexer_trans_keys = [
101
+ 10, 32, 34, 35, 37, 42, 64, 65,
102
+ 67, 68, 69, 70, 73, 80, 81, 82,
103
+ 124, 239, 9, 13, 10, 32, 34, 35,
104
+ 37, 42, 64, 65, 67, 68, 69, 70,
105
+ 73, 80, 81, 82, 124, 9, 13, 34,
106
+ 34, 10, 32, 9, 13, 10, 32, 34,
107
+ 9, 13, 10, 32, 34, 9, 13, 10,
108
+ 32, 34, 9, 13, 10, 32, 34, 9,
109
+ 13, 10, 32, 9, 13, 10, 32, 9,
110
+ 13, 10, 13, 10, 95, 70, 69, 65,
111
+ 84, 85, 82, 69, 95, 69, 78, 68,
112
+ 95, 37, 32, 10, 10, 13, 13, 32,
113
+ 64, 9, 10, 9, 10, 13, 32, 64,
114
+ 11, 12, 10, 32, 64, 9, 13, 108,
115
+ 110, 116, 101, 115, 104, 111, 114, 101,
116
+ 115, 116, 101, 99, 101, 100, 101, 110,
117
+ 116, 115, 58, 10, 10, 10, 32, 35,
118
+ 37, 42, 64, 65, 67, 68, 69, 70,
119
+ 73, 80, 81, 9, 13, 10, 95, 10,
120
+ 70, 10, 69, 10, 65, 10, 84, 10,
121
+ 85, 10, 82, 10, 69, 10, 95, 10,
122
+ 69, 10, 78, 10, 68, 10, 95, 10,
123
+ 37, 10, 32, 10, 32, 34, 35, 37,
124
+ 42, 64, 65, 67, 68, 69, 70, 73,
125
+ 80, 81, 82, 124, 9, 13, 97, 108,
126
+ 114, 97, 99, 116, 101, 114, -61, -83,
127
+ 115, 116, 105, 99, 97, 58, 10, 10,
128
+ 10, 32, 35, 37, 64, 65, 67, 69,
129
+ 70, 82, 9, 13, 10, 95, 10, 70,
130
+ 10, 69, 10, 65, 10, 84, 10, 85,
131
+ 10, 82, 10, 69, 10, 95, 10, 69,
132
+ 10, 78, 10, 68, 10, 95, 10, 37,
133
+ 10, 110, 10, 116, 10, 101, 10, 99,
134
+ 10, 101, 10, 100, 10, 101, 10, 110,
135
+ 10, 116, 10, 115, 10, 58, 10, 97,
136
+ 10, 114, 10, 97, 10, 99, 10, 116,
137
+ 10, 101, 10, 114, -61, 10, -83, 10,
138
+ 10, 115, 10, 116, 10, 105, 10, 99,
139
+ 10, 97, 10, 115, 120, 10, 99, 113,
140
+ 10, 101, 10, 110, 10, 97, 10, 114,
141
+ 10, 105, 10, 117, 10, 101, 10, 109,
142
+ 10, 97, 10, 32, 10, 100, 10, 101,
143
+ 10, 32, 10, 108, 10, 39, 10, 101,
144
+ 10, 115, 10, 99, 10, 101, 10, 109,
145
+ 10, 112, 10, 108, 10, 101, 10, 117,
146
+ 10, 110, 10, 99, 10, 105, 10, 111,
147
+ 10, 110, 10, 97, 10, 108, 10, 105,
148
+ 10, 116, 10, 97, 10, 116, 10, 101,
149
+ 10, 114, 10, 101, 10, 102, 10, 111,
150
+ 10, 110, 111, 110, 97, 100, 116, 97,
151
+ 115, 120, 99, 113, 101, 110, 97, 114,
152
+ 105, 58, 10, 10, 10, 32, 35, 37,
153
+ 42, 64, 65, 67, 68, 69, 70, 73,
154
+ 80, 81, 82, 9, 13, 10, 95, 10,
155
+ 70, 10, 69, 10, 65, 10, 84, 10,
156
+ 85, 10, 82, 10, 69, 10, 95, 10,
157
+ 69, 10, 78, 10, 68, 10, 95, 10,
158
+ 37, 10, 32, 10, 108, 110, 116, 10,
159
+ 101, 10, 115, 10, 104, 10, 111, 10,
160
+ 114, 10, 101, 10, 115, 10, 116, 10,
161
+ 101, 10, 99, 10, 101, 10, 100, 10,
162
+ 101, 10, 110, 10, 116, 10, 115, 10,
163
+ 58, -61, 10, 101, -88, 10, 10, 115,
164
+ 10, 97, 10, 97, 10, 108, 114, 10,
165
+ 97, 10, 99, 10, 116, 10, 101, 10,
166
+ 114, -61, 10, -83, 10, 10, 115, 10,
167
+ 116, 10, 105, 10, 99, 10, 97, 10,
168
+ 111, 10, 110, 10, 97, 10, 100, 116,
169
+ 10, 115, 10, 99, 113, 10, 101, 10,
170
+ 110, 10, 97, 10, 114, 10, 105, 10,
171
+ 117, 10, 101, 10, 109, 10, 97, 10,
172
+ 32, 10, 100, 10, 101, 10, 32, 10,
173
+ 108, 10, 39, 10, 101, 10, 115, 10,
174
+ 99, 10, 117, 10, 110, 10, 99, 10,
175
+ 105, 10, 111, 10, 110, 10, 97, 10,
176
+ 108, 10, 105, 10, 116, 10, 97, 10,
177
+ 116, 10, 101, 10, 114, -61, 10, -78,
178
+ 10, 10, 117, 10, 97, 10, 110, 10,
179
+ 101, 10, 114, 10, 101, 10, 102, 10,
180
+ 111, 10, 110, 117, 101, 109, 97, 32,
181
+ 100, 101, 32, 108, 39, 101, 115, 99,
182
+ 101, 110, 97, 114, 105, 58, 10, 10,
183
+ 10, 32, 35, 37, 42, 64, 65, 67,
184
+ 68, 69, 70, 73, 80, 81, 9, 13,
185
+ 10, 95, 10, 70, 10, 69, 10, 65,
186
+ 10, 84, 10, 85, 10, 82, 10, 69,
187
+ 10, 95, 10, 69, 10, 78, 10, 68,
188
+ 10, 95, 10, 37, 10, 32, 10, 108,
189
+ 116, 10, 101, 10, 115, 10, 104, 10,
190
+ 111, 10, 114, 10, 101, 10, 115, -61,
191
+ 10, 101, -88, 10, 10, 115, 10, 97,
192
+ 10, 97, 10, 108, 114, 10, 97, 10,
193
+ 99, 10, 116, 10, 101, 10, 114, -61,
194
+ 10, -83, 10, 10, 115, 10, 116, 10,
195
+ 105, 10, 99, 10, 97, 10, 58, 10,
196
+ 111, 10, 110, 10, 97, 10, 100, 116,
197
+ 10, 115, 10, 99, 10, 101, 10, 110,
198
+ 10, 97, 10, 114, 10, 105, 10, 117,
199
+ 10, 110, 10, 99, 10, 105, 10, 111,
200
+ 10, 110, 10, 97, 10, 108, 10, 105,
201
+ 10, 116, 10, 97, 10, 116, 10, 101,
202
+ 10, 114, -61, 10, -78, 10, 10, 117,
203
+ 10, 97, 10, 110, 101, 109, 112, 108,
204
+ 101, 115, 58, 10, 10, 10, 32, 35,
205
+ 67, 70, 124, 9, 13, 10, 97, 10,
206
+ 114, 10, 97, 10, 99, 10, 116, 10,
207
+ 101, 10, 114, -61, 10, -83, 10, 10,
208
+ 115, 10, 116, 10, 105, 10, 99, 10,
209
+ 97, 10, 58, 10, 117, 10, 110, 10,
210
+ 99, 10, 105, 10, 111, 10, 110, 10,
211
+ 97, 10, 108, 10, 105, 10, 116, 10,
212
+ 97, 10, 116, 117, 110, 99, 105, 111,
213
+ 110, 97, 108, 105, 116, 97, 116, 101,
214
+ 114, -61, -78, 117, 97, 110, 101, 114,
215
+ 101, 102, 111, 110, 32, 124, 9, 13,
216
+ 10, 32, 92, 124, 9, 13, 10, 92,
217
+ 124, 10, 92, 10, 32, 92, 124, 9,
218
+ 13, 10, 32, 34, 35, 37, 42, 64,
219
+ 65, 67, 68, 69, 70, 73, 80, 81,
220
+ 82, 124, 9, 13, 10, 108, 116, 10,
221
+ 101, 10, 115, 10, 104, 10, 111, 10,
222
+ 114, 10, 101, 10, 115, -61, 10, 101,
223
+ -88, 10, 10, 115, 10, 97, 10, 97,
224
+ 10, 108, 114, 10, 97, 10, 99, 10,
225
+ 116, 10, 101, 10, 114, -61, 10, -83,
226
+ 10, 10, 115, 10, 116, 10, 105, 10,
227
+ 99, 10, 97, 10, 58, 10, 111, 10,
228
+ 110, 10, 97, 10, 100, 116, 10, 115,
229
+ 10, 99, 113, 10, 101, 10, 110, 10,
230
+ 97, 10, 114, 10, 105, 10, 117, 10,
231
+ 101, 10, 109, 10, 97, 10, 32, 10,
232
+ 100, 10, 101, 10, 32, 10, 108, 10,
233
+ 39, 10, 101, 10, 115, 10, 99, 10,
234
+ 117, 10, 110, 10, 99, 10, 105, 10,
235
+ 111, 10, 110, 10, 97, 10, 108, 10,
236
+ 105, 10, 116, 10, 97, 10, 116, 10,
237
+ 101, 10, 114, -61, 10, -78, 10, 10,
238
+ 117, 10, 97, 10, 110, -61, 101, -88,
239
+ 115, 187, 191, 0
240
+ ];
241
+
242
+ const _lexer_single_lengths = [
243
+ 0, 18, 17, 1, 1, 2, 3, 3,
244
+ 3, 3, 2, 2, 2, 1, 1, 1,
245
+ 1, 1, 1, 1, 1, 1, 1, 1,
246
+ 1, 1, 1, 1, 1, 1, 2, 3,
247
+ 5, 3, 3, 1, 1, 1, 1, 1,
248
+ 1, 1, 1, 1, 1, 1, 1, 1,
249
+ 1, 1, 1, 1, 1, 1, 14, 2,
250
+ 2, 2, 2, 2, 2, 2, 2, 2,
251
+ 2, 2, 2, 2, 2, 2, 17, 1,
252
+ 2, 1, 1, 1, 1, 1, 1, 1,
253
+ 1, 1, 1, 1, 1, 1, 1, 1,
254
+ 10, 2, 2, 2, 2, 2, 2, 2,
255
+ 2, 2, 2, 2, 2, 2, 2, 2,
256
+ 2, 2, 2, 2, 2, 2, 2, 2,
257
+ 2, 2, 2, 2, 2, 2, 2, 2,
258
+ 2, 2, 2, 2, 2, 2, 2, 2,
259
+ 3, 3, 2, 2, 2, 2, 2, 2,
260
+ 2, 2, 2, 2, 2, 2, 2, 2,
261
+ 2, 2, 2, 2, 2, 2, 2, 2,
262
+ 2, 2, 2, 2, 2, 2, 2, 2,
263
+ 2, 2, 2, 2, 2, 2, 2, 2,
264
+ 2, 2, 2, 1, 1, 1, 2, 1,
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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
378
+ ];
379
+
380
+ const _lexer_index_offsets = [
381
+ 0, 0, 20, 39, 41, 43, 47, 52,
382
+ 57, 62, 67, 71, 75, 78, 80, 82,
383
+ 84, 86, 88, 90, 92, 94, 96, 98,
384
+ 100, 102, 104, 106, 108, 110, 112, 115,
385
+ 120, 127, 132, 136, 138, 140, 142, 144,
386
+ 146, 148, 150, 152, 154, 156, 158, 160,
387
+ 162, 164, 166, 168, 170, 172, 174, 190,
388
+ 193, 196, 199, 202, 205, 208, 211, 214,
389
+ 217, 220, 223, 226, 229, 232, 235, 254,
390
+ 256, 259, 261, 263, 265, 267, 269, 271,
391
+ 273, 275, 277, 279, 281, 283, 285, 287,
392
+ 289, 301, 304, 307, 310, 313, 316, 319,
393
+ 322, 325, 328, 331, 334, 337, 340, 343,
394
+ 346, 349, 352, 355, 358, 361, 364, 367,
395
+ 370, 373, 376, 379, 382, 385, 388, 391,
396
+ 394, 397, 400, 403, 406, 409, 412, 415,
397
+ 418, 422, 426, 429, 432, 435, 438, 441,
398
+ 444, 447, 450, 453, 456, 459, 462, 465,
399
+ 468, 471, 474, 477, 480, 483, 486, 489,
400
+ 492, 495, 498, 501, 504, 507, 510, 513,
401
+ 516, 519, 522, 525, 528, 531, 534, 537,
402
+ 540, 543, 546, 549, 551, 553, 555, 558,
403
+ 560, 563, 566, 568, 570, 572, 574, 576,
404
+ 578, 580, 582, 599, 602, 605, 608, 611,
405
+ 614, 617, 620, 623, 626, 629, 632, 635,
406
+ 638, 641, 644, 649, 652, 655, 658, 661,
407
+ 664, 667, 670, 673, 676, 679, 682, 685,
408
+ 688, 691, 694, 697, 700, 704, 707, 710,
409
+ 713, 716, 720, 723, 726, 729, 732, 735,
410
+ 738, 741, 744, 747, 750, 753, 756, 759,
411
+ 762, 765, 769, 772, 776, 779, 782, 785,
412
+ 788, 791, 794, 797, 800, 803, 806, 809,
413
+ 812, 815, 818, 821, 824, 827, 830, 833,
414
+ 836, 839, 842, 845, 848, 851, 854, 857,
415
+ 860, 863, 866, 869, 872, 875, 878, 881,
416
+ 884, 887, 890, 893, 896, 899, 902, 905,
417
+ 907, 909, 911, 913, 915, 917, 919, 921,
418
+ 923, 925, 927, 929, 931, 933, 935, 937,
419
+ 939, 941, 943, 945, 947, 963, 966, 969,
420
+ 972, 975, 978, 981, 984, 987, 990, 993,
421
+ 996, 999, 1002, 1005, 1008, 1012, 1015, 1018,
422
+ 1021, 1024, 1027, 1030, 1033, 1037, 1040, 1043,
423
+ 1046, 1049, 1053, 1056, 1059, 1062, 1065, 1068,
424
+ 1071, 1074, 1077, 1080, 1083, 1086, 1089, 1092,
425
+ 1095, 1098, 1101, 1105, 1108, 1111, 1114, 1117,
426
+ 1120, 1123, 1126, 1129, 1132, 1135, 1138, 1141,
427
+ 1144, 1147, 1150, 1153, 1156, 1159, 1162, 1165,
428
+ 1168, 1171, 1174, 1177, 1180, 1183, 1185, 1187,
429
+ 1189, 1191, 1193, 1195, 1197, 1199, 1201, 1209,
430
+ 1212, 1215, 1218, 1221, 1224, 1227, 1230, 1233,
431
+ 1236, 1239, 1242, 1245, 1248, 1251, 1254, 1257,
432
+ 1260, 1263, 1266, 1269, 1272, 1275, 1278, 1281,
433
+ 1284, 1287, 1290, 1292, 1294, 1296, 1298, 1300,
434
+ 1302, 1304, 1306, 1308, 1310, 1312, 1314, 1316,
435
+ 1318, 1320, 1322, 1324, 1326, 1328, 1330, 1332,
436
+ 1334, 1336, 1338, 1340, 1344, 1350, 1354, 1357,
437
+ 1363, 1382, 1386, 1389, 1392, 1395, 1398, 1401,
438
+ 1404, 1407, 1411, 1414, 1417, 1420, 1423, 1427,
439
+ 1430, 1433, 1436, 1439, 1442, 1445, 1448, 1451,
440
+ 1454, 1457, 1460, 1463, 1466, 1469, 1472, 1475,
441
+ 1479, 1482, 1486, 1489, 1492, 1495, 1498, 1501,
442
+ 1504, 1507, 1510, 1513, 1516, 1519, 1522, 1525,
443
+ 1528, 1531, 1534, 1537, 1540, 1543, 1546, 1549,
444
+ 1552, 1555, 1558, 1561, 1564, 1567, 1570, 1573,
445
+ 1576, 1579, 1582, 1585, 1588, 1591, 1594, 1597,
446
+ 1600, 1602, 1604, 1606, 1608
447
+ ];
448
+
449
+ const _lexer_indicies = [
450
+ 2, 1, 3, 4, 5, 6, 7, 8,
451
+ 9, 10, 11, 12, 6, 13, 14, 15,
452
+ 16, 17, 1, 0, 2, 1, 3, 4,
453
+ 5, 6, 7, 8, 9, 10, 11, 12,
454
+ 6, 13, 14, 15, 16, 1, 0, 18,
455
+ 0, 19, 0, 20, 19, 19, 0, 23,
456
+ 22, 24, 22, 21, 27, 26, 28, 26,
457
+ 25, 27, 26, 29, 26, 25, 27, 26,
458
+ 30, 26, 25, 32, 31, 31, 0, 2,
459
+ 33, 33, 0, 35, 36, 34, 2, 0,
460
+ 37, 0, 38, 0, 39, 0, 40, 0,
461
+ 41, 0, 42, 0, 43, 0, 44, 0,
462
+ 45, 0, 46, 0, 47, 0, 48, 0,
463
+ 49, 0, 50, 0, 51, 0, 0, 52,
464
+ 54, 55, 53, 0, 0, 0, 0, 56,
465
+ 57, 58, 57, 57, 60, 59, 56, 2,
466
+ 61, 7, 61, 0, 62, 63, 64, 0,
467
+ 65, 0, 66, 0, 67, 0, 68, 0,
468
+ 69, 0, 70, 0, 71, 0, 72, 0,
469
+ 73, 0, 74, 0, 75, 0, 76, 0,
470
+ 77, 0, 78, 0, 79, 0, 80, 0,
471
+ 81, 0, 83, 82, 85, 84, 85, 86,
472
+ 87, 88, 89, 87, 90, 91, 92, 93,
473
+ 94, 89, 95, 96, 86, 84, 85, 97,
474
+ 84, 85, 98, 84, 85, 99, 84, 85,
475
+ 100, 84, 85, 101, 84, 85, 102, 84,
476
+ 85, 103, 84, 85, 104, 84, 85, 105,
477
+ 84, 85, 106, 84, 85, 107, 84, 85,
478
+ 108, 84, 85, 109, 84, 85, 110, 84,
479
+ 85, 111, 84, 113, 112, 114, 115, 116,
480
+ 117, 118, 119, 120, 121, 122, 123, 117,
481
+ 124, 125, 126, 127, 112, 0, 128, 0,
482
+ 71, 129, 0, 130, 0, 131, 0, 132,
483
+ 0, 133, 0, 134, 0, 135, 0, 136,
484
+ 0, 137, 0, 138, 0, 139, 0, 140,
485
+ 0, 141, 0, 142, 0, 144, 143, 146,
486
+ 145, 146, 147, 148, 149, 148, 150, 151,
487
+ 152, 153, 154, 147, 145, 146, 155, 145,
488
+ 146, 156, 145, 146, 157, 145, 146, 158,
489
+ 145, 146, 159, 145, 146, 160, 145, 146,
490
+ 161, 145, 146, 162, 145, 146, 163, 145,
491
+ 146, 164, 145, 146, 165, 145, 146, 166,
492
+ 145, 146, 167, 145, 146, 168, 145, 146,
493
+ 169, 145, 146, 170, 145, 146, 171, 145,
494
+ 146, 172, 145, 146, 173, 145, 146, 174,
495
+ 145, 146, 175, 145, 146, 176, 145, 146,
496
+ 177, 145, 146, 178, 145, 146, 179, 145,
497
+ 146, 180, 145, 146, 181, 145, 146, 182,
498
+ 145, 146, 183, 145, 146, 184, 145, 146,
499
+ 185, 145, 146, 186, 145, 187, 146, 145,
500
+ 188, 146, 145, 146, 189, 145, 146, 190,
501
+ 145, 146, 191, 145, 146, 192, 145, 146,
502
+ 178, 145, 146, 193, 194, 145, 146, 195,
503
+ 196, 145, 146, 197, 145, 146, 198, 145,
504
+ 146, 199, 145, 146, 200, 145, 146, 178,
505
+ 145, 146, 201, 145, 146, 202, 145, 146,
506
+ 203, 145, 146, 204, 145, 146, 205, 145,
507
+ 146, 206, 145, 146, 207, 145, 146, 208,
508
+ 145, 146, 209, 145, 146, 210, 145, 146,
509
+ 211, 145, 146, 212, 145, 146, 195, 145,
510
+ 146, 213, 145, 146, 214, 145, 146, 215,
511
+ 145, 146, 216, 145, 146, 177, 145, 146,
512
+ 217, 145, 146, 218, 145, 146, 219, 145,
513
+ 146, 220, 145, 146, 221, 145, 146, 222,
514
+ 145, 146, 223, 145, 146, 224, 145, 146,
515
+ 225, 145, 146, 226, 145, 146, 227, 145,
516
+ 146, 178, 145, 146, 228, 145, 146, 229,
517
+ 145, 146, 230, 145, 146, 231, 145, 146,
518
+ 232, 145, 146, 177, 145, 233, 0, 234,
519
+ 0, 235, 0, 236, 71, 0, 71, 0,
520
+ 237, 238, 0, 239, 240, 0, 241, 0,
521
+ 242, 0, 243, 0, 244, 0, 245, 0,
522
+ 246, 0, 248, 247, 250, 249, 250, 251,
523
+ 252, 253, 254, 252, 255, 256, 257, 258,
524
+ 259, 254, 260, 261, 262, 251, 249, 250,
525
+ 263, 249, 250, 264, 249, 250, 265, 249,
526
+ 250, 266, 249, 250, 267, 249, 250, 268,
527
+ 249, 250, 269, 249, 250, 270, 249, 250,
528
+ 271, 249, 250, 272, 249, 250, 273, 249,
529
+ 250, 274, 249, 250, 275, 249, 250, 276,
530
+ 249, 250, 277, 249, 250, 278, 279, 280,
531
+ 249, 250, 281, 249, 250, 282, 249, 250,
532
+ 283, 249, 250, 284, 249, 250, 285, 249,
533
+ 250, 286, 249, 250, 287, 249, 250, 288,
534
+ 249, 250, 289, 249, 250, 290, 249, 250,
535
+ 291, 249, 250, 292, 249, 250, 293, 249,
536
+ 250, 294, 249, 250, 295, 249, 250, 296,
537
+ 249, 250, 277, 249, 297, 250, 298, 249,
538
+ 286, 250, 249, 250, 299, 249, 250, 287,
539
+ 249, 250, 300, 249, 250, 287, 301, 249,
540
+ 250, 302, 249, 250, 303, 249, 250, 304,
541
+ 249, 250, 305, 249, 250, 306, 249, 307,
542
+ 250, 249, 308, 250, 249, 250, 309, 249,
543
+ 250, 310, 249, 250, 311, 249, 250, 312,
544
+ 249, 250, 296, 249, 250, 313, 249, 250,
545
+ 314, 249, 250, 315, 249, 250, 299, 287,
546
+ 249, 250, 316, 249, 250, 317, 318, 249,
547
+ 250, 319, 249, 250, 320, 249, 250, 321,
548
+ 249, 250, 322, 249, 250, 296, 249, 250,
549
+ 323, 249, 250, 324, 249, 250, 325, 249,
550
+ 250, 326, 249, 250, 327, 249, 250, 328,
551
+ 249, 250, 329, 249, 250, 330, 249, 250,
552
+ 331, 249, 250, 332, 249, 250, 333, 249,
553
+ 250, 334, 249, 250, 317, 249, 250, 335,
554
+ 249, 250, 336, 249, 250, 337, 249, 250,
555
+ 338, 249, 250, 339, 249, 250, 340, 249,
556
+ 250, 341, 249, 250, 342, 249, 250, 343,
557
+ 249, 250, 344, 249, 250, 345, 249, 250,
558
+ 296, 249, 250, 346, 249, 250, 347, 249,
559
+ 348, 250, 249, 287, 250, 249, 250, 349,
560
+ 249, 250, 350, 249, 250, 287, 249, 250,
561
+ 351, 249, 250, 352, 249, 250, 353, 249,
562
+ 250, 354, 249, 250, 355, 249, 250, 295,
563
+ 249, 356, 0, 357, 0, 358, 0, 359,
564
+ 0, 360, 0, 361, 0, 362, 0, 363,
565
+ 0, 364, 0, 365, 0, 366, 0, 367,
566
+ 0, 368, 0, 369, 0, 370, 0, 371,
567
+ 0, 372, 0, 373, 0, 374, 0, 376,
568
+ 375, 378, 377, 378, 379, 380, 381, 382,
569
+ 380, 383, 384, 385, 386, 387, 382, 388,
570
+ 389, 379, 377, 378, 390, 377, 378, 391,
571
+ 377, 378, 392, 377, 378, 393, 377, 378,
572
+ 394, 377, 378, 395, 377, 378, 396, 377,
573
+ 378, 397, 377, 378, 398, 377, 378, 399,
574
+ 377, 378, 400, 377, 378, 401, 377, 378,
575
+ 402, 377, 378, 403, 377, 378, 404, 377,
576
+ 378, 405, 406, 377, 378, 407, 377, 378,
577
+ 408, 377, 378, 409, 377, 378, 410, 377,
578
+ 378, 411, 377, 378, 412, 377, 378, 413,
579
+ 377, 414, 378, 415, 377, 412, 378, 377,
580
+ 378, 416, 377, 378, 413, 377, 378, 417,
581
+ 377, 378, 413, 418, 377, 378, 419, 377,
582
+ 378, 420, 377, 378, 421, 377, 378, 422,
583
+ 377, 378, 423, 377, 424, 378, 377, 425,
584
+ 378, 377, 378, 426, 377, 378, 427, 377,
585
+ 378, 428, 377, 378, 429, 377, 378, 430,
586
+ 377, 378, 404, 377, 378, 431, 377, 378,
587
+ 432, 377, 378, 433, 377, 378, 416, 413,
588
+ 377, 378, 434, 377, 378, 435, 377, 378,
589
+ 436, 377, 378, 437, 377, 378, 438, 377,
590
+ 378, 439, 377, 378, 430, 377, 378, 440,
591
+ 377, 378, 441, 377, 378, 442, 377, 378,
592
+ 443, 377, 378, 444, 377, 378, 445, 377,
593
+ 378, 446, 377, 378, 447, 377, 378, 448,
594
+ 377, 378, 449, 377, 378, 450, 377, 378,
595
+ 430, 377, 378, 451, 377, 378, 452, 377,
596
+ 453, 378, 377, 413, 378, 377, 378, 454,
597
+ 377, 378, 455, 377, 378, 413, 377, 456,
598
+ 0, 457, 0, 458, 0, 459, 0, 460,
599
+ 0, 461, 0, 462, 0, 464, 463, 466,
600
+ 465, 466, 467, 468, 469, 470, 468, 467,
601
+ 465, 466, 471, 465, 466, 472, 465, 466,
602
+ 473, 465, 466, 474, 465, 466, 475, 465,
603
+ 466, 476, 465, 466, 477, 465, 478, 466,
604
+ 465, 479, 466, 465, 466, 480, 465, 466,
605
+ 481, 465, 466, 482, 465, 466, 483, 465,
606
+ 466, 484, 465, 466, 485, 465, 466, 486,
607
+ 465, 466, 487, 465, 466, 488, 465, 466,
608
+ 489, 465, 466, 490, 465, 466, 491, 465,
609
+ 466, 492, 465, 466, 493, 465, 466, 494,
610
+ 465, 466, 495, 465, 466, 496, 465, 466,
611
+ 484, 465, 497, 0, 498, 0, 499, 0,
612
+ 500, 0, 501, 0, 502, 0, 503, 0,
613
+ 504, 0, 505, 0, 506, 0, 507, 0,
614
+ 141, 0, 508, 0, 509, 0, 510, 0,
615
+ 71, 0, 511, 0, 512, 0, 71, 0,
616
+ 513, 0, 514, 0, 515, 0, 516, 0,
617
+ 517, 0, 79, 0, 518, 519, 518, 0,
618
+ 522, 521, 523, 524, 521, 520, 0, 526,
619
+ 527, 525, 0, 526, 525, 522, 528, 526,
620
+ 527, 528, 525, 522, 529, 530, 531, 532,
621
+ 533, 534, 535, 536, 537, 538, 539, 533,
622
+ 540, 541, 542, 543, 529, 0, 85, 544,
623
+ 545, 84, 85, 546, 84, 85, 547, 84,
624
+ 85, 548, 84, 85, 549, 84, 85, 550,
625
+ 84, 85, 551, 84, 85, 552, 84, 553,
626
+ 85, 554, 84, 551, 85, 84, 85, 555,
627
+ 84, 85, 552, 84, 85, 556, 84, 85,
628
+ 552, 557, 84, 85, 558, 84, 85, 559,
629
+ 84, 85, 560, 84, 85, 561, 84, 85,
630
+ 562, 84, 563, 85, 84, 564, 85, 84,
631
+ 85, 565, 84, 85, 566, 84, 85, 567,
632
+ 84, 85, 568, 84, 85, 569, 84, 85,
633
+ 111, 84, 85, 570, 84, 85, 571, 84,
634
+ 85, 572, 84, 85, 555, 552, 84, 85,
635
+ 573, 84, 85, 574, 575, 84, 85, 576,
636
+ 84, 85, 577, 84, 85, 578, 84, 85,
637
+ 579, 84, 85, 569, 84, 85, 580, 84,
638
+ 85, 581, 84, 85, 582, 84, 85, 583,
639
+ 84, 85, 584, 84, 85, 585, 84, 85,
640
+ 586, 84, 85, 587, 84, 85, 588, 84,
641
+ 85, 589, 84, 85, 590, 84, 85, 591,
642
+ 84, 85, 574, 84, 85, 592, 84, 85,
643
+ 593, 84, 85, 594, 84, 85, 595, 84,
644
+ 85, 596, 84, 85, 597, 84, 85, 598,
645
+ 84, 85, 599, 84, 85, 600, 84, 85,
646
+ 601, 84, 85, 602, 84, 85, 569, 84,
647
+ 85, 603, 84, 85, 604, 84, 605, 85,
648
+ 84, 552, 85, 84, 85, 606, 84, 85,
649
+ 607, 84, 85, 552, 84, 608, 609, 0,
650
+ 70, 0, 236, 0, 610, 0, 1, 0,
651
+ 611, 0
652
+ ];
653
+
654
+ const _lexer_trans_targs = [
655
+ 0, 2, 2, 3, 12, 14, 28, 31,
656
+ 34, 71, 171, 176, 418, 430, 434, 437,
657
+ 443, 522, 4, 5, 6, 7, 7, 7,
658
+ 8, 7, 7, 7, 8, 9, 10, 11,
659
+ 2, 11, 12, 2, 13, 15, 16, 17,
660
+ 18, 19, 20, 21, 22, 23, 24, 25,
661
+ 26, 27, 524, 29, 30, 30, 2, 13,
662
+ 32, 33, 2, 32, 31, 33, 35, 42,
663
+ 519, 36, 37, 38, 39, 40, 41, 28,
664
+ 43, 44, 45, 46, 47, 48, 49, 50,
665
+ 51, 52, 53, 54, 53, 54, 54, 2,
666
+ 55, 69, 449, 461, 476, 480, 500, 512,
667
+ 516, 56, 57, 58, 59, 60, 61, 62,
668
+ 63, 64, 65, 66, 67, 68, 2, 70,
669
+ 2, 2, 3, 12, 14, 28, 31, 34,
670
+ 71, 171, 176, 418, 430, 434, 437, 443,
671
+ 72, 73, 74, 75, 76, 77, 78, 79,
672
+ 80, 81, 82, 83, 84, 85, 86, 87,
673
+ 88, 87, 88, 88, 2, 89, 103, 114,
674
+ 128, 153, 165, 90, 91, 92, 93, 94,
675
+ 95, 96, 97, 98, 99, 100, 101, 102,
676
+ 2, 104, 105, 106, 107, 108, 109, 110,
677
+ 111, 112, 113, 70, 115, 116, 117, 118,
678
+ 119, 120, 121, 122, 123, 124, 125, 126,
679
+ 127, 129, 148, 130, 135, 131, 132, 133,
680
+ 134, 136, 137, 138, 139, 140, 141, 142,
681
+ 143, 144, 145, 146, 147, 149, 150, 151,
682
+ 152, 154, 155, 156, 157, 158, 159, 160,
683
+ 161, 162, 163, 164, 166, 167, 168, 169,
684
+ 170, 172, 173, 174, 175, 177, 381, 178,
685
+ 287, 179, 180, 181, 182, 183, 184, 185,
686
+ 186, 185, 186, 186, 2, 187, 201, 202,
687
+ 224, 238, 242, 262, 274, 278, 281, 188,
688
+ 189, 190, 191, 192, 193, 194, 195, 196,
689
+ 197, 198, 199, 200, 2, 70, 203, 210,
690
+ 220, 204, 205, 206, 207, 208, 209, 201,
691
+ 211, 212, 213, 214, 215, 216, 217, 218,
692
+ 219, 221, 222, 223, 225, 226, 227, 228,
693
+ 229, 230, 231, 232, 233, 234, 235, 236,
694
+ 237, 239, 240, 241, 243, 244, 249, 245,
695
+ 246, 247, 248, 250, 251, 252, 253, 254,
696
+ 255, 256, 257, 258, 259, 260, 261, 263,
697
+ 264, 265, 266, 267, 268, 269, 270, 271,
698
+ 272, 273, 275, 276, 277, 279, 280, 282,
699
+ 283, 284, 285, 286, 288, 289, 290, 291,
700
+ 292, 293, 294, 295, 296, 297, 298, 299,
701
+ 300, 301, 302, 303, 304, 305, 306, 307,
702
+ 308, 307, 308, 308, 2, 309, 323, 324,
703
+ 336, 351, 355, 362, 374, 378, 310, 311,
704
+ 312, 313, 314, 315, 316, 317, 318, 319,
705
+ 320, 321, 322, 2, 70, 325, 332, 326,
706
+ 327, 328, 329, 330, 331, 323, 333, 334,
707
+ 335, 337, 338, 339, 340, 341, 342, 343,
708
+ 344, 345, 346, 347, 348, 349, 350, 352,
709
+ 353, 354, 356, 357, 358, 359, 360, 361,
710
+ 363, 364, 365, 366, 367, 368, 369, 370,
711
+ 371, 372, 373, 375, 376, 377, 379, 380,
712
+ 382, 383, 384, 385, 386, 387, 388, 389,
713
+ 390, 389, 390, 390, 2, 391, 406, 392,
714
+ 393, 394, 395, 396, 397, 398, 399, 400,
715
+ 401, 402, 403, 404, 405, 70, 407, 408,
716
+ 409, 410, 411, 412, 413, 414, 415, 416,
717
+ 417, 419, 420, 421, 422, 423, 424, 425,
718
+ 426, 427, 428, 429, 431, 432, 433, 435,
719
+ 436, 438, 439, 440, 441, 442, 443, 444,
720
+ 445, 447, 448, 446, 444, 445, 446, 444,
721
+ 447, 448, 3, 12, 14, 28, 31, 34,
722
+ 71, 171, 176, 418, 430, 434, 437, 443,
723
+ 450, 457, 451, 452, 453, 454, 455, 456,
724
+ 69, 458, 459, 460, 462, 463, 464, 465,
725
+ 466, 467, 468, 469, 470, 471, 472, 473,
726
+ 474, 475, 477, 478, 479, 481, 482, 487,
727
+ 483, 484, 485, 486, 488, 489, 490, 491,
728
+ 492, 493, 494, 495, 496, 497, 498, 499,
729
+ 501, 502, 503, 504, 505, 506, 507, 508,
730
+ 509, 510, 511, 513, 514, 515, 517, 518,
731
+ 520, 521, 523, 0
732
+ ];
733
+
734
+ const _lexer_trans_actions = [
735
+ 39, 0, 47, 3, 1, 0, 25, 1,
736
+ 25, 25, 25, 25, 25, 25, 25, 25,
737
+ 31, 0, 0, 0, 47, 5, 41, 119,
738
+ 41, 0, 29, 111, 29, 29, 0, 7,
739
+ 95, 0, 0, 103, 21, 0, 0, 0,
740
+ 0, 0, 0, 0, 0, 0, 0, 0,
741
+ 0, 0, 0, 0, 50, 0, 99, 19,
742
+ 0, 23, 107, 23, 44, 0, 0, 0,
743
+ 0, 0, 0, 0, 0, 0, 0, 0,
744
+ 0, 0, 0, 0, 0, 0, 0, 0,
745
+ 0, 0, 50, 124, 0, 47, 0, 65,
746
+ 29, 77, 77, 77, 77, 77, 77, 77,
747
+ 77, 0, 0, 0, 0, 0, 0, 0,
748
+ 0, 0, 0, 0, 0, 0, 11, 11,
749
+ 27, 115, 53, 50, 27, 56, 50, 56,
750
+ 56, 56, 56, 56, 56, 56, 56, 59,
751
+ 0, 0, 0, 0, 0, 0, 0, 0,
752
+ 0, 0, 0, 0, 0, 0, 0, 50,
753
+ 124, 0, 47, 0, 62, 29, 77, 77,
754
+ 77, 77, 77, 0, 0, 0, 0, 0,
755
+ 0, 0, 0, 0, 0, 0, 0, 0,
756
+ 9, 0, 0, 0, 0, 0, 0, 0,
757
+ 0, 0, 0, 9, 0, 0, 0, 0,
758
+ 0, 0, 0, 0, 0, 0, 0, 0,
759
+ 0, 0, 0, 0, 0, 0, 0, 0,
760
+ 0, 0, 0, 0, 0, 0, 0, 0,
761
+ 0, 0, 0, 0, 0, 0, 0, 0,
762
+ 0, 0, 0, 0, 0, 0, 0, 0,
763
+ 0, 0, 0, 0, 0, 0, 0, 0,
764
+ 0, 0, 0, 0,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 0,
800
+ 33, 33, 47, 33, 80, 0, 0, 35,
801
+ 0, 0, 86, 83, 37, 89, 83, 89,
802
+ 89, 89, 89, 89, 89, 89, 89, 92,
803
+ 0, 0, 0, 0, 0, 0, 0, 0,
804
+ 0, 0, 0, 0, 0, 0, 0, 0,
805
+ 0, 0, 0, 0, 0, 0, 0, 0,
806
+ 0, 0, 0, 0, 0, 0, 0, 0,
807
+ 0, 0, 0, 0, 0, 0, 0, 0,
808
+ 0, 0, 0, 0, 0, 0, 0, 0,
809
+ 0, 0, 0, 0, 0, 0, 0, 0,
810
+ 0, 0, 0, 0, 0, 0, 0, 0,
811
+ 0, 0, 0, 0
812
+ ];
813
+
814
+ const _lexer_eof_actions = [
815
+ 0, 39, 39, 39, 39, 39, 39, 39,
816
+ 39, 39, 39, 39, 39, 39, 39, 39,
817
+ 39, 39, 39, 39, 39, 39, 39, 39,
818
+ 39, 39, 39, 39, 39, 39, 39, 39,
819
+ 39, 39, 39, 39, 39, 39, 39, 39,
820
+ 39, 39, 39, 39, 39, 39, 39, 39,
821
+ 39, 39, 39, 39, 39, 39, 39, 39,
822
+ 39, 39, 39, 39, 39, 39, 39, 39,
823
+ 39, 39, 39, 39, 39, 39, 39, 39,
824
+ 39, 39, 39, 39, 39, 39, 39, 39,
825
+ 39, 39, 39, 39, 39, 39, 39, 39,
826
+ 39, 39, 39, 39, 39, 39, 39, 39,
827
+ 39, 39, 39, 39, 39, 39, 39, 39,
828
+ 39, 39, 39, 39, 39, 39, 39, 39,
829
+ 39, 39, 39, 39, 39, 39, 39, 39,
830
+ 39, 39, 39, 39, 39, 39, 39, 39,
831
+ 39, 39, 39, 39, 39, 39, 39, 39,
832
+ 39, 39, 39, 39, 39, 39, 39, 39,
833
+ 39, 39, 39, 39, 39, 39, 39, 39,
834
+ 39, 39, 39, 39, 39, 39, 39, 39,
835
+ 39, 39, 39, 39, 39, 39, 39, 39,
836
+ 39, 39, 39, 39, 39, 39, 39, 39,
837
+ 39, 39, 39, 39, 39, 39, 39, 39,
838
+ 39, 39, 39, 39, 39, 39, 39, 39,
839
+ 39, 39, 39, 39, 39, 39, 39, 39,
840
+ 39, 39, 39, 39, 39, 39, 39, 39,
841
+ 39, 39, 39, 39, 39, 39, 39, 39,
842
+ 39, 39, 39, 39, 39, 39, 39, 39,
843
+ 39, 39, 39, 39, 39, 39, 39, 39,
844
+ 39, 39, 39, 39, 39, 39, 39, 39,
845
+ 39, 39, 39, 39, 39, 39, 39, 39,
846
+ 39, 39, 39, 39, 39, 39, 39, 39,
847
+ 39, 39, 39, 39, 39, 39, 39, 39,
848
+ 39, 39, 39, 39, 39, 39, 39, 39,
849
+ 39, 39, 39, 39, 39, 39, 39, 39,
850
+ 39, 39, 39, 39, 39, 39, 39, 39,
851
+ 39, 39, 39, 39, 39, 39, 39, 39,
852
+ 39, 39, 39, 39, 39, 39, 39, 39,
853
+ 39, 39, 39, 39, 39, 39, 39, 39,
854
+ 39, 39, 39, 39, 39, 39, 39, 39,
855
+ 39, 39, 39, 39, 39, 39, 39, 39,
856
+ 39, 39, 39, 39, 39, 39, 39, 39,
857
+ 39, 39, 39, 39, 39, 39, 39, 39,
858
+ 39, 39, 39, 39, 39, 39, 39, 39,
859
+ 39, 39, 39, 39, 39, 39, 39, 39,
860
+ 39, 39, 39, 39, 39, 39, 39, 39,
861
+ 39, 39, 39, 39, 39, 39, 39, 39,
862
+ 39, 39, 39, 39, 39, 39, 39, 39,
863
+ 39, 39, 39, 39, 39, 39, 39, 39,
864
+ 39, 39, 39, 39, 39, 39, 39, 39,
865
+ 39, 39, 39, 39, 39, 39, 39, 39,
866
+ 39, 39, 39, 39, 39, 39, 39, 39,
867
+ 39, 39, 39, 39, 39, 39, 39, 39,
868
+ 39, 39, 39, 39, 39, 39, 39, 39,
869
+ 39, 39, 39, 39, 39, 39, 39, 39,
870
+ 39, 39, 39, 39, 39, 39, 39, 39,
871
+ 39, 39, 39, 39, 39, 39, 39, 39,
872
+ 39, 39, 39, 39, 39, 39, 39, 39,
873
+ 39, 39, 39, 39, 39, 39, 39, 39,
874
+ 39, 39, 39, 39, 39, 39, 39, 39,
875
+ 39, 39, 39, 39, 39, 39, 39, 39,
876
+ 39, 39, 39, 39, 39, 39, 39, 39,
877
+ 39, 39, 39, 39, 39, 39, 39, 39,
878
+ 39, 39, 39, 39, 39, 39, 39, 39,
879
+ 39, 39, 39, 39, 39, 39, 39, 39,
880
+ 39, 39, 39, 39, 39
881
+ ];
882
+
883
+ const lexer_start = 1;
884
+ const lexer_first_final = 524;
885
+ const lexer_error = 0;
886
+
887
+ const lexer_en_main = 1;
888
+
889
+
890
+ /* line 110 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
891
+
892
+ /* line 111 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
893
+
894
+ /* line 112 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
895
+
896
+ var Lexer = function(listeners) {
897
+ // check that we have an 'on' method (for registering event listeners - Node has that)
898
+ // If not, make a trivial implementation that can register one listener. -Enough for testing.
899
+
900
+ if(!this.on) {
901
+ this._listeners = {};
902
+
903
+ this.on = function(event, cb) {
904
+ this._listeners[event] = cb;
905
+ };
906
+
907
+ this.emit = function() {
908
+ var event = arguments[0];
909
+ var args = [];
910
+ for(var i = 1; i < arguments.length; i++) {
911
+ args.push(arguments[i]);
912
+ }
913
+ var cb = this._listeners[event];
914
+ cb.apply(listeners, args);
915
+ };
916
+ }
917
+
918
+ var events = ['feature', 'background', 'scenario', 'scenario_outline', 'examples', 'step', 'py_string', 'row', 'end'];
919
+ for(e in events) {
920
+ var event = events[e];
921
+ var listener = listeners[event];
922
+ // if(!listener) {
923
+ // throw "No listener for " + event;
924
+ // }
925
+ this.on(event, listener);
926
+ }
927
+
928
+
929
+ /* line 930 "js/lib/gherkin/lexer/i18n/ca.js" */
930
+ {
931
+ this.cs = lexer_start;
932
+ } /* JSCodeGen::writeInit */
933
+
934
+ /* line 146 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
935
+ };
936
+
937
+ if(typeof require == 'function') {
938
+ require('sys').inherits(Lexer, require('events').EventEmitter);
939
+ }
940
+
941
+ Lexer.prototype.scan = function(data) {
942
+ var p = 0;
943
+ var pe = data.length;
944
+ var eof = 0;
945
+
946
+
947
+ /* line 948 "js/lib/gherkin/lexer/i18n/ca.js" */
948
+ {
949
+ var _klen, _trans, _keys, _ps, _widec, _acts, _nacts;
950
+ var _goto_level, _resume, _eof_trans, _again, _test_eof;
951
+ var _out;
952
+ _klen = _trans = _keys = _acts = _nacts = null;
953
+ _goto_level = 0;
954
+ _resume = 10;
955
+ _eof_trans = 15;
956
+ _again = 20;
957
+ _test_eof = 30;
958
+ _out = 40;
959
+ while (true) {
960
+ _trigger_goto = false;
961
+ if (_goto_level <= 0) {
962
+ if (p == pe) {
963
+ _goto_level = _test_eof;
964
+ continue;
965
+ }
966
+ if ( this.cs == 0) {
967
+ _goto_level = _out;
968
+ continue;
969
+ }
970
+ }
971
+ if (_goto_level <= _resume) {
972
+ _keys = _lexer_key_offsets[ this.cs];
973
+ _trans = _lexer_index_offsets[ this.cs];
974
+ _klen = _lexer_single_lengths[ this.cs];
975
+ _break_match = false;
976
+
977
+ do {
978
+ if (_klen > 0) {
979
+ _lower = _keys;
980
+ _upper = _keys + _klen - 1;
981
+
982
+ while (true) {
983
+ if (_upper < _lower) { break; }
984
+ _mid = _lower + ( (_upper - _lower) >> 1 );
985
+
986
+ if ( data[p] < _lexer_trans_keys[_mid]) {
987
+ _upper = _mid - 1;
988
+ } else if ( data[p] > _lexer_trans_keys[_mid]) {
989
+ _lower = _mid + 1;
990
+ } else {
991
+ _trans += (_mid - _keys);
992
+ _break_match = true;
993
+ break;
994
+ };
995
+ } /* while */
996
+ if (_break_match) { break; }
997
+ _keys += _klen;
998
+ _trans += _klen;
999
+ }
1000
+ _klen = _lexer_range_lengths[ this.cs];
1001
+ if (_klen > 0) {
1002
+ _lower = _keys;
1003
+ _upper = _keys + (_klen << 1) - 2;
1004
+ while (true) {
1005
+ if (_upper < _lower) { break; }
1006
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
1007
+ if ( data[p] < _lexer_trans_keys[_mid]) {
1008
+ _upper = _mid - 2;
1009
+ } else if ( data[p] > _lexer_trans_keys[_mid+1]) {
1010
+ _lower = _mid + 2;
1011
+ } else {
1012
+ _trans += ((_mid - _keys) >> 1);
1013
+ _break_match = true;
1014
+ break;
1015
+ }
1016
+ } /* while */
1017
+ if (_break_match) { break; }
1018
+ _trans += _klen
1019
+ }
1020
+ } while (false);
1021
+ _trans = _lexer_indicies[_trans];
1022
+ this.cs = _lexer_trans_targs[_trans];
1023
+ if (_lexer_trans_actions[_trans] != 0) {
1024
+ _acts = _lexer_trans_actions[_trans];
1025
+ _nacts = _lexer_actions[_acts];
1026
+ _acts += 1;
1027
+ while (_nacts > 0) {
1028
+ _nacts -= 1;
1029
+ _acts += 1;
1030
+ switch (_lexer_actions[_acts - 1]) {
1031
+ case 0:
1032
+ /* line 6 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1033
+
1034
+ this.content_start = p;
1035
+ this.current_line = this.line_number;
1036
+ this.start_col = p - this.last_newline - (this.keyword+':').length;
1037
+ break;
1038
+ case 1:
1039
+ /* line 12 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1040
+
1041
+ this.current_line = this.line_number;
1042
+ this.start_col = p - this.last_newline;
1043
+ break;
1044
+ case 2:
1045
+ /* line 17 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1046
+
1047
+ this.content_start = p;
1048
+ break;
1049
+ case 3:
1050
+ /* line 21 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1051
+
1052
+ var con = this.unindent(
1053
+ this.start_col,
1054
+ this.bytesToString(data.slice(this.content_start, this.next_keyword_start-1)).replace(/(\r?\n)?([\t ])*\Z/, '') // TODO .replace(/\"\"\"/mg, '"""')
1055
+ );
1056
+ this.emit('py_string', con, this.current_line);
1057
+ break;
1058
+ case 4:
1059
+ /* line 29 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1060
+
1061
+ p = this.store_keyword_content('feature', data, p, eof);
1062
+ break;
1063
+ case 5:
1064
+ /* line 33 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1065
+
1066
+ p = this.store_keyword_content('background', data, p, eof);
1067
+ break;
1068
+ case 6:
1069
+ /* line 37 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1070
+
1071
+ p = this.store_keyword_content('scenario', data, p, eof);
1072
+ break;
1073
+ case 7:
1074
+ /* line 41 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1075
+
1076
+ p = this.store_keyword_content('scenario_outline', data, p, eof);
1077
+ break;
1078
+ case 8:
1079
+ /* line 45 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1080
+
1081
+ p = this.store_keyword_content('examples', data, p, eof);
1082
+ break;
1083
+ case 9:
1084
+ /* line 49 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1085
+
1086
+ var con = this.bytesToString(data.slice(this.content_start, p)).trim();
1087
+ this.emit('step', this.keyword, con, this.current_line);
1088
+ break;
1089
+ case 10:
1090
+ /* line 54 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1091
+
1092
+ console.log('TODO: store_comment_content');
1093
+ break;
1094
+ case 11:
1095
+ /* line 58 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1096
+
1097
+ console.log('TODO: store_tag_content');
1098
+ break;
1099
+ case 12:
1100
+ /* line 62 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1101
+
1102
+ this.line_number++;
1103
+ break;
1104
+ case 13:
1105
+ /* line 66 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1106
+
1107
+ this.last_newline = p + 1;
1108
+ break;
1109
+ case 14:
1110
+ /* line 70 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1111
+
1112
+ this.keyword_start = this.keyword_start || p;
1113
+ break;
1114
+ case 15:
1115
+ /* line 74 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1116
+
1117
+ this.keyword = this.bytesToString(data.slice(this.keyword_start, p)).replace(/:$/, '');
1118
+ this.keyword_start = null;
1119
+ break;
1120
+ case 16:
1121
+ /* line 79 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1122
+
1123
+ this.next_keyword_start = p;
1124
+ break;
1125
+ case 17:
1126
+ /* line 83 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1127
+
1128
+ p = p - 1;
1129
+ current_row = [];
1130
+ this.current_line = this.line_number;
1131
+ break;
1132
+ case 18:
1133
+ /* line 89 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1134
+
1135
+ this.content_start = p;
1136
+ break;
1137
+ case 19:
1138
+ /* line 93 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1139
+
1140
+ var con = this.bytesToString(data.slice(this.content_start, p)).trim();
1141
+ current_row.push(con.replace(/\\\|/, "|").replace(/\\n/, "\n").replace(/\\\\/, "\\"));
1142
+ break;
1143
+ case 20:
1144
+ /* line 98 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1145
+
1146
+ this.emit('row', current_row, this.current_line);
1147
+ break;
1148
+ case 21:
1149
+ /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1150
+
1151
+ console.log('TODO: end_feature');
1152
+ break;
1153
+ /* line 1154 "js/lib/gherkin/lexer/i18n/ca.js" */
1154
+ } /* action switch */
1155
+ }
1156
+ }
1157
+ if (_trigger_goto) {
1158
+ continue;
1159
+ }
1160
+ }
1161
+ if (_goto_level <= _again) {
1162
+ if ( this.cs == 0) {
1163
+ _goto_level = _out;
1164
+ continue;
1165
+ }
1166
+ p += 1;
1167
+ if (p != pe) {
1168
+ _goto_level = _resume;
1169
+ continue;
1170
+ }
1171
+ }
1172
+ if (_goto_level <= _test_eof) {
1173
+ if (p == eof) {
1174
+ __acts = _lexer_eof_actions[ this.cs];
1175
+ __nacts = _lexer_actions[__acts];
1176
+ __acts += 1;
1177
+ while (__nacts > 0) {
1178
+ __nacts -= 1;
1179
+ __acts += 1;
1180
+ switch (_lexer_actions[__acts - 1]) {
1181
+ case 21:
1182
+ /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1183
+
1184
+ console.log('TODO: end_feature');
1185
+ break;
1186
+ /* line 1187 "js/lib/gherkin/lexer/i18n/ca.js" */
1187
+ } /* eof action switch */
1188
+ }
1189
+ if (_trigger_goto) {
1190
+ continue;
1191
+ }
1192
+ }
1193
+ }
1194
+ if (_goto_level <= _out) {
1195
+ break;
1196
+ }
1197
+ }
1198
+ }
1199
+
1200
+ /* line 158 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/ca.js.rl" */
1201
+ };
1202
+
1203
+ Lexer.prototype.bytesToString = function(bytes) {
1204
+ if(typeof bytes.write == 'function') {
1205
+ // Node.js
1206
+ return bytes.toString('utf-8');
1207
+ } else {
1208
+ var result = "";
1209
+ for(var b in bytes) {
1210
+ result += String.fromCharCode(bytes[b]);
1211
+ }
1212
+ return result;
1213
+ }
1214
+ }
1215
+
1216
+ Lexer.prototype.unindent = function(startcol, text) {
1217
+ startcol = startcol || 0;
1218
+ return text.replace(new RegExp('^[\t ]{0,' + startcol + '}', 'gm'), '');
1219
+ };
1220
+
1221
+ Lexer.prototype.store_keyword_content = function(event, data, p, eof) {
1222
+ var end_point = (!this.next_keyword_start || (p == eof)) ? p : this.next_keyword_start;
1223
+ var content = this.unindent(this.start_col + 2, this.bytesToString(data.slice(this.content_start, end_point))).trimRight();
1224
+ var content_lines = content.split("\n")
1225
+ var name = content_lines.shift() || "";
1226
+ name = name.trim();
1227
+ var description = content_lines.join("\n");
1228
+ this.emit(event, this.keyword, name, description, this.current_line);
1229
+ var nks = this.next_keyword_start;
1230
+ this.next_keyword_start = null;
1231
+ return nks ? nks - 1 : p;
1232
+ };
1233
+
1234
+ exports.Lexer = Lexer;
1235
+
1236
+ })();