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