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,1049 @@
1
+
2
+ /* line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
3
+ ;(function() {
4
+
5
+
6
+ /* line 107 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
7
+
8
+
9
+
10
+ /* line 11 "js/lib/gherkin/lexer/i18n/es.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, 17, 33, 34, 35, 39, 44,
33
+ 49, 54, 59, 63, 67, 69, 70, 71,
34
+ 72, 73, 74, 75, 76, 77, 78, 79,
35
+ 80, 81, 82, 83, 84, 85, 86, 88,
36
+ 93, 100, 105, 106, 107, 108, 109, 110,
37
+ 111, 112, 113, 114, 115, 116, 117, 118,
38
+ 119, 132, 134, 136, 138, 140, 142, 144,
39
+ 146, 148, 150, 152, 154, 156, 158, 160,
40
+ 162, 178, 180, 181, 182, 183, 184, 185,
41
+ 186, 187, 188, 189, 190, 191, 192, 193,
42
+ 194, 195, 196, 206, 208, 210, 212, 214,
43
+ 216, 218, 220, 222, 224, 226, 228, 230,
44
+ 232, 234, 236, 238, 240, 242, 244, 246,
45
+ 248, 250, 252, 254, 256, 258, 260, 262,
46
+ 264, 266, 268, 270, 272, 274, 276, 278,
47
+ 280, 282, 284, 286, 289, 291, 293, 295,
48
+ 297, 299, 302, 304, 306, 308, 310, 312,
49
+ 314, 316, 318, 320, 322, 324, 326, 328,
50
+ 330, 332, 334, 336, 338, 339, 340, 341,
51
+ 342, 343, 346, 347, 348, 349, 350, 351,
52
+ 352, 353, 354, 355, 362, 364, 366, 368,
53
+ 370, 372, 374, 376, 378, 380, 382, 384,
54
+ 386, 388, 390, 392, 393, 394, 395, 396,
55
+ 397, 398, 400, 401, 402, 403, 404, 405,
56
+ 406, 407, 408, 409, 423, 425, 427, 429,
57
+ 431, 433, 435, 437, 439, 441, 443, 445,
58
+ 447, 449, 451, 453, 455, 457, 459, 461,
59
+ 463, 465, 467, 469, 471, 473, 475, 477,
60
+ 480, 482, 484, 486, 488, 490, 492, 494,
61
+ 496, 498, 500, 502, 504, 506, 508, 510,
62
+ 512, 514, 516, 519, 521, 523, 525, 527,
63
+ 529, 531, 534, 536, 538, 540, 542, 544,
64
+ 546, 548, 550, 552, 554, 556, 558, 560,
65
+ 562, 564, 566, 568, 570, 572, 574, 575,
66
+ 576, 577, 578, 579, 580, 581, 582, 583,
67
+ 584, 585, 586, 587, 588, 589, 590, 591,
68
+ 592, 593, 594, 595, 608, 610, 612, 614,
69
+ 616, 618, 620, 622, 624, 626, 628, 630,
70
+ 632, 634, 636, 638, 641, 643, 645, 647,
71
+ 649, 651, 653, 655, 657, 659, 661, 663,
72
+ 665, 667, 669, 671, 673, 675, 677, 679,
73
+ 682, 684, 686, 688, 690, 692, 694, 696,
74
+ 698, 700, 702, 704, 706, 708, 710, 712,
75
+ 713, 714, 718, 724, 727, 729, 735, 751,
76
+ 754, 756, 758, 760, 762, 764, 766, 768,
77
+ 770, 772, 774, 776, 778, 780, 782, 784,
78
+ 786, 788, 790, 792, 795, 797, 799, 801,
79
+ 803, 805, 807, 810, 812, 814, 816, 818,
80
+ 820, 822, 824, 826, 828, 830, 832, 834,
81
+ 836, 838, 840, 842, 844, 846, 848, 850,
82
+ 851, 852
83
+ ];
84
+
85
+ const _lexer_trans_keys = [
86
+ 10, 32, 34, 35, 37, 42, 64, 65,
87
+ 67, 68, 69, 80, 89, 124, 239, 9,
88
+ 13, 10, 32, 34, 35, 37, 42, 64,
89
+ 65, 67, 68, 69, 80, 89, 124, 9,
90
+ 13, 34, 34, 10, 32, 9, 13, 10,
91
+ 32, 34, 9, 13, 10, 32, 34, 9,
92
+ 13, 10, 32, 34, 9, 13, 10, 32,
93
+ 34, 9, 13, 10, 32, 9, 13, 10,
94
+ 32, 9, 13, 10, 13, 10, 95, 70,
95
+ 69, 65, 84, 85, 82, 69, 95, 69,
96
+ 78, 68, 95, 37, 32, 10, 10, 13,
97
+ 13, 32, 64, 9, 10, 9, 10, 13,
98
+ 32, 64, 11, 12, 10, 32, 64, 9,
99
+ 13, 110, 116, 101, 99, 101, 100, 101,
100
+ 110, 116, 101, 115, 58, 10, 10, 10,
101
+ 32, 35, 37, 42, 64, 67, 68, 69,
102
+ 80, 89, 9, 13, 10, 95, 10, 70,
103
+ 10, 69, 10, 65, 10, 84, 10, 85,
104
+ 10, 82, 10, 69, 10, 95, 10, 69,
105
+ 10, 78, 10, 68, 10, 95, 10, 37,
106
+ 10, 32, 10, 32, 34, 35, 37, 42,
107
+ 64, 65, 67, 68, 69, 80, 89, 124,
108
+ 9, 13, 97, 117, 114, 97, 99, 116,
109
+ 101, 114, -61, -83, 115, 116, 105, 99,
110
+ 97, 58, 10, 10, 10, 32, 35, 37,
111
+ 64, 65, 67, 69, 9, 13, 10, 95,
112
+ 10, 70, 10, 69, 10, 65, 10, 84,
113
+ 10, 85, 10, 82, 10, 69, 10, 95,
114
+ 10, 69, 10, 78, 10, 68, 10, 95,
115
+ 10, 37, 10, 110, 10, 116, 10, 101,
116
+ 10, 99, 10, 101, 10, 100, 10, 101,
117
+ 10, 110, 10, 116, 10, 101, 10, 115,
118
+ 10, 58, 10, 97, 10, 114, 10, 97,
119
+ 10, 99, 10, 116, 10, 101, 10, 114,
120
+ -61, 10, -83, 10, 10, 115, 10, 116,
121
+ 10, 105, 10, 99, 10, 97, 10, 106,
122
+ 115, 10, 101, 10, 109, 10, 112, 10,
123
+ 108, 10, 111, 10, 99, 113, 10, 101,
124
+ 10, 110, 10, 97, 10, 114, 10, 105,
125
+ 10, 111, 10, 117, 10, 101, 10, 109,
126
+ 10, 97, 10, 32, 10, 100, 10, 101,
127
+ 10, 108, 10, 32, 10, 101, 10, 115,
128
+ 10, 99, 97, 110, 100, 111, 97, 106,
129
+ 110, 115, 101, 109, 112, 108, 111, 115,
130
+ 58, 10, 10, 10, 32, 35, 67, 124,
131
+ 9, 13, 10, 97, 10, 114, 10, 97,
132
+ 10, 99, 10, 116, 10, 101, 10, 114,
133
+ -61, 10, -83, 10, 10, 115, 10, 116,
134
+ 10, 105, 10, 99, 10, 97, 10, 58,
135
+ 116, 111, 110, 99, 101, 115, 99, 113,
136
+ 101, 110, 97, 114, 105, 111, 58, 10,
137
+ 10, 10, 32, 35, 37, 42, 64, 65,
138
+ 67, 68, 69, 80, 89, 9, 13, 10,
139
+ 95, 10, 70, 10, 69, 10, 65, 10,
140
+ 84, 10, 85, 10, 82, 10, 69, 10,
141
+ 95, 10, 69, 10, 78, 10, 68, 10,
142
+ 95, 10, 37, 10, 32, 10, 110, 10,
143
+ 116, 10, 101, 10, 99, 10, 101, 10,
144
+ 100, 10, 101, 10, 110, 10, 116, 10,
145
+ 101, 10, 115, 10, 58, 10, 97, 117,
146
+ 10, 114, 10, 97, 10, 99, 10, 116,
147
+ 10, 101, 10, 114, -61, 10, -83, 10,
148
+ 10, 115, 10, 116, 10, 105, 10, 99,
149
+ 10, 97, 10, 97, 10, 110, 10, 100,
150
+ 10, 111, 10, 97, 10, 110, 115, 10,
151
+ 116, 10, 111, 10, 110, 10, 99, 10,
152
+ 101, 10, 115, 10, 99, 113, 10, 101,
153
+ 10, 110, 10, 97, 10, 114, 10, 105,
154
+ 10, 111, 10, 117, 10, 101, 10, 109,
155
+ 10, 97, 10, 32, 10, 100, 10, 101,
156
+ 10, 108, 10, 32, 10, 101, 10, 115,
157
+ 10, 99, 10, 101, 10, 114, 117, 101,
158
+ 109, 97, 32, 100, 101, 108, 32, 101,
159
+ 115, 99, 101, 110, 97, 114, 105, 111,
160
+ 58, 10, 10, 10, 32, 35, 37, 42,
161
+ 64, 67, 68, 69, 80, 89, 9, 13,
162
+ 10, 95, 10, 70, 10, 69, 10, 65,
163
+ 10, 84, 10, 85, 10, 82, 10, 69,
164
+ 10, 95, 10, 69, 10, 78, 10, 68,
165
+ 10, 95, 10, 37, 10, 32, 10, 97,
166
+ 117, 10, 114, 10, 97, 10, 99, 10,
167
+ 116, 10, 101, 10, 114, -61, 10, -83,
168
+ 10, 10, 115, 10, 116, 10, 105, 10,
169
+ 99, 10, 97, 10, 58, 10, 97, 10,
170
+ 110, 10, 100, 10, 111, 10, 97, 10,
171
+ 110, 115, 10, 116, 10, 111, 10, 110,
172
+ 10, 99, 10, 101, 10, 115, 10, 99,
173
+ 10, 101, 10, 110, 10, 97, 10, 114,
174
+ 10, 105, 10, 111, 10, 101, 10, 114,
175
+ 101, 114, 32, 124, 9, 13, 10, 32,
176
+ 92, 124, 9, 13, 10, 92, 124, 10,
177
+ 92, 10, 32, 92, 124, 9, 13, 10,
178
+ 32, 34, 35, 37, 42, 64, 65, 67,
179
+ 68, 69, 80, 89, 124, 9, 13, 10,
180
+ 97, 117, 10, 114, 10, 97, 10, 99,
181
+ 10, 116, 10, 101, 10, 114, -61, 10,
182
+ -83, 10, 10, 115, 10, 116, 10, 105,
183
+ 10, 99, 10, 97, 10, 58, 10, 97,
184
+ 10, 110, 10, 100, 10, 111, 10, 97,
185
+ 10, 110, 115, 10, 116, 10, 111, 10,
186
+ 110, 10, 99, 10, 101, 10, 115, 10,
187
+ 99, 113, 10, 101, 10, 110, 10, 97,
188
+ 10, 114, 10, 105, 10, 111, 10, 117,
189
+ 10, 101, 10, 109, 10, 97, 10, 32,
190
+ 10, 100, 10, 101, 10, 108, 10, 32,
191
+ 10, 101, 10, 115, 10, 99, 10, 101,
192
+ 10, 114, 187, 191, 0
193
+ ];
194
+
195
+ const _lexer_single_lengths = [
196
+ 0, 15, 14, 1, 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, 109,
308
+ 114, 121, 126, 128, 130, 132, 134, 136,
309
+ 138, 140, 142, 144, 146, 148, 150, 152,
310
+ 154, 167, 170, 173, 176, 179, 182, 185,
311
+ 188, 191, 194, 197, 200, 203, 206, 209,
312
+ 212, 228, 231, 233, 235, 237, 239, 241,
313
+ 243, 245, 247, 249, 251, 253, 255, 257,
314
+ 259, 261, 263, 273, 276, 279, 282, 285,
315
+ 288, 291, 294, 297, 300, 303, 306, 309,
316
+ 312, 315, 318, 321, 324, 327, 330, 333,
317
+ 336, 339, 342, 345, 348, 351, 354, 357,
318
+ 360, 363, 366, 369, 372, 375, 378, 381,
319
+ 384, 387, 390, 393, 397, 400, 403, 406,
320
+ 409, 412, 416, 419, 422, 425, 428, 431,
321
+ 434, 437, 440, 443, 446, 449, 452, 455,
322
+ 458, 461, 464, 467, 470, 472, 474, 476,
323
+ 478, 480, 484, 486, 488, 490, 492, 494,
324
+ 496, 498, 500, 502, 509, 512, 515, 518,
325
+ 521, 524, 527, 530, 533, 536, 539, 542,
326
+ 545, 548, 551, 554, 556, 558, 560, 562,
327
+ 564, 566, 569, 571, 573, 575, 577, 579,
328
+ 581, 583, 585, 587, 601, 604, 607, 610,
329
+ 613, 616, 619, 622, 625, 628, 631, 634,
330
+ 637, 640, 643, 646, 649, 652, 655, 658,
331
+ 661, 664, 667, 670, 673, 676, 679, 682,
332
+ 686, 689, 692, 695, 698, 701, 704, 707,
333
+ 710, 713, 716, 719, 722, 725, 728, 731,
334
+ 734, 737, 740, 744, 747, 750, 753, 756,
335
+ 759, 762, 766, 769, 772, 775, 778, 781,
336
+ 784, 787, 790, 793, 796, 799, 802, 805,
337
+ 808, 811, 814, 817, 820, 823, 826, 828,
338
+ 830, 832, 834, 836, 838, 840, 842, 844,
339
+ 846, 848, 850, 852, 854, 856, 858, 860,
340
+ 862, 864, 866, 868, 881, 884, 887, 890,
341
+ 893, 896, 899, 902, 905, 908, 911, 914,
342
+ 917, 920, 923, 926, 930, 933, 936, 939,
343
+ 942, 945, 948, 951, 954, 957, 960, 963,
344
+ 966, 969, 972, 975, 978, 981, 984, 987,
345
+ 991, 994, 997, 1000, 1003, 1006, 1009, 1012,
346
+ 1015, 1018, 1021, 1024, 1027, 1030, 1033, 1036,
347
+ 1038, 1040, 1044, 1050, 1054, 1057, 1063, 1079,
348
+ 1083, 1086, 1089, 1092, 1095, 1098, 1101, 1104,
349
+ 1107, 1110, 1113, 1116, 1119, 1122, 1125, 1128,
350
+ 1131, 1134, 1137, 1140, 1144, 1147, 1150, 1153,
351
+ 1156, 1159, 1162, 1166, 1169, 1172, 1175, 1178,
352
+ 1181, 1184, 1187, 1190, 1193, 1196, 1199, 1202,
353
+ 1205, 1208, 1211, 1214, 1217, 1220, 1223, 1226,
354
+ 1228, 1230
355
+ ];
356
+
357
+ const _lexer_indicies = [
358
+ 2, 1, 3, 4, 5, 6, 7, 8,
359
+ 9, 10, 11, 12, 6, 13, 14, 1,
360
+ 0, 2, 1, 3, 4, 5, 6, 7,
361
+ 8, 9, 10, 11, 12, 6, 13, 1,
362
+ 0, 15, 0, 16, 0, 17, 16, 16,
363
+ 0, 20, 19, 21, 19, 18, 24, 23,
364
+ 25, 23, 22, 24, 23, 26, 23, 22,
365
+ 24, 23, 27, 23, 22, 29, 28, 28,
366
+ 0, 2, 30, 30, 0, 32, 33, 31,
367
+ 2, 0, 34, 0, 35, 0, 36, 0,
368
+ 37, 0, 38, 0, 39, 0, 40, 0,
369
+ 41, 0, 42, 0, 43, 0, 44, 0,
370
+ 45, 0, 46, 0, 47, 0, 48, 0,
371
+ 0, 49, 51, 52, 50, 0, 0, 0,
372
+ 0, 53, 54, 55, 54, 54, 57, 56,
373
+ 53, 2, 58, 7, 58, 0, 59, 0,
374
+ 60, 0, 61, 0, 62, 0, 63, 0,
375
+ 64, 0, 65, 0, 66, 0, 67, 0,
376
+ 68, 0, 69, 0, 70, 0, 72, 71,
377
+ 74, 73, 74, 75, 76, 77, 78, 76,
378
+ 79, 80, 81, 82, 78, 75, 73, 74,
379
+ 83, 73, 74, 84, 73, 74, 85, 73,
380
+ 74, 86, 73, 74, 87, 73, 74, 88,
381
+ 73, 74, 89, 73, 74, 90, 73, 74,
382
+ 91, 73, 74, 92, 73, 74, 93, 73,
383
+ 74, 94, 73, 74, 95, 73, 74, 96,
384
+ 73, 74, 97, 73, 99, 98, 100, 101,
385
+ 102, 103, 104, 105, 106, 107, 108, 109,
386
+ 103, 110, 98, 0, 111, 112, 0, 113,
387
+ 0, 114, 0, 115, 0, 116, 0, 117,
388
+ 0, 118, 0, 119, 0, 120, 0, 121,
389
+ 0, 122, 0, 123, 0, 124, 0, 125,
390
+ 0, 126, 0, 128, 127, 130, 129, 130,
391
+ 131, 132, 133, 132, 134, 135, 136, 131,
392
+ 129, 130, 137, 129, 130, 138, 129, 130,
393
+ 139, 129, 130, 140, 129, 130, 141, 129,
394
+ 130, 142, 129, 130, 143, 129, 130, 144,
395
+ 129, 130, 145, 129, 130, 146, 129, 130,
396
+ 147, 129, 130, 148, 129, 130, 149, 129,
397
+ 130, 150, 129, 130, 151, 129, 130, 152,
398
+ 129, 130, 153, 129, 130, 154, 129, 130,
399
+ 155, 129, 130, 156, 129, 130, 157, 129,
400
+ 130, 158, 129, 130, 159, 129, 130, 160,
401
+ 129, 130, 161, 129, 130, 162, 129, 130,
402
+ 163, 129, 130, 164, 129, 130, 165, 129,
403
+ 130, 166, 129, 130, 167, 129, 130, 168,
404
+ 129, 130, 169, 129, 170, 130, 129, 171,
405
+ 130, 129, 130, 172, 129, 130, 173, 129,
406
+ 130, 174, 129, 130, 175, 129, 130, 161,
407
+ 129, 130, 176, 177, 129, 130, 178, 129,
408
+ 130, 179, 129, 130, 180, 129, 130, 181,
409
+ 129, 130, 160, 129, 130, 182, 183, 129,
410
+ 130, 184, 129, 130, 185, 129, 130, 186,
411
+ 129, 130, 187, 129, 130, 188, 129, 130,
412
+ 161, 129, 130, 189, 129, 130, 190, 129,
413
+ 130, 191, 129, 130, 192, 129, 130, 193,
414
+ 129, 130, 194, 129, 130, 195, 129, 130,
415
+ 196, 129, 130, 197, 129, 130, 198, 129,
416
+ 130, 199, 129, 130, 182, 129, 200, 0,
417
+ 201, 0, 202, 0, 203, 0, 201, 0,
418
+ 204, 205, 206, 0, 207, 0, 208, 0,
419
+ 209, 0, 210, 0, 211, 0, 212, 0,
420
+ 213, 0, 215, 214, 217, 216, 217, 218,
421
+ 219, 220, 219, 218, 216, 217, 221, 216,
422
+ 217, 222, 216, 217, 223, 216, 217, 224,
423
+ 216, 217, 225, 216, 217, 226, 216, 217,
424
+ 227, 216, 228, 217, 216, 229, 217, 216,
425
+ 217, 230, 216, 217, 231, 216, 217, 232,
426
+ 216, 217, 233, 216, 217, 234, 216, 217,
427
+ 235, 216, 236, 0, 237, 0, 238, 0,
428
+ 239, 0, 240, 0, 203, 0, 241, 242,
429
+ 0, 243, 0, 244, 0, 245, 0, 246,
430
+ 0, 247, 0, 248, 0, 249, 0, 251,
431
+ 250, 253, 252, 253, 254, 255, 256, 257,
432
+ 255, 258, 259, 260, 261, 262, 257, 254,
433
+ 252, 253, 263, 252, 253, 264, 252, 253,
434
+ 265, 252, 253, 266, 252, 253, 267, 252,
435
+ 253, 268, 252, 253, 269, 252, 253, 270,
436
+ 252, 253, 271, 252, 253, 272, 252, 253,
437
+ 273, 252, 253, 274, 252, 253, 275, 252,
438
+ 253, 276, 252, 253, 277, 252, 253, 278,
439
+ 252, 253, 279, 252, 253, 280, 252, 253,
440
+ 281, 252, 253, 282, 252, 253, 283, 252,
441
+ 253, 284, 252, 253, 285, 252, 253, 286,
442
+ 252, 253, 287, 252, 253, 288, 252, 253,
443
+ 277, 252, 253, 289, 290, 252, 253, 291,
444
+ 252, 253, 292, 252, 253, 293, 252, 253,
445
+ 294, 252, 253, 295, 252, 253, 296, 252,
446
+ 297, 253, 252, 298, 253, 252, 253, 299,
447
+ 252, 253, 300, 252, 253, 301, 252, 253,
448
+ 302, 252, 253, 288, 252, 253, 303, 252,
449
+ 253, 304, 252, 253, 305, 252, 253, 306,
450
+ 252, 253, 304, 252, 253, 307, 308, 252,
451
+ 253, 309, 252, 253, 310, 252, 253, 311,
452
+ 252, 253, 312, 252, 253, 313, 252, 253,
453
+ 306, 252, 253, 314, 315, 252, 253, 316,
454
+ 252, 253, 317, 252, 253, 318, 252, 253,
455
+ 319, 252, 253, 320, 252, 253, 288, 252,
456
+ 253, 321, 252, 253, 322, 252, 253, 323,
457
+ 252, 253, 324, 252, 253, 325, 252, 253,
458
+ 326, 252, 253, 327, 252, 253, 328, 252,
459
+ 253, 329, 252, 253, 330, 252, 253, 331,
460
+ 252, 253, 314, 252, 253, 332, 252, 253,
461
+ 305, 252, 333, 0, 334, 0, 335, 0,
462
+ 336, 0, 337, 0, 338, 0, 339, 0,
463
+ 340, 0, 341, 0, 342, 0, 343, 0,
464
+ 344, 0, 345, 0, 346, 0, 347, 0,
465
+ 348, 0, 349, 0, 350, 0, 351, 0,
466
+ 353, 352, 355, 354, 355, 356, 357, 358,
467
+ 359, 357, 360, 361, 362, 363, 359, 356,
468
+ 354, 355, 364, 354, 355, 365, 354, 355,
469
+ 366, 354, 355, 367, 354, 355, 368, 354,
470
+ 355, 369, 354, 355, 370, 354, 355, 371,
471
+ 354, 355, 372, 354, 355, 373, 354, 355,
472
+ 374, 354, 355, 375, 354, 355, 376, 354,
473
+ 355, 377, 354, 355, 378, 354, 355, 379,
474
+ 380, 354, 355, 381, 354, 355, 382, 354,
475
+ 355, 383, 354, 355, 384, 354, 355, 385,
476
+ 354, 355, 386, 354, 387, 355, 354, 388,
477
+ 355, 354, 355, 389, 354, 355, 390, 354,
478
+ 355, 391, 354, 355, 392, 354, 355, 393,
479
+ 354, 355, 378, 354, 355, 394, 354, 355,
480
+ 395, 354, 355, 396, 354, 355, 397, 354,
481
+ 355, 395, 354, 355, 398, 399, 354, 355,
482
+ 400, 354, 355, 401, 354, 355, 402, 354,
483
+ 355, 403, 354, 355, 404, 354, 355, 397,
484
+ 354, 355, 405, 354, 355, 406, 354, 355,
485
+ 407, 354, 355, 408, 354, 355, 409, 354,
486
+ 355, 410, 354, 355, 393, 354, 355, 411,
487
+ 354, 355, 396, 354, 412, 0, 202, 0,
488
+ 413, 414, 413, 0, 417, 416, 418, 419,
489
+ 416, 415, 0, 421, 422, 420, 0, 421,
490
+ 420, 417, 423, 421, 422, 423, 420, 417,
491
+ 424, 425, 426, 427, 428, 429, 430, 431,
492
+ 432, 433, 434, 428, 435, 424, 0, 74,
493
+ 436, 437, 73, 74, 438, 73, 74, 439,
494
+ 73, 74, 440, 73, 74, 441, 73, 74,
495
+ 442, 73, 74, 443, 73, 444, 74, 73,
496
+ 445, 74, 73, 74, 446, 73, 74, 447,
497
+ 73, 74, 448, 73, 74, 449, 73, 74,
498
+ 450, 73, 74, 97, 73, 74, 451, 73,
499
+ 74, 452, 73, 74, 453, 73, 74, 454,
500
+ 73, 74, 452, 73, 74, 455, 456, 73,
501
+ 74, 457, 73, 74, 458, 73, 74, 459,
502
+ 73, 74, 460, 73, 74, 461, 73, 74,
503
+ 454, 73, 74, 462, 463, 73, 74, 464,
504
+ 73, 74, 465, 73, 74, 466, 73, 74,
505
+ 467, 73, 74, 468, 73, 74, 450, 73,
506
+ 74, 469, 73, 74, 470, 73, 74, 471,
507
+ 73, 74, 472, 73, 74, 473, 73, 74,
508
+ 474, 73, 74, 475, 73, 74, 476, 73,
509
+ 74, 477, 73, 74, 478, 73, 74, 479,
510
+ 73, 74, 462, 73, 74, 480, 73, 74,
511
+ 453, 73, 481, 0, 1, 0, 482, 0
512
+ ];
513
+
514
+ const _lexer_trans_targs = [
515
+ 0, 2, 2, 3, 12, 14, 28, 31,
516
+ 34, 65, 152, 153, 343, 345, 399, 4,
517
+ 5, 6, 7, 7, 7, 8, 7, 7,
518
+ 7, 8, 9, 10, 11, 2, 11, 12,
519
+ 2, 13, 15, 16, 17, 18, 19, 20,
520
+ 21, 22, 23, 24, 25, 26, 27, 401,
521
+ 29, 30, 30, 2, 13, 32, 33, 2,
522
+ 32, 31, 33, 35, 36, 37, 38, 39,
523
+ 40, 41, 42, 43, 44, 45, 46, 47,
524
+ 48, 47, 48, 48, 2, 49, 63, 351,
525
+ 370, 371, 397, 50, 51, 52, 53, 54,
526
+ 55, 56, 57, 58, 59, 60, 61, 62,
527
+ 2, 64, 2, 2, 3, 12, 14, 28,
528
+ 31, 34, 65, 152, 153, 343, 345, 66,
529
+ 148, 67, 68, 69, 70, 71, 72, 73,
530
+ 74, 75, 76, 77, 78, 79, 80, 81,
531
+ 82, 81, 82, 82, 2, 83, 97, 109,
532
+ 123, 84, 85, 86, 87, 88, 89, 90,
533
+ 91, 92, 93, 94, 95, 96, 2, 98,
534
+ 99, 100, 101, 102, 103, 104, 105, 106,
535
+ 107, 108, 64, 110, 111, 112, 113, 114,
536
+ 115, 116, 117, 118, 119, 120, 121, 122,
537
+ 124, 129, 125, 126, 127, 128, 130, 136,
538
+ 131, 132, 133, 134, 135, 137, 138, 139,
539
+ 140, 141, 142, 143, 144, 145, 146, 147,
540
+ 149, 150, 151, 28, 154, 179, 185, 155,
541
+ 156, 157, 158, 159, 160, 161, 162, 163,
542
+ 162, 163, 163, 2, 164, 165, 166, 167,
543
+ 168, 169, 170, 171, 172, 173, 174, 175,
544
+ 176, 177, 178, 64, 180, 181, 182, 183,
545
+ 184, 186, 270, 187, 188, 189, 190, 191,
546
+ 192, 193, 194, 195, 194, 195, 195, 2,
547
+ 196, 210, 211, 223, 241, 242, 268, 197,
548
+ 198, 199, 200, 201, 202, 203, 204, 205,
549
+ 206, 207, 208, 209, 2, 64, 212, 213,
550
+ 214, 215, 216, 217, 218, 219, 220, 221,
551
+ 222, 224, 237, 225, 226, 227, 228, 229,
552
+ 230, 231, 232, 233, 234, 235, 236, 238,
553
+ 239, 240, 210, 243, 249, 244, 245, 246,
554
+ 247, 248, 250, 256, 251, 252, 253, 254,
555
+ 255, 257, 258, 259, 260, 261, 262, 263,
556
+ 264, 265, 266, 267, 269, 271, 272, 273,
557
+ 274, 275, 276, 277, 278, 279, 280, 281,
558
+ 282, 283, 284, 285, 286, 287, 288, 289,
559
+ 290, 291, 290, 291, 291, 2, 292, 306,
560
+ 307, 326, 327, 341, 293, 294, 295, 296,
561
+ 297, 298, 299, 300, 301, 302, 303, 304,
562
+ 305, 2, 64, 308, 322, 309, 310, 311,
563
+ 312, 313, 314, 315, 316, 317, 318, 319,
564
+ 320, 321, 323, 324, 325, 306, 328, 334,
565
+ 329, 330, 331, 332, 333, 335, 336, 337,
566
+ 338, 339, 340, 342, 344, 345, 346, 347,
567
+ 349, 350, 348, 346, 347, 348, 346, 349,
568
+ 350, 3, 12, 14, 28, 31, 34, 65,
569
+ 152, 153, 343, 345, 352, 366, 353, 354,
570
+ 355, 356, 357, 358, 359, 360, 361, 362,
571
+ 363, 364, 365, 367, 368, 369, 63, 372,
572
+ 378, 373, 374, 375, 376, 377, 379, 385,
573
+ 380, 381, 382, 383, 384, 386, 387, 388,
574
+ 389, 390, 391, 392, 393, 394, 395, 396,
575
+ 398, 400, 0
576
+ ];
577
+
578
+ const _lexer_trans_actions = [
579
+ 39, 0, 47, 3, 1, 0, 25, 1,
580
+ 25, 25, 25, 25, 25, 31, 0, 0,
581
+ 0, 47, 5, 41, 119, 41, 0, 29,
582
+ 111, 29, 29, 0, 7, 95, 0, 0,
583
+ 103, 21, 0, 0, 0, 0, 0, 0,
584
+ 0, 0, 0, 0, 0, 0, 0, 0,
585
+ 0, 50, 0, 99, 19, 0, 23, 107,
586
+ 23, 44, 0, 0, 0, 0, 0, 0,
587
+ 0, 0, 0, 0, 0, 0, 0, 50,
588
+ 124, 0, 47, 0, 65, 29, 77, 77,
589
+ 77, 77, 77, 0, 0, 0, 0, 0,
590
+ 0, 0, 0, 0, 0, 0, 0, 0,
591
+ 11, 11, 27, 115, 53, 50, 27, 56,
592
+ 50, 56, 56, 56, 56, 56, 59, 0,
593
+ 0, 0, 0, 0, 0, 0, 0, 0,
594
+ 0, 0, 0, 0, 0, 0, 0, 50,
595
+ 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0, 0, 0, 0, 33,
631
+ 33, 47, 33, 80, 0, 0, 35, 0,
632
+ 0, 86, 83, 37, 89, 83, 89, 89,
633
+ 89, 89, 89, 92, 0, 0, 0, 0,
634
+ 0, 0, 0, 0, 0, 0, 0, 0,
635
+ 0, 0, 0, 0, 0, 0, 0, 0,
636
+ 0, 0, 0, 0, 0, 0, 0, 0,
637
+ 0, 0, 0, 0, 0, 0, 0, 0,
638
+ 0, 0, 0, 0, 0, 0, 0, 0,
639
+ 0, 0, 0
640
+ ];
641
+
642
+ const _lexer_eof_actions = [
643
+ 0, 39, 39, 39, 39, 39, 39, 39,
644
+ 39, 39, 39, 39, 39, 39, 39, 39,
645
+ 39, 39, 39, 39, 39, 39, 39, 39,
646
+ 39, 39, 39, 39, 39, 39, 39, 39,
647
+ 39, 39, 39, 39, 39, 39, 39, 39,
648
+ 39, 39, 39, 39, 39, 39, 39, 39,
649
+ 39, 39, 39, 39, 39, 39, 39, 39,
650
+ 39, 39, 39, 39, 39, 39, 39, 39,
651
+ 39, 39, 39, 39, 39, 39, 39, 39,
652
+ 39, 39, 39, 39, 39, 39, 39, 39,
653
+ 39, 39, 39, 39, 39, 39, 39, 39,
654
+ 39, 39, 39, 39, 39, 39, 39, 39,
655
+ 39, 39, 39, 39, 39, 39, 39, 39,
656
+ 39, 39, 39, 39, 39, 39, 39, 39,
657
+ 39, 39, 39, 39, 39, 39, 39, 39,
658
+ 39, 39, 39, 39, 39, 39, 39, 39,
659
+ 39, 39, 39, 39, 39, 39, 39, 39,
660
+ 39, 39, 39, 39, 39, 39, 39, 39,
661
+ 39, 39, 39, 39, 39, 39, 39, 39,
662
+ 39, 39, 39, 39, 39, 39, 39, 39,
663
+ 39, 39, 39, 39, 39, 39, 39, 39,
664
+ 39, 39, 39, 39, 39, 39, 39, 39,
665
+ 39, 39, 39, 39, 39, 39, 39, 39,
666
+ 39, 39, 39, 39, 39, 39, 39, 39,
667
+ 39, 39, 39, 39, 39, 39, 39, 39,
668
+ 39, 39, 39, 39, 39, 39, 39, 39,
669
+ 39, 39, 39, 39, 39, 39, 39, 39,
670
+ 39, 39, 39, 39, 39, 39, 39, 39,
671
+ 39, 39, 39, 39, 39, 39, 39, 39,
672
+ 39, 39, 39, 39, 39, 39, 39, 39,
673
+ 39, 39, 39, 39, 39, 39, 39, 39,
674
+ 39, 39, 39, 39, 39, 39, 39, 39,
675
+ 39, 39, 39, 39, 39, 39, 39, 39,
676
+ 39, 39, 39, 39, 39, 39, 39, 39,
677
+ 39, 39, 39, 39, 39, 39, 39, 39,
678
+ 39, 39, 39, 39, 39, 39, 39, 39,
679
+ 39, 39, 39, 39, 39, 39, 39, 39,
680
+ 39, 39, 39, 39, 39, 39, 39, 39,
681
+ 39, 39, 39, 39, 39, 39, 39, 39,
682
+ 39, 39, 39, 39, 39, 39, 39, 39,
683
+ 39, 39, 39, 39, 39, 39, 39, 39,
684
+ 39, 39, 39, 39, 39, 39, 39, 39,
685
+ 39, 39, 39, 39, 39, 39, 39, 39,
686
+ 39, 39, 39, 39, 39, 39, 39, 39,
687
+ 39, 39, 39, 39, 39, 39, 39, 39,
688
+ 39, 39, 39, 39, 39, 39, 39, 39,
689
+ 39, 39, 39, 39, 39, 39, 39, 39,
690
+ 39, 39, 39, 39, 39, 39, 39, 39,
691
+ 39, 39, 39, 39, 39, 39, 39, 39,
692
+ 39, 39, 39, 39, 39, 39, 39, 39,
693
+ 39, 39
694
+ ];
695
+
696
+ const lexer_start = 1;
697
+ const lexer_first_final = 401;
698
+ const lexer_error = 0;
699
+
700
+ const lexer_en_main = 1;
701
+
702
+
703
+ /* line 110 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
704
+
705
+ /* line 111 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
706
+
707
+ /* line 112 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
708
+
709
+ var Lexer = function(listeners) {
710
+ // check that we have an 'on' method (for registering event listeners - Node has that)
711
+ // If not, make a trivial implementation that can register one listener. -Enough for testing.
712
+
713
+ if(!this.on) {
714
+ this._listeners = {};
715
+
716
+ this.on = function(event, cb) {
717
+ this._listeners[event] = cb;
718
+ };
719
+
720
+ this.emit = function() {
721
+ var event = arguments[0];
722
+ var args = [];
723
+ for(var i = 1; i < arguments.length; i++) {
724
+ args.push(arguments[i]);
725
+ }
726
+ var cb = this._listeners[event];
727
+ cb.apply(listeners, args);
728
+ };
729
+ }
730
+
731
+ var events = ['feature', 'background', 'scenario', 'scenario_outline', 'examples', 'step', 'py_string', 'row', 'end'];
732
+ for(e in events) {
733
+ var event = events[e];
734
+ var listener = listeners[event];
735
+ // if(!listener) {
736
+ // throw "No listener for " + event;
737
+ // }
738
+ this.on(event, listener);
739
+ }
740
+
741
+
742
+ /* line 743 "js/lib/gherkin/lexer/i18n/es.js" */
743
+ {
744
+ this.cs = lexer_start;
745
+ } /* JSCodeGen::writeInit */
746
+
747
+ /* line 146 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
748
+ };
749
+
750
+ if(typeof require == 'function') {
751
+ require('sys').inherits(Lexer, require('events').EventEmitter);
752
+ }
753
+
754
+ Lexer.prototype.scan = function(data) {
755
+ var p = 0;
756
+ var pe = data.length;
757
+ var eof = 0;
758
+
759
+
760
+ /* line 761 "js/lib/gherkin/lexer/i18n/es.js" */
761
+ {
762
+ var _klen, _trans, _keys, _ps, _widec, _acts, _nacts;
763
+ var _goto_level, _resume, _eof_trans, _again, _test_eof;
764
+ var _out;
765
+ _klen = _trans = _keys = _acts = _nacts = null;
766
+ _goto_level = 0;
767
+ _resume = 10;
768
+ _eof_trans = 15;
769
+ _again = 20;
770
+ _test_eof = 30;
771
+ _out = 40;
772
+ while (true) {
773
+ _trigger_goto = false;
774
+ if (_goto_level <= 0) {
775
+ if (p == pe) {
776
+ _goto_level = _test_eof;
777
+ continue;
778
+ }
779
+ if ( this.cs == 0) {
780
+ _goto_level = _out;
781
+ continue;
782
+ }
783
+ }
784
+ if (_goto_level <= _resume) {
785
+ _keys = _lexer_key_offsets[ this.cs];
786
+ _trans = _lexer_index_offsets[ this.cs];
787
+ _klen = _lexer_single_lengths[ this.cs];
788
+ _break_match = false;
789
+
790
+ do {
791
+ if (_klen > 0) {
792
+ _lower = _keys;
793
+ _upper = _keys + _klen - 1;
794
+
795
+ while (true) {
796
+ if (_upper < _lower) { break; }
797
+ _mid = _lower + ( (_upper - _lower) >> 1 );
798
+
799
+ if ( data[p] < _lexer_trans_keys[_mid]) {
800
+ _upper = _mid - 1;
801
+ } else if ( data[p] > _lexer_trans_keys[_mid]) {
802
+ _lower = _mid + 1;
803
+ } else {
804
+ _trans += (_mid - _keys);
805
+ _break_match = true;
806
+ break;
807
+ };
808
+ } /* while */
809
+ if (_break_match) { break; }
810
+ _keys += _klen;
811
+ _trans += _klen;
812
+ }
813
+ _klen = _lexer_range_lengths[ this.cs];
814
+ if (_klen > 0) {
815
+ _lower = _keys;
816
+ _upper = _keys + (_klen << 1) - 2;
817
+ while (true) {
818
+ if (_upper < _lower) { break; }
819
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
820
+ if ( data[p] < _lexer_trans_keys[_mid]) {
821
+ _upper = _mid - 2;
822
+ } else if ( data[p] > _lexer_trans_keys[_mid+1]) {
823
+ _lower = _mid + 2;
824
+ } else {
825
+ _trans += ((_mid - _keys) >> 1);
826
+ _break_match = true;
827
+ break;
828
+ }
829
+ } /* while */
830
+ if (_break_match) { break; }
831
+ _trans += _klen
832
+ }
833
+ } while (false);
834
+ _trans = _lexer_indicies[_trans];
835
+ this.cs = _lexer_trans_targs[_trans];
836
+ if (_lexer_trans_actions[_trans] != 0) {
837
+ _acts = _lexer_trans_actions[_trans];
838
+ _nacts = _lexer_actions[_acts];
839
+ _acts += 1;
840
+ while (_nacts > 0) {
841
+ _nacts -= 1;
842
+ _acts += 1;
843
+ switch (_lexer_actions[_acts - 1]) {
844
+ case 0:
845
+ /* line 6 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
846
+
847
+ this.content_start = p;
848
+ this.current_line = this.line_number;
849
+ this.start_col = p - this.last_newline - (this.keyword+':').length;
850
+ break;
851
+ case 1:
852
+ /* line 12 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
853
+
854
+ this.current_line = this.line_number;
855
+ this.start_col = p - this.last_newline;
856
+ break;
857
+ case 2:
858
+ /* line 17 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
859
+
860
+ this.content_start = p;
861
+ break;
862
+ case 3:
863
+ /* line 21 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
864
+
865
+ var con = this.unindent(
866
+ this.start_col,
867
+ this.bytesToString(data.slice(this.content_start, this.next_keyword_start-1)).replace(/(\r?\n)?([\t ])*\Z/, '') // TODO .replace(/\"\"\"/mg, '"""')
868
+ );
869
+ this.emit('py_string', con, this.current_line);
870
+ break;
871
+ case 4:
872
+ /* line 29 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
873
+
874
+ p = this.store_keyword_content('feature', data, p, eof);
875
+ break;
876
+ case 5:
877
+ /* line 33 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
878
+
879
+ p = this.store_keyword_content('background', data, p, eof);
880
+ break;
881
+ case 6:
882
+ /* line 37 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
883
+
884
+ p = this.store_keyword_content('scenario', data, p, eof);
885
+ break;
886
+ case 7:
887
+ /* line 41 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
888
+
889
+ p = this.store_keyword_content('scenario_outline', data, p, eof);
890
+ break;
891
+ case 8:
892
+ /* line 45 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
893
+
894
+ p = this.store_keyword_content('examples', data, p, eof);
895
+ break;
896
+ case 9:
897
+ /* line 49 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
898
+
899
+ var con = this.bytesToString(data.slice(this.content_start, p)).trim();
900
+ this.emit('step', this.keyword, con, this.current_line);
901
+ break;
902
+ case 10:
903
+ /* line 54 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
904
+
905
+ console.log('TODO: store_comment_content');
906
+ break;
907
+ case 11:
908
+ /* line 58 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
909
+
910
+ console.log('TODO: store_tag_content');
911
+ break;
912
+ case 12:
913
+ /* line 62 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
914
+
915
+ this.line_number++;
916
+ break;
917
+ case 13:
918
+ /* line 66 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
919
+
920
+ this.last_newline = p + 1;
921
+ break;
922
+ case 14:
923
+ /* line 70 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
924
+
925
+ this.keyword_start = this.keyword_start || p;
926
+ break;
927
+ case 15:
928
+ /* line 74 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
929
+
930
+ this.keyword = this.bytesToString(data.slice(this.keyword_start, p)).replace(/:$/, '');
931
+ this.keyword_start = null;
932
+ break;
933
+ case 16:
934
+ /* line 79 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
935
+
936
+ this.next_keyword_start = p;
937
+ break;
938
+ case 17:
939
+ /* line 83 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
940
+
941
+ p = p - 1;
942
+ current_row = [];
943
+ this.current_line = this.line_number;
944
+ break;
945
+ case 18:
946
+ /* line 89 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
947
+
948
+ this.content_start = p;
949
+ break;
950
+ case 19:
951
+ /* line 93 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
952
+
953
+ var con = this.bytesToString(data.slice(this.content_start, p)).trim();
954
+ current_row.push(con.replace(/\\\|/, "|").replace(/\\n/, "\n").replace(/\\\\/, "\\"));
955
+ break;
956
+ case 20:
957
+ /* line 98 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
958
+
959
+ this.emit('row', current_row, this.current_line);
960
+ break;
961
+ case 21:
962
+ /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
963
+
964
+ console.log('TODO: end_feature');
965
+ break;
966
+ /* line 967 "js/lib/gherkin/lexer/i18n/es.js" */
967
+ } /* action switch */
968
+ }
969
+ }
970
+ if (_trigger_goto) {
971
+ continue;
972
+ }
973
+ }
974
+ if (_goto_level <= _again) {
975
+ if ( this.cs == 0) {
976
+ _goto_level = _out;
977
+ continue;
978
+ }
979
+ p += 1;
980
+ if (p != pe) {
981
+ _goto_level = _resume;
982
+ continue;
983
+ }
984
+ }
985
+ if (_goto_level <= _test_eof) {
986
+ if (p == eof) {
987
+ __acts = _lexer_eof_actions[ this.cs];
988
+ __nacts = _lexer_actions[__acts];
989
+ __acts += 1;
990
+ while (__nacts > 0) {
991
+ __nacts -= 1;
992
+ __acts += 1;
993
+ switch (_lexer_actions[__acts - 1]) {
994
+ case 21:
995
+ /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
996
+
997
+ console.log('TODO: end_feature');
998
+ break;
999
+ /* line 1000 "js/lib/gherkin/lexer/i18n/es.js" */
1000
+ } /* eof action switch */
1001
+ }
1002
+ if (_trigger_goto) {
1003
+ continue;
1004
+ }
1005
+ }
1006
+ }
1007
+ if (_goto_level <= _out) {
1008
+ break;
1009
+ }
1010
+ }
1011
+ }
1012
+
1013
+ /* line 158 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/es.js.rl" */
1014
+ };
1015
+
1016
+ Lexer.prototype.bytesToString = function(bytes) {
1017
+ if(typeof bytes.write == 'function') {
1018
+ // Node.js
1019
+ return bytes.toString('utf-8');
1020
+ } else {
1021
+ var result = "";
1022
+ for(var b in bytes) {
1023
+ result += String.fromCharCode(bytes[b]);
1024
+ }
1025
+ return result;
1026
+ }
1027
+ }
1028
+
1029
+ Lexer.prototype.unindent = function(startcol, text) {
1030
+ startcol = startcol || 0;
1031
+ return text.replace(new RegExp('^[\t ]{0,' + startcol + '}', 'gm'), '');
1032
+ };
1033
+
1034
+ Lexer.prototype.store_keyword_content = function(event, data, p, eof) {
1035
+ var end_point = (!this.next_keyword_start || (p == eof)) ? p : this.next_keyword_start;
1036
+ var content = this.unindent(this.start_col + 2, this.bytesToString(data.slice(this.content_start, end_point))).trimRight();
1037
+ var content_lines = content.split("\n")
1038
+ var name = content_lines.shift() || "";
1039
+ name = name.trim();
1040
+ var description = content_lines.join("\n");
1041
+ this.emit(event, this.keyword, name, description, this.current_line);
1042
+ var nks = this.next_keyword_start;
1043
+ this.next_keyword_start = null;
1044
+ return nks ? nks - 1 : p;
1045
+ };
1046
+
1047
+ exports.Lexer = Lexer;
1048
+
1049
+ })();