gherkin 2.3.4-x86-mswin32 → 2.3.5-x86-mswin32

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