gherkin 2.3.5-x86-mingw32 → 2.3.6-x86-mingw32

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