gherkin 2.12.0 → 2.12.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +6 -14
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +1 -3
  4. data/History.md +18 -0
  5. data/LICENSE +1 -1
  6. data/README.md +22 -28
  7. data/ext/gherkin_lexer_ar/gherkin_lexer_ar.c +466 -466
  8. data/ext/gherkin_lexer_bg/gherkin_lexer_bg.c +2 -2
  9. data/ext/gherkin_lexer_bm/gherkin_lexer_bm.c +535 -395
  10. data/ext/gherkin_lexer_ca/gherkin_lexer_ca.c +2 -2
  11. data/ext/gherkin_lexer_cs/gherkin_lexer_cs.c +2 -2
  12. data/ext/gherkin_lexer_cy_gb/gherkin_lexer_cy_gb.c +2 -2
  13. data/ext/gherkin_lexer_da/gherkin_lexer_da.c +2 -2
  14. data/ext/gherkin_lexer_de/gherkin_lexer_de.c +296 -286
  15. data/ext/gherkin_lexer_el/gherkin_lexer_el.c +2 -2
  16. data/ext/gherkin_lexer_en/gherkin_lexer_en.c +2 -2
  17. data/ext/gherkin_lexer_en_au/gherkin_lexer_en_au.c +2 -2
  18. data/ext/gherkin_lexer_en_lol/gherkin_lexer_en_lol.c +2 -2
  19. data/ext/gherkin_lexer_en_old/gherkin_lexer_en_old.c +2 -2
  20. data/ext/gherkin_lexer_en_pirate/gherkin_lexer_en_pirate.c +2 -2
  21. data/ext/gherkin_lexer_en_scouse/gherkin_lexer_en_scouse.c +2 -2
  22. data/ext/gherkin_lexer_en_tx/gherkin_lexer_en_tx.c +2 -2
  23. data/ext/gherkin_lexer_eo/gherkin_lexer_eo.c +2 -2
  24. data/ext/gherkin_lexer_es/gherkin_lexer_es.c +2 -2
  25. data/ext/gherkin_lexer_et/gherkin_lexer_et.c +2 -2
  26. data/ext/gherkin_lexer_fa/gherkin_lexer_fa.c +2 -2
  27. data/ext/gherkin_lexer_fi/gherkin_lexer_fi.c +2 -2
  28. data/ext/gherkin_lexer_fr/gherkin_lexer_fr.c +2 -2
  29. data/ext/gherkin_lexer_gl/gherkin_lexer_gl.c +2 -2
  30. data/ext/gherkin_lexer_he/gherkin_lexer_he.c +2 -2
  31. data/ext/gherkin_lexer_hi/gherkin_lexer_hi.c +784 -685
  32. data/ext/gherkin_lexer_hr/gherkin_lexer_hr.c +2 -2
  33. data/ext/gherkin_lexer_hu/gherkin_lexer_hu.c +2 -2
  34. data/ext/gherkin_lexer_id/gherkin_lexer_id.c +2 -2
  35. data/ext/gherkin_lexer_is/gherkin_lexer_is.c +2 -2
  36. data/ext/gherkin_lexer_it/gherkin_lexer_it.c +2 -2
  37. data/ext/gherkin_lexer_ja/gherkin_lexer_ja.c +2 -2
  38. data/ext/gherkin_lexer_ko/gherkin_lexer_ko.c +2 -2
  39. data/ext/gherkin_lexer_lt/gherkin_lexer_lt.c +2 -2
  40. data/ext/gherkin_lexer_lu/gherkin_lexer_lu.c +2 -2
  41. data/ext/gherkin_lexer_lv/gherkin_lexer_lv.c +2 -2
  42. data/ext/gherkin_lexer_nl/gherkin_lexer_nl.c +2 -2
  43. data/ext/gherkin_lexer_no/gherkin_lexer_no.c +2 -2
  44. data/ext/gherkin_lexer_pa/extconf.rb +6 -0
  45. data/ext/gherkin_lexer_pa/gherkin_lexer_pa.c +2160 -0
  46. data/ext/gherkin_lexer_pl/gherkin_lexer_pl.c +2 -2
  47. data/ext/gherkin_lexer_pt/gherkin_lexer_pt.c +2 -2
  48. data/ext/gherkin_lexer_ro/gherkin_lexer_ro.c +2 -2
  49. data/ext/gherkin_lexer_ru/gherkin_lexer_ru.c +2 -2
  50. data/ext/gherkin_lexer_sk/gherkin_lexer_sk.c +2 -2
  51. data/ext/gherkin_lexer_sr_cyrl/gherkin_lexer_sr_cyrl.c +2 -2
  52. data/ext/gherkin_lexer_sr_latn/gherkin_lexer_sr_latn.c +586 -589
  53. data/ext/gherkin_lexer_sv/gherkin_lexer_sv.c +2 -2
  54. data/ext/gherkin_lexer_th/extconf.rb +6 -0
  55. data/ext/gherkin_lexer_th/gherkin_lexer_th.c +2840 -0
  56. data/ext/gherkin_lexer_tl/gherkin_lexer_tl.c +2 -2
  57. data/ext/gherkin_lexer_tr/gherkin_lexer_tr.c +2 -2
  58. data/ext/gherkin_lexer_tt/gherkin_lexer_tt.c +2 -2
  59. data/ext/gherkin_lexer_uk/gherkin_lexer_uk.c +2 -2
  60. data/ext/gherkin_lexer_uz/gherkin_lexer_uz.c +586 -594
  61. data/ext/gherkin_lexer_vi/gherkin_lexer_vi.c +2 -2
  62. data/ext/gherkin_lexer_zh_cn/gherkin_lexer_zh_cn.c +2 -2
  63. data/ext/gherkin_lexer_zh_tw/gherkin_lexer_zh_tw.c +2 -2
  64. data/features/.cucumber/stepdefs.json +66 -66
  65. data/gherkin.gemspec +12 -11
  66. data/lib/gherkin/formatter/filter_formatter.rb +1 -1
  67. data/lib/gherkin/i18n.json +38 -10
  68. data/lib/gherkin/i18n.rb +1 -1
  69. data/lib/gherkin/lexer/ar.rb +1167 -0
  70. data/lib/gherkin/lexer/bg.rb +1379 -0
  71. data/lib/gherkin/lexer/bm.rb +1247 -0
  72. data/lib/gherkin/lexer/ca.rb +1307 -0
  73. data/lib/gherkin/lexer/cs.rb +1243 -0
  74. data/lib/gherkin/lexer/cy_gb.rb +1029 -0
  75. data/lib/gherkin/lexer/da.rb +1045 -0
  76. data/lib/gherkin/lexer/de.rb +1163 -0
  77. data/lib/gherkin/lexer/el.rb +1677 -0
  78. data/lib/gherkin/lexer/en.rb +1153 -0
  79. data/lib/gherkin/lexer/en_au.rb +1483 -0
  80. data/lib/gherkin/lexer/en_lol.rb +931 -0
  81. data/lib/gherkin/lexer/en_old.rb +1034 -0
  82. data/lib/gherkin/lexer/en_pirate.rb +1207 -0
  83. data/lib/gherkin/lexer/en_scouse.rb +1359 -0
  84. data/lib/gherkin/lexer/en_tx.rb +1013 -0
  85. data/lib/gherkin/lexer/eo.rb +992 -0
  86. data/lib/gherkin/lexer/es.rb +1137 -0
  87. data/lib/gherkin/lexer/et.rb +987 -0
  88. data/lib/gherkin/lexer/fa.rb +1211 -0
  89. data/lib/gherkin/lexer/fi.rb +966 -0
  90. data/lib/gherkin/lexer/fr.rb +1225 -0
  91. data/lib/gherkin/lexer/gl.rb +1114 -0
  92. data/lib/gherkin/lexer/he.rb +1115 -0
  93. data/lib/gherkin/lexer/hi.rb +1556 -0
  94. data/lib/gherkin/lexer/hr.rb +1063 -0
  95. data/lib/gherkin/lexer/hu.rb +1115 -0
  96. data/lib/gherkin/lexer/id.rb +960 -0
  97. data/lib/gherkin/lexer/is.rb +1117 -0
  98. data/lib/gherkin/lexer/it.rb +1083 -0
  99. data/lib/gherkin/lexer/ja.rb +1415 -0
  100. data/lib/gherkin/lexer/ko.rb +1099 -0
  101. data/lib/gherkin/lexer/lt.rb +1042 -0
  102. data/lib/gherkin/lexer/lu.rb +1129 -0
  103. data/lib/gherkin/lexer/lv.rb +1163 -0
  104. data/lib/gherkin/lexer/nl.rb +1112 -0
  105. data/lib/gherkin/lexer/no.rb +1057 -0
  106. data/lib/gherkin/lexer/pa.rb +1849 -0
  107. data/lib/gherkin/lexer/pl.rb +1454 -0
  108. data/lib/gherkin/lexer/pt.rb +1427 -0
  109. data/lib/gherkin/lexer/ro.rb +1161 -0
  110. data/lib/gherkin/lexer/ru.rb +1763 -0
  111. data/lib/gherkin/lexer/sk.rb +1449 -0
  112. data/lib/gherkin/lexer/sr_cyrl.rb +1800 -0
  113. data/lib/gherkin/lexer/sr_latn.rb +1291 -0
  114. data/lib/gherkin/lexer/sv.rb +1067 -0
  115. data/lib/gherkin/lexer/th.rb +2489 -0
  116. data/lib/gherkin/lexer/tl.rb +1723 -0
  117. data/lib/gherkin/lexer/tr.rb +1089 -0
  118. data/lib/gherkin/lexer/tt.rb +1640 -0
  119. data/lib/gherkin/lexer/uk.rb +1643 -0
  120. data/lib/gherkin/lexer/uz.rb +1373 -0
  121. data/lib/gherkin/lexer/vi.rb +1195 -0
  122. data/lib/gherkin/lexer/zh_cn.rb +1055 -0
  123. data/lib/gherkin/lexer/zh_tw.rb +1049 -0
  124. data/lib/gherkin/platform.rb +2 -2
  125. data/spec/gherkin/formatter/json_formatter_spec.rb +4 -0
  126. data/spec/gherkin/formatter/pretty_formatter_spec.rb +25 -18
  127. data/spec/gherkin/i18n_spec.rb +2 -0
  128. data/tasks/gems.rake +19 -4
  129. data/tasks/ikvm.rake +10 -8
  130. data/tasks/ragel_task.rb +3 -2
  131. data/tasks/rspec.rake +2 -6
  132. metadata +295 -169
@@ -0,0 +1,1045 @@
1
+
2
+ # line 1 "ragel/i18n/da.rb.rl"
3
+ require 'gherkin/native'
4
+
5
+ module Gherkin
6
+ module Lexer
7
+ class Da #:nodoc:
8
+ native_impl('gherkin')
9
+
10
+
11
+ # line 125 "ragel/i18n/da.rb.rl"
12
+
13
+
14
+ def initialize(listener)
15
+ @listener = listener
16
+
17
+ # line 18 "lib/gherkin/lexer/da.rb"
18
+ class << self
19
+ attr_accessor :_lexer_actions
20
+ private :_lexer_actions, :_lexer_actions=
21
+ end
22
+ self._lexer_actions = [
23
+ 0, 1, 0, 1, 1, 1, 2, 1,
24
+ 3, 1, 4, 1, 5, 1, 6, 1,
25
+ 7, 1, 8, 1, 9, 1, 10, 1,
26
+ 11, 1, 12, 1, 13, 1, 16, 1,
27
+ 17, 1, 18, 1, 19, 1, 20, 1,
28
+ 21, 1, 22, 1, 23, 2, 2, 18,
29
+ 2, 3, 4, 2, 13, 0, 2, 14,
30
+ 15, 2, 17, 0, 2, 17, 1, 2,
31
+ 17, 16, 2, 17, 19, 2, 18, 6,
32
+ 2, 18, 7, 2, 18, 8, 2, 18,
33
+ 9, 2, 18, 10, 2, 18, 16, 2,
34
+ 20, 21, 2, 22, 0, 2, 22, 1,
35
+ 2, 22, 16, 2, 22, 19, 3, 4,
36
+ 14, 15, 3, 5, 14, 15, 3, 11,
37
+ 14, 15, 3, 12, 14, 15, 3, 13,
38
+ 14, 15, 3, 14, 15, 18, 3, 17,
39
+ 0, 11, 3, 17, 14, 15, 4, 2,
40
+ 14, 15, 18, 4, 3, 4, 14, 15,
41
+ 4, 17, 0, 14, 15, 5, 17, 0,
42
+ 11, 14, 15
43
+ ]
44
+
45
+ class << self
46
+ attr_accessor :_lexer_key_offsets
47
+ private :_lexer_key_offsets, :_lexer_key_offsets=
48
+ end
49
+ self._lexer_key_offsets = [
50
+ 0, 0, 19, 20, 21, 39, 40, 41,
51
+ 43, 45, 50, 55, 60, 65, 69, 73,
52
+ 75, 76, 77, 78, 79, 80, 81, 82,
53
+ 83, 84, 85, 86, 87, 88, 89, 90,
54
+ 91, 93, 95, 100, 107, 112, 113, 114,
55
+ 115, 116, 117, 118, 119, 120, 121, 122,
56
+ 123, 124, 125, 126, 127, 128, 129, 130,
57
+ 131, 145, 147, 149, 151, 153, 155, 157,
58
+ 159, 161, 163, 165, 167, 169, 171, 173,
59
+ 175, 193, 194, 195, 196, 197, 198, 199,
60
+ 200, 201, 202, 203, 218, 220, 222, 224,
61
+ 226, 228, 230, 232, 234, 236, 238, 240,
62
+ 242, 244, 246, 248, 250, 252, 254, 256,
63
+ 258, 260, 262, 264, 266, 268, 270, 272,
64
+ 274, 276, 278, 280, 282, 284, 286, 288,
65
+ 290, 292, 294, 296, 298, 300, 302, 304,
66
+ 306, 308, 310, 312, 314, 316, 319, 321,
67
+ 323, 325, 327, 329, 331, 333, 335, 336,
68
+ 337, 338, 339, 340, 341, 342, 343, 344,
69
+ 355, 357, 359, 361, 363, 365, 367, 369,
70
+ 371, 373, 375, 377, 379, 381, 383, 385,
71
+ 387, 389, 391, 393, 395, 397, 399, 401,
72
+ 403, 405, 407, 409, 411, 413, 415, 417,
73
+ 419, 421, 423, 425, 427, 429, 431, 434,
74
+ 436, 438, 440, 442, 444, 446, 448, 450,
75
+ 452, 454, 456, 458, 460, 462, 464, 466,
76
+ 468, 470, 472, 474, 475, 476, 477, 478,
77
+ 479, 480, 481, 482, 483, 484, 491, 493,
78
+ 495, 497, 499, 501, 503, 505, 507, 508,
79
+ 509, 510, 511, 512, 513, 514, 515, 516,
80
+ 517, 519, 520, 521, 522, 523, 524, 525,
81
+ 526, 527, 528, 529, 545, 547, 549, 551,
82
+ 553, 555, 557, 559, 561, 563, 565, 567,
83
+ 569, 571, 573, 575, 577, 579, 581, 583,
84
+ 585, 587, 589, 591, 593, 595, 597, 599,
85
+ 601, 603, 605, 607, 609, 611, 613, 615,
86
+ 617, 619, 621, 623, 625, 627, 629, 631,
87
+ 633, 635, 637, 639, 641, 643, 645, 647,
88
+ 649, 651, 653, 655, 657, 660, 662, 664,
89
+ 666, 668, 670, 672, 674, 678, 684, 687,
90
+ 689, 695, 713, 715, 717, 719, 721, 723,
91
+ 725, 727, 729, 731, 733, 735, 737, 739,
92
+ 741, 743, 745, 747, 749, 752, 754, 756,
93
+ 758, 760, 762, 764, 766
94
+ ]
95
+
96
+ class << self
97
+ attr_accessor :_lexer_trans_keys
98
+ private :_lexer_trans_keys, :_lexer_trans_keys=
99
+ end
100
+ self._lexer_trans_keys = [
101
+ -17, 10, 32, 34, 35, 37, 42, 64,
102
+ 65, 66, 69, 71, 77, 78, 79, 83,
103
+ 124, 9, 13, -69, -65, 10, 32, 34,
104
+ 35, 37, 42, 64, 65, 66, 69, 71,
105
+ 77, 78, 79, 83, 124, 9, 13, 34,
106
+ 34, 10, 13, 10, 13, 10, 32, 34,
107
+ 9, 13, 10, 32, 34, 9, 13, 10,
108
+ 32, 34, 9, 13, 10, 32, 34, 9,
109
+ 13, 10, 32, 9, 13, 10, 32, 9,
110
+ 13, 10, 13, 10, 95, 70, 69, 65,
111
+ 84, 85, 82, 69, 95, 69, 78, 68,
112
+ 95, 37, 32, 10, 13, 10, 13, 13,
113
+ 32, 64, 9, 10, 9, 10, 13, 32,
114
+ 64, 11, 12, 10, 32, 64, 9, 13,
115
+ 98, 115, 116, 114, 97, 107, 116, 32,
116
+ 83, 99, 101, 110, 97, 114, 105, 111,
117
+ 58, 10, 10, 10, 32, 35, 37, 42,
118
+ 64, 69, 71, 77, 78, 79, 83, 9,
119
+ 13, 10, 95, 10, 70, 10, 69, 10,
120
+ 65, 10, 84, 10, 85, 10, 82, 10,
121
+ 69, 10, 95, 10, 69, 10, 78, 10,
122
+ 68, 10, 95, 10, 37, 10, 32, 10,
123
+ 32, 34, 35, 37, 42, 64, 65, 66,
124
+ 69, 71, 77, 78, 79, 83, 124, 9,
125
+ 13, 97, 103, 103, 114, 117, 110, 100,
126
+ 58, 10, 10, 10, 32, 35, 37, 42,
127
+ 64, 65, 69, 71, 77, 78, 79, 83,
128
+ 9, 13, 10, 95, 10, 70, 10, 69,
129
+ 10, 65, 10, 84, 10, 85, 10, 82,
130
+ 10, 69, 10, 95, 10, 69, 10, 78,
131
+ 10, 68, 10, 95, 10, 37, 10, 32,
132
+ 10, 98, 10, 115, 10, 116, 10, 114,
133
+ 10, 97, 10, 107, 10, 116, 10, 32,
134
+ 10, 83, 10, 99, 10, 101, 10, 110,
135
+ 10, 97, 10, 114, 10, 105, 10, 111,
136
+ 10, 58, 10, 103, 10, 101, 10, 110,
137
+ 10, 115, 10, 107, 10, 97, 10, 98,
138
+ 10, 105, 10, 118, 10, 101, 10, 116,
139
+ 10, 101, 10, 110, -61, 10, -91, 10,
140
+ 10, 114, 10, 103, -61, 10, 99, -91,
141
+ 10, 10, 101, 10, 110, 10, 97, 10,
142
+ 114, 10, 105, 10, 101, 103, 107, 101,
143
+ 110, 115, 107, 97, 98, 58, 10, 10,
144
+ 10, 32, 35, 37, 64, 65, 66, 69,
145
+ 83, 9, 13, 10, 95, 10, 70, 10,
146
+ 69, 10, 65, 10, 84, 10, 85, 10,
147
+ 82, 10, 69, 10, 95, 10, 69, 10,
148
+ 78, 10, 68, 10, 95, 10, 37, 10,
149
+ 98, 10, 115, 10, 116, 10, 114, 10,
150
+ 97, 10, 107, 10, 116, 10, 32, 10,
151
+ 83, 10, 99, 10, 101, 10, 110, 10,
152
+ 97, 10, 114, 10, 105, 10, 111, 10,
153
+ 58, 10, 97, 10, 103, 10, 103, 10,
154
+ 114, 10, 117, 10, 110, 10, 100, 10,
155
+ 103, 107, 10, 101, 10, 110, 10, 115,
156
+ 10, 107, 10, 97, 10, 98, 10, 115,
157
+ 10, 101, 10, 109, 10, 112, 10, 108,
158
+ 10, 101, 10, 114, 10, 99, 10, 101,
159
+ 10, 110, 10, 97, 10, 114, 10, 105,
160
+ 10, 101, 115, 101, 109, 112, 108, 101,
161
+ 114, 58, 10, 10, 10, 32, 35, 69,
162
+ 124, 9, 13, 10, 103, 10, 101, 10,
163
+ 110, 10, 115, 10, 107, 10, 97, 10,
164
+ 98, 10, 58, 105, 118, 101, 116, 101,
165
+ 110, -61, -91, 114, 103, -61, 99, -91,
166
+ 101, 110, 97, 114, 105, 101, 58, 10,
167
+ 10, 10, 32, 35, 37, 42, 64, 65,
168
+ 66, 69, 71, 77, 78, 79, 83, 9,
169
+ 13, 10, 95, 10, 70, 10, 69, 10,
170
+ 65, 10, 84, 10, 85, 10, 82, 10,
171
+ 69, 10, 95, 10, 69, 10, 78, 10,
172
+ 68, 10, 95, 10, 37, 10, 32, 10,
173
+ 98, 10, 115, 10, 116, 10, 114, 10,
174
+ 97, 10, 107, 10, 116, 10, 32, 10,
175
+ 83, 10, 99, 10, 101, 10, 110, 10,
176
+ 97, 10, 114, 10, 105, 10, 111, 10,
177
+ 58, 10, 97, 10, 103, 10, 103, 10,
178
+ 114, 10, 117, 10, 110, 10, 100, 10,
179
+ 103, 10, 101, 10, 110, 10, 115, 10,
180
+ 107, 10, 97, 10, 98, 10, 105, 10,
181
+ 118, 10, 101, 10, 116, 10, 101, 10,
182
+ 110, -61, 10, -91, 10, 10, 114, 10,
183
+ 103, -61, 10, 99, -91, 10, 10, 101,
184
+ 10, 110, 10, 97, 10, 114, 10, 105,
185
+ 10, 101, 32, 124, 9, 13, 10, 32,
186
+ 92, 124, 9, 13, 10, 92, 124, 10,
187
+ 92, 10, 32, 92, 124, 9, 13, 10,
188
+ 32, 34, 35, 37, 42, 64, 65, 66,
189
+ 69, 71, 77, 78, 79, 83, 124, 9,
190
+ 13, 10, 103, 10, 101, 10, 110, 10,
191
+ 115, 10, 107, 10, 97, 10, 98, 10,
192
+ 58, 10, 105, 10, 118, 10, 101, 10,
193
+ 116, 10, 101, 10, 110, -61, 10, -91,
194
+ 10, 10, 114, 10, 103, -61, 10, 99,
195
+ -91, 10, 10, 101, 10, 110, 10, 97,
196
+ 10, 114, 10, 105, 10, 101, 0
197
+ ]
198
+
199
+ class << self
200
+ attr_accessor :_lexer_single_lengths
201
+ private :_lexer_single_lengths, :_lexer_single_lengths=
202
+ end
203
+ self._lexer_single_lengths = [
204
+ 0, 17, 1, 1, 16, 1, 1, 2,
205
+ 2, 3, 3, 3, 3, 2, 2, 2,
206
+ 1, 1, 1, 1, 1, 1, 1, 1,
207
+ 1, 1, 1, 1, 1, 1, 1, 1,
208
+ 2, 2, 3, 5, 3, 1, 1, 1,
209
+ 1, 1, 1, 1, 1, 1, 1, 1,
210
+ 1, 1, 1, 1, 1, 1, 1, 1,
211
+ 12, 2, 2, 2, 2, 2, 2, 2,
212
+ 2, 2, 2, 2, 2, 2, 2, 2,
213
+ 16, 1, 1, 1, 1, 1, 1, 1,
214
+ 1, 1, 1, 13, 2, 2, 2, 2,
215
+ 2, 2, 2, 2, 2, 2, 2, 2,
216
+ 2, 2, 2, 2, 2, 2, 2, 2,
217
+ 2, 2, 2, 2, 2, 2, 2, 2,
218
+ 2, 2, 2, 2, 2, 2, 2, 2,
219
+ 2, 2, 2, 2, 2, 2, 2, 2,
220
+ 2, 2, 2, 2, 2, 3, 2, 2,
221
+ 2, 2, 2, 2, 2, 2, 1, 1,
222
+ 1, 1, 1, 1, 1, 1, 1, 9,
223
+ 2, 2, 2, 2, 2, 2, 2, 2,
224
+ 2, 2, 2, 2, 2, 2, 2, 2,
225
+ 2, 2, 2, 2, 2, 2, 2, 2,
226
+ 2, 2, 2, 2, 2, 2, 2, 2,
227
+ 2, 2, 2, 2, 2, 2, 3, 2,
228
+ 2, 2, 2, 2, 2, 2, 2, 2,
229
+ 2, 2, 2, 2, 2, 2, 2, 2,
230
+ 2, 2, 2, 1, 1, 1, 1, 1,
231
+ 1, 1, 1, 1, 1, 5, 2, 2,
232
+ 2, 2, 2, 2, 2, 2, 1, 1,
233
+ 1, 1, 1, 1, 1, 1, 1, 1,
234
+ 2, 1, 1, 1, 1, 1, 1, 1,
235
+ 1, 1, 1, 14, 2, 2, 2, 2,
236
+ 2, 2, 2, 2, 2, 2, 2, 2,
237
+ 2, 2, 2, 2, 2, 2, 2, 2,
238
+ 2, 2, 2, 2, 2, 2, 2, 2,
239
+ 2, 2, 2, 2, 2, 2, 2, 2,
240
+ 2, 2, 2, 2, 2, 2, 2, 2,
241
+ 2, 2, 2, 2, 2, 2, 2, 2,
242
+ 2, 2, 2, 2, 3, 2, 2, 2,
243
+ 2, 2, 2, 2, 2, 4, 3, 2,
244
+ 4, 16, 2, 2, 2, 2, 2, 2,
245
+ 2, 2, 2, 2, 2, 2, 2, 2,
246
+ 2, 2, 2, 2, 3, 2, 2, 2,
247
+ 2, 2, 2, 2, 0
248
+ ]
249
+
250
+ class << self
251
+ attr_accessor :_lexer_range_lengths
252
+ private :_lexer_range_lengths, :_lexer_range_lengths=
253
+ end
254
+ self._lexer_range_lengths = [
255
+ 0, 1, 0, 0, 1, 0, 0, 0,
256
+ 0, 1, 1, 1, 1, 1, 1, 0,
257
+ 0, 0, 0, 0, 0, 0, 0, 0,
258
+ 0, 0, 0, 0, 0, 0, 0, 0,
259
+ 0, 0, 1, 1, 1, 0, 0, 0,
260
+ 0, 0, 0, 0, 0, 0, 0, 0,
261
+ 0, 0, 0, 0, 0, 0, 0, 0,
262
+ 1, 0, 0, 0, 0, 0, 0, 0,
263
+ 0, 0, 0, 0, 0, 0, 0, 0,
264
+ 1, 0, 0, 0, 0, 0, 0, 0,
265
+ 0, 0, 0, 1, 0, 0, 0, 0,
266
+ 0, 0, 0, 0, 0, 0, 0, 0,
267
+ 0, 0, 0, 0, 0, 0, 0, 0,
268
+ 0, 0, 0, 0, 0, 0, 0, 0,
269
+ 0, 0, 0, 0, 0, 0, 0, 0,
270
+ 0, 0, 0, 0, 0, 0, 0, 0,
271
+ 0, 0, 0, 0, 0, 0, 0, 0,
272
+ 0, 0, 0, 0, 0, 0, 0, 0,
273
+ 0, 0, 0, 0, 0, 0, 0, 1,
274
+ 0, 0, 0, 0, 0, 0, 0, 0,
275
+ 0, 0, 0, 0, 0, 0, 0, 0,
276
+ 0, 0, 0, 0, 0, 0, 0, 0,
277
+ 0, 0, 0, 0, 0, 0, 0, 0,
278
+ 0, 0, 0, 0, 0, 0, 0, 0,
279
+ 0, 0, 0, 0, 0, 0, 0, 0,
280
+ 0, 0, 0, 0, 0, 0, 0, 0,
281
+ 0, 0, 0, 0, 0, 0, 0, 0,
282
+ 0, 0, 0, 0, 0, 1, 0, 0,
283
+ 0, 0, 0, 0, 0, 0, 0, 0,
284
+ 0, 0, 0, 0, 0, 0, 0, 0,
285
+ 0, 0, 0, 0, 0, 0, 0, 0,
286
+ 0, 0, 0, 1, 0, 0, 0, 0,
287
+ 0, 0, 0, 0, 0, 0, 0, 0,
288
+ 0, 0, 0, 0, 0, 0, 0, 0,
289
+ 0, 0, 0, 0, 0, 0, 0, 0,
290
+ 0, 0, 0, 0, 0, 0, 0, 0,
291
+ 0, 0, 0, 0, 0, 0, 0, 0,
292
+ 0, 0, 0, 0, 0, 0, 0, 0,
293
+ 0, 0, 0, 0, 0, 0, 0, 0,
294
+ 0, 0, 0, 0, 1, 1, 0, 0,
295
+ 1, 1, 0, 0, 0, 0, 0, 0,
296
+ 0, 0, 0, 0, 0, 0, 0, 0,
297
+ 0, 0, 0, 0, 0, 0, 0, 0,
298
+ 0, 0, 0, 0, 0
299
+ ]
300
+
301
+ class << self
302
+ attr_accessor :_lexer_index_offsets
303
+ private :_lexer_index_offsets, :_lexer_index_offsets=
304
+ end
305
+ self._lexer_index_offsets = [
306
+ 0, 0, 19, 21, 23, 41, 43, 45,
307
+ 48, 51, 56, 61, 66, 71, 75, 79,
308
+ 82, 84, 86, 88, 90, 92, 94, 96,
309
+ 98, 100, 102, 104, 106, 108, 110, 112,
310
+ 114, 117, 120, 125, 132, 137, 139, 141,
311
+ 143, 145, 147, 149, 151, 153, 155, 157,
312
+ 159, 161, 163, 165, 167, 169, 171, 173,
313
+ 175, 189, 192, 195, 198, 201, 204, 207,
314
+ 210, 213, 216, 219, 222, 225, 228, 231,
315
+ 234, 252, 254, 256, 258, 260, 262, 264,
316
+ 266, 268, 270, 272, 287, 290, 293, 296,
317
+ 299, 302, 305, 308, 311, 314, 317, 320,
318
+ 323, 326, 329, 332, 335, 338, 341, 344,
319
+ 347, 350, 353, 356, 359, 362, 365, 368,
320
+ 371, 374, 377, 380, 383, 386, 389, 392,
321
+ 395, 398, 401, 404, 407, 410, 413, 416,
322
+ 419, 422, 425, 428, 431, 434, 438, 441,
323
+ 444, 447, 450, 453, 456, 459, 462, 464,
324
+ 466, 468, 470, 472, 474, 476, 478, 480,
325
+ 491, 494, 497, 500, 503, 506, 509, 512,
326
+ 515, 518, 521, 524, 527, 530, 533, 536,
327
+ 539, 542, 545, 548, 551, 554, 557, 560,
328
+ 563, 566, 569, 572, 575, 578, 581, 584,
329
+ 587, 590, 593, 596, 599, 602, 605, 609,
330
+ 612, 615, 618, 621, 624, 627, 630, 633,
331
+ 636, 639, 642, 645, 648, 651, 654, 657,
332
+ 660, 663, 666, 669, 671, 673, 675, 677,
333
+ 679, 681, 683, 685, 687, 689, 696, 699,
334
+ 702, 705, 708, 711, 714, 717, 720, 722,
335
+ 724, 726, 728, 730, 732, 734, 736, 738,
336
+ 740, 743, 745, 747, 749, 751, 753, 755,
337
+ 757, 759, 761, 763, 779, 782, 785, 788,
338
+ 791, 794, 797, 800, 803, 806, 809, 812,
339
+ 815, 818, 821, 824, 827, 830, 833, 836,
340
+ 839, 842, 845, 848, 851, 854, 857, 860,
341
+ 863, 866, 869, 872, 875, 878, 881, 884,
342
+ 887, 890, 893, 896, 899, 902, 905, 908,
343
+ 911, 914, 917, 920, 923, 926, 929, 932,
344
+ 935, 938, 941, 944, 947, 951, 954, 957,
345
+ 960, 963, 966, 969, 972, 976, 982, 986,
346
+ 989, 995, 1013, 1016, 1019, 1022, 1025, 1028,
347
+ 1031, 1034, 1037, 1040, 1043, 1046, 1049, 1052,
348
+ 1055, 1058, 1061, 1064, 1067, 1071, 1074, 1077,
349
+ 1080, 1083, 1086, 1089, 1092
350
+ ]
351
+
352
+ class << self
353
+ attr_accessor :_lexer_indicies
354
+ private :_lexer_indicies, :_lexer_indicies=
355
+ end
356
+ self._lexer_indicies = [
357
+ 1, 3, 2, 4, 5, 6, 7, 8,
358
+ 9, 10, 11, 12, 13, 14, 15, 16,
359
+ 17, 2, 0, 18, 0, 2, 0, 3,
360
+ 2, 4, 5, 6, 7, 8, 9, 10,
361
+ 11, 12, 13, 14, 15, 16, 17, 2,
362
+ 0, 19, 0, 20, 0, 22, 23, 21,
363
+ 25, 26, 24, 29, 28, 30, 28, 27,
364
+ 33, 32, 34, 32, 31, 33, 32, 35,
365
+ 32, 31, 33, 32, 36, 32, 31, 38,
366
+ 37, 37, 0, 3, 39, 39, 0, 41,
367
+ 42, 40, 3, 0, 43, 0, 44, 0,
368
+ 45, 0, 46, 0, 47, 0, 48, 0,
369
+ 49, 0, 50, 0, 51, 0, 52, 0,
370
+ 53, 0, 54, 0, 55, 0, 56, 0,
371
+ 57, 0, 59, 60, 58, 62, 63, 61,
372
+ 0, 0, 0, 0, 64, 65, 66, 65,
373
+ 65, 68, 67, 64, 3, 69, 8, 69,
374
+ 0, 70, 0, 71, 0, 72, 0, 73,
375
+ 0, 74, 0, 75, 0, 76, 0, 77,
376
+ 0, 78, 0, 79, 0, 80, 0, 81,
377
+ 0, 82, 0, 83, 0, 84, 0, 85,
378
+ 0, 86, 0, 88, 87, 90, 89, 90,
379
+ 91, 92, 93, 94, 92, 95, 96, 97,
380
+ 98, 99, 100, 91, 89, 90, 101, 89,
381
+ 90, 102, 89, 90, 103, 89, 90, 104,
382
+ 89, 90, 105, 89, 90, 106, 89, 90,
383
+ 107, 89, 90, 108, 89, 90, 109, 89,
384
+ 90, 110, 89, 90, 111, 89, 90, 112,
385
+ 89, 90, 113, 89, 90, 114, 89, 90,
386
+ 115, 89, 117, 116, 118, 119, 120, 121,
387
+ 122, 123, 124, 125, 126, 127, 128, 129,
388
+ 130, 131, 116, 0, 132, 0, 133, 0,
389
+ 134, 0, 135, 0, 136, 0, 137, 0,
390
+ 138, 0, 139, 0, 141, 140, 143, 142,
391
+ 143, 144, 145, 146, 147, 145, 148, 149,
392
+ 150, 151, 152, 153, 154, 144, 142, 143,
393
+ 155, 142, 143, 156, 142, 143, 157, 142,
394
+ 143, 158, 142, 143, 159, 142, 143, 160,
395
+ 142, 143, 161, 142, 143, 162, 142, 143,
396
+ 163, 142, 143, 164, 142, 143, 165, 142,
397
+ 143, 166, 142, 143, 167, 142, 143, 168,
398
+ 142, 143, 169, 142, 143, 170, 142, 143,
399
+ 171, 142, 143, 172, 142, 143, 173, 142,
400
+ 143, 174, 142, 143, 175, 142, 143, 176,
401
+ 142, 143, 177, 142, 143, 178, 142, 143,
402
+ 179, 142, 143, 180, 142, 143, 181, 142,
403
+ 143, 182, 142, 143, 183, 142, 143, 184,
404
+ 142, 143, 185, 142, 143, 169, 142, 143,
405
+ 186, 142, 143, 187, 142, 143, 188, 142,
406
+ 143, 189, 142, 143, 190, 142, 143, 191,
407
+ 142, 143, 185, 142, 143, 192, 142, 143,
408
+ 193, 142, 143, 194, 142, 143, 195, 142,
409
+ 143, 196, 142, 143, 195, 142, 197, 143,
410
+ 142, 198, 143, 142, 143, 195, 142, 143,
411
+ 195, 142, 199, 143, 200, 142, 195, 143,
412
+ 142, 143, 201, 142, 143, 202, 142, 143,
413
+ 203, 142, 143, 204, 142, 143, 205, 142,
414
+ 143, 185, 142, 206, 207, 0, 208, 0,
415
+ 209, 0, 210, 0, 211, 0, 212, 0,
416
+ 213, 0, 214, 0, 216, 215, 218, 217,
417
+ 218, 219, 220, 221, 220, 222, 223, 224,
418
+ 225, 219, 217, 218, 226, 217, 218, 227,
419
+ 217, 218, 228, 217, 218, 229, 217, 218,
420
+ 230, 217, 218, 231, 217, 218, 232, 217,
421
+ 218, 233, 217, 218, 234, 217, 218, 235,
422
+ 217, 218, 236, 217, 218, 237, 217, 218,
423
+ 238, 217, 218, 239, 217, 218, 240, 217,
424
+ 218, 241, 217, 218, 242, 217, 218, 243,
425
+ 217, 218, 244, 217, 218, 245, 217, 218,
426
+ 246, 217, 218, 247, 217, 218, 248, 217,
427
+ 218, 249, 217, 218, 250, 217, 218, 251,
428
+ 217, 218, 252, 217, 218, 253, 217, 218,
429
+ 254, 217, 218, 255, 217, 218, 256, 217,
430
+ 218, 257, 217, 218, 258, 217, 218, 259,
431
+ 217, 218, 260, 217, 218, 261, 217, 218,
432
+ 262, 217, 218, 255, 217, 218, 263, 264,
433
+ 217, 218, 265, 217, 218, 266, 217, 218,
434
+ 267, 217, 218, 268, 217, 218, 269, 217,
435
+ 218, 255, 217, 218, 270, 217, 218, 271,
436
+ 217, 218, 272, 217, 218, 273, 217, 218,
437
+ 274, 217, 218, 275, 217, 218, 255, 217,
438
+ 218, 276, 217, 218, 277, 217, 218, 278,
439
+ 217, 218, 279, 217, 218, 280, 217, 218,
440
+ 281, 217, 218, 255, 217, 282, 0, 283,
441
+ 0, 284, 0, 285, 0, 286, 0, 287,
442
+ 0, 288, 0, 289, 0, 291, 290, 293,
443
+ 292, 293, 294, 295, 296, 295, 294, 292,
444
+ 293, 297, 292, 293, 298, 292, 293, 299,
445
+ 292, 293, 300, 292, 293, 301, 292, 293,
446
+ 302, 292, 293, 303, 292, 293, 304, 292,
447
+ 305, 0, 306, 0, 307, 0, 308, 0,
448
+ 309, 0, 308, 0, 310, 0, 311, 0,
449
+ 308, 0, 308, 0, 312, 313, 0, 308,
450
+ 0, 314, 0, 315, 0, 316, 0, 317,
451
+ 0, 318, 0, 319, 0, 320, 0, 322,
452
+ 321, 324, 323, 324, 325, 326, 327, 328,
453
+ 326, 329, 330, 331, 332, 333, 334, 335,
454
+ 336, 325, 323, 324, 337, 323, 324, 338,
455
+ 323, 324, 339, 323, 324, 340, 323, 324,
456
+ 341, 323, 324, 342, 323, 324, 343, 323,
457
+ 324, 344, 323, 324, 345, 323, 324, 346,
458
+ 323, 324, 347, 323, 324, 348, 323, 324,
459
+ 349, 323, 324, 350, 323, 324, 351, 323,
460
+ 324, 352, 323, 324, 353, 323, 324, 354,
461
+ 323, 324, 355, 323, 324, 356, 323, 324,
462
+ 357, 323, 324, 358, 323, 324, 359, 323,
463
+ 324, 360, 323, 324, 361, 323, 324, 362,
464
+ 323, 324, 363, 323, 324, 364, 323, 324,
465
+ 365, 323, 324, 366, 323, 324, 367, 323,
466
+ 324, 351, 323, 324, 368, 323, 324, 369,
467
+ 323, 324, 370, 323, 324, 371, 323, 324,
468
+ 372, 323, 324, 373, 323, 324, 367, 323,
469
+ 324, 374, 323, 324, 375, 323, 324, 376,
470
+ 323, 324, 377, 323, 324, 378, 323, 324,
471
+ 379, 323, 324, 367, 323, 324, 380, 323,
472
+ 324, 381, 323, 324, 382, 323, 324, 383,
473
+ 323, 324, 384, 323, 324, 383, 323, 385,
474
+ 324, 323, 386, 324, 323, 324, 383, 323,
475
+ 324, 383, 323, 387, 324, 388, 323, 383,
476
+ 324, 323, 324, 389, 323, 324, 390, 323,
477
+ 324, 391, 323, 324, 392, 323, 324, 393,
478
+ 323, 324, 367, 323, 394, 395, 394, 0,
479
+ 398, 397, 399, 400, 397, 396, 0, 402,
480
+ 403, 401, 0, 402, 401, 398, 404, 402,
481
+ 403, 404, 401, 398, 405, 406, 407, 408,
482
+ 409, 410, 411, 412, 413, 414, 415, 416,
483
+ 417, 418, 419, 405, 0, 90, 420, 89,
484
+ 90, 421, 89, 90, 422, 89, 90, 423,
485
+ 89, 90, 424, 89, 90, 425, 89, 90,
486
+ 426, 89, 90, 115, 89, 90, 427, 89,
487
+ 90, 428, 89, 90, 429, 89, 90, 430,
488
+ 89, 90, 431, 89, 90, 430, 89, 432,
489
+ 90, 89, 433, 90, 89, 90, 430, 89,
490
+ 90, 430, 89, 434, 90, 435, 89, 430,
491
+ 90, 89, 90, 436, 89, 90, 437, 89,
492
+ 90, 438, 89, 90, 439, 89, 90, 440,
493
+ 89, 90, 426, 89, 441, 0
494
+ ]
495
+
496
+ class << self
497
+ attr_accessor :_lexer_trans_targs
498
+ private :_lexer_trans_targs, :_lexer_trans_targs=
499
+ end
500
+ self._lexer_trans_targs = [
501
+ 0, 2, 4, 4, 5, 15, 17, 31,
502
+ 34, 37, 73, 141, 230, 234, 236, 239,
503
+ 240, 316, 3, 6, 7, 8, 9, 8,
504
+ 8, 9, 8, 10, 10, 10, 11, 10,
505
+ 10, 10, 11, 12, 13, 14, 4, 14,
506
+ 15, 4, 16, 18, 19, 20, 21, 22,
507
+ 23, 24, 25, 26, 27, 28, 29, 30,
508
+ 348, 32, 33, 4, 16, 33, 4, 16,
509
+ 35, 36, 4, 35, 34, 36, 38, 39,
510
+ 40, 41, 42, 43, 44, 45, 46, 47,
511
+ 48, 49, 50, 51, 52, 53, 54, 55,
512
+ 56, 55, 56, 56, 4, 57, 71, 322,
513
+ 330, 334, 336, 339, 340, 58, 59, 60,
514
+ 61, 62, 63, 64, 65, 66, 67, 68,
515
+ 69, 70, 4, 72, 4, 4, 5, 15,
516
+ 17, 31, 34, 37, 73, 141, 230, 234,
517
+ 236, 239, 240, 316, 74, 75, 76, 77,
518
+ 78, 79, 80, 81, 82, 83, 82, 83,
519
+ 83, 4, 84, 98, 99, 116, 123, 127,
520
+ 129, 132, 133, 85, 86, 87, 88, 89,
521
+ 90, 91, 92, 93, 94, 95, 96, 97,
522
+ 4, 72, 100, 101, 102, 103, 104, 105,
523
+ 106, 107, 108, 109, 110, 111, 112, 113,
524
+ 114, 115, 117, 118, 119, 120, 121, 122,
525
+ 124, 125, 126, 98, 128, 130, 131, 134,
526
+ 135, 136, 137, 138, 139, 140, 142, 211,
527
+ 143, 144, 145, 146, 147, 148, 149, 150,
528
+ 151, 150, 151, 151, 4, 152, 166, 183,
529
+ 190, 204, 153, 154, 155, 156, 157, 158,
530
+ 159, 160, 161, 162, 163, 164, 165, 4,
531
+ 167, 168, 169, 170, 171, 172, 173, 174,
532
+ 175, 176, 177, 178, 179, 180, 181, 182,
533
+ 72, 184, 185, 186, 187, 188, 189, 191,
534
+ 197, 192, 193, 194, 195, 196, 198, 199,
535
+ 200, 201, 202, 203, 205, 206, 207, 208,
536
+ 209, 210, 212, 213, 214, 215, 216, 217,
537
+ 218, 219, 220, 221, 220, 221, 221, 4,
538
+ 222, 223, 224, 225, 226, 227, 228, 229,
539
+ 72, 231, 232, 233, 31, 235, 237, 238,
540
+ 241, 242, 243, 244, 245, 246, 247, 248,
541
+ 249, 250, 251, 250, 251, 251, 4, 252,
542
+ 266, 267, 284, 291, 298, 302, 304, 307,
543
+ 308, 253, 254, 255, 256, 257, 258, 259,
544
+ 260, 261, 262, 263, 264, 265, 4, 72,
545
+ 268, 269, 270, 271, 272, 273, 274, 275,
546
+ 276, 277, 278, 279, 280, 281, 282, 283,
547
+ 285, 286, 287, 288, 289, 290, 292, 293,
548
+ 294, 295, 296, 297, 299, 300, 301, 266,
549
+ 303, 305, 306, 309, 310, 311, 312, 313,
550
+ 314, 315, 316, 317, 318, 320, 321, 319,
551
+ 317, 318, 319, 317, 320, 321, 5, 15,
552
+ 17, 31, 34, 37, 73, 141, 230, 234,
553
+ 236, 239, 240, 316, 323, 324, 325, 326,
554
+ 327, 328, 329, 331, 332, 333, 71, 335,
555
+ 337, 338, 341, 342, 343, 344, 345, 346,
556
+ 347, 0
557
+ ]
558
+
559
+ class << self
560
+ attr_accessor :_lexer_trans_actions
561
+ private :_lexer_trans_actions, :_lexer_trans_actions=
562
+ end
563
+ self._lexer_trans_actions = [
564
+ 43, 0, 0, 54, 3, 1, 0, 29,
565
+ 1, 29, 29, 29, 29, 29, 29, 29,
566
+ 29, 35, 0, 0, 0, 7, 139, 48,
567
+ 0, 102, 9, 5, 45, 134, 45, 0,
568
+ 33, 122, 33, 33, 0, 11, 106, 0,
569
+ 0, 114, 25, 0, 0, 0, 0, 0,
570
+ 0, 0, 0, 0, 0, 0, 0, 0,
571
+ 0, 0, 57, 149, 126, 0, 110, 23,
572
+ 0, 27, 118, 27, 51, 0, 0, 0,
573
+ 0, 0, 0, 0, 0, 0, 0, 0,
574
+ 0, 0, 0, 0, 0, 0, 0, 57,
575
+ 144, 0, 54, 0, 78, 33, 84, 84,
576
+ 84, 84, 84, 84, 84, 0, 0, 0,
577
+ 0, 0, 0, 0, 0, 0, 0, 0,
578
+ 0, 0, 19, 19, 31, 130, 60, 57,
579
+ 31, 63, 57, 63, 63, 63, 63, 63,
580
+ 63, 63, 63, 66, 0, 0, 0, 0,
581
+ 0, 0, 0, 0, 57, 144, 0, 54,
582
+ 0, 72, 33, 84, 84, 84, 84, 84,
583
+ 84, 84, 84, 0, 0, 0, 0, 0,
584
+ 0, 0, 0, 0, 0, 0, 0, 0,
585
+ 15, 15, 0, 0, 0, 0, 0, 0,
586
+ 0, 0, 0, 0, 0, 0, 0, 0,
587
+ 0, 0, 0, 0, 0, 0, 0, 0,
588
+ 0, 0, 0, 0, 0, 0, 0, 0,
589
+ 0, 0, 0, 0, 0, 0, 0, 0,
590
+ 0, 0, 0, 0, 0, 0, 0, 57,
591
+ 144, 0, 54, 0, 69, 33, 84, 84,
592
+ 84, 84, 0, 0, 0, 0, 0, 0,
593
+ 0, 0, 0, 0, 0, 0, 0, 13,
594
+ 0, 0, 0, 0, 0, 0, 0, 0,
595
+ 0, 0, 0, 0, 0, 0, 0, 0,
596
+ 13, 0, 0, 0, 0, 0, 0, 0,
597
+ 0, 0, 0, 0, 0, 0, 0, 0,
598
+ 0, 0, 0, 0, 0, 0, 0, 0,
599
+ 0, 0, 0, 0, 0, 0, 0, 0,
600
+ 0, 0, 57, 144, 0, 54, 0, 81,
601
+ 84, 0, 0, 0, 0, 0, 0, 0,
602
+ 21, 0, 0, 0, 0, 0, 0, 0,
603
+ 0, 0, 0, 0, 0, 0, 0, 0,
604
+ 0, 57, 144, 0, 54, 0, 75, 33,
605
+ 84, 84, 84, 84, 84, 84, 84, 84,
606
+ 84, 0, 0, 0, 0, 0, 0, 0,
607
+ 0, 0, 0, 0, 0, 0, 17, 17,
608
+ 0, 0, 0, 0, 0, 0, 0, 0,
609
+ 0, 0, 0, 0, 0, 0, 0, 0,
610
+ 0, 0, 0, 0, 0, 0, 0, 0,
611
+ 0, 0, 0, 0, 0, 0, 0, 0,
612
+ 0, 0, 0, 0, 0, 0, 0, 0,
613
+ 0, 0, 0, 0, 37, 37, 54, 37,
614
+ 87, 0, 0, 39, 0, 0, 93, 90,
615
+ 41, 96, 90, 96, 96, 96, 96, 96,
616
+ 96, 96, 96, 99, 0, 0, 0, 0,
617
+ 0, 0, 0, 0, 0, 0, 0, 0,
618
+ 0, 0, 0, 0, 0, 0, 0, 0,
619
+ 0, 0
620
+ ]
621
+
622
+ class << self
623
+ attr_accessor :_lexer_eof_actions
624
+ private :_lexer_eof_actions, :_lexer_eof_actions=
625
+ end
626
+ self._lexer_eof_actions = [
627
+ 0, 43, 43, 43, 43, 43, 43, 43,
628
+ 43, 43, 43, 43, 43, 43, 43, 43,
629
+ 43, 43, 43, 43, 43, 43, 43, 43,
630
+ 43, 43, 43, 43, 43, 43, 43, 43,
631
+ 43, 43, 43, 43, 43, 43, 43, 43,
632
+ 43, 43, 43, 43, 43, 43, 43, 43,
633
+ 43, 43, 43, 43, 43, 43, 43, 43,
634
+ 43, 43, 43, 43, 43, 43, 43, 43,
635
+ 43, 43, 43, 43, 43, 43, 43, 43,
636
+ 43, 43, 43, 43, 43, 43, 43, 43,
637
+ 43, 43, 43, 43, 43, 43, 43, 43,
638
+ 43, 43, 43, 43, 43, 43, 43, 43,
639
+ 43, 43, 43, 43, 43, 43, 43, 43,
640
+ 43, 43, 43, 43, 43, 43, 43, 43,
641
+ 43, 43, 43, 43, 43, 43, 43, 43,
642
+ 43, 43, 43, 43, 43, 43, 43, 43,
643
+ 43, 43, 43, 43, 43, 43, 43, 43,
644
+ 43, 43, 43, 43, 43, 43, 43, 43,
645
+ 43, 43, 43, 43, 43, 43, 43, 43,
646
+ 43, 43, 43, 43, 43, 43, 43, 43,
647
+ 43, 43, 43, 43, 43, 43, 43, 43,
648
+ 43, 43, 43, 43, 43, 43, 43, 43,
649
+ 43, 43, 43, 43, 43, 43, 43, 43,
650
+ 43, 43, 43, 43, 43, 43, 43, 43,
651
+ 43, 43, 43, 43, 43, 43, 43, 43,
652
+ 43, 43, 43, 43, 43, 43, 43, 43,
653
+ 43, 43, 43, 43, 43, 43, 43, 43,
654
+ 43, 43, 43, 43, 43, 43, 43, 43,
655
+ 43, 43, 43, 43, 43, 43, 43, 43,
656
+ 43, 43, 43, 43, 43, 43, 43, 43,
657
+ 43, 43, 43, 43, 43, 43, 43, 43,
658
+ 43, 43, 43, 43, 43, 43, 43, 43,
659
+ 43, 43, 43, 43, 43, 43, 43, 43,
660
+ 43, 43, 43, 43, 43, 43, 43, 43,
661
+ 43, 43, 43, 43, 43, 43, 43, 43,
662
+ 43, 43, 43, 43, 43, 43, 43, 43,
663
+ 43, 43, 43, 43, 43, 43, 43, 43,
664
+ 43, 43, 43, 43, 43, 43, 43, 43,
665
+ 43, 43, 43, 43, 43, 43, 43, 43,
666
+ 43, 43, 43, 43, 43, 43, 43, 43,
667
+ 43, 43, 43, 43, 43, 43, 43, 43,
668
+ 43, 43, 43, 43, 43, 43, 43, 43,
669
+ 43, 43, 43, 43, 43, 43, 43, 43,
670
+ 43, 43, 43, 43, 43
671
+ ]
672
+
673
+ class << self
674
+ attr_accessor :lexer_start
675
+ end
676
+ self.lexer_start = 1;
677
+ class << self
678
+ attr_accessor :lexer_first_final
679
+ end
680
+ self.lexer_first_final = 348;
681
+ class << self
682
+ attr_accessor :lexer_error
683
+ end
684
+ self.lexer_error = 0;
685
+
686
+ class << self
687
+ attr_accessor :lexer_en_main
688
+ end
689
+ self.lexer_en_main = 1;
690
+
691
+
692
+ # line 130 "ragel/i18n/da.rb.rl"
693
+ end
694
+
695
+ def scan(data)
696
+ data = (data + "\n%_FEATURE_END_%").unpack("c*") # Explicit EOF simplifies things considerably
697
+ eof = pe = data.length
698
+
699
+ @line_number = 1
700
+ @last_newline = 0
701
+
702
+
703
+ # line 704 "lib/gherkin/lexer/da.rb"
704
+ begin
705
+ p ||= 0
706
+ pe ||= data.length
707
+ cs = lexer_start
708
+ end
709
+
710
+ # line 140 "ragel/i18n/da.rb.rl"
711
+
712
+ # line 713 "lib/gherkin/lexer/da.rb"
713
+ begin
714
+ _klen, _trans, _keys, _acts, _nacts = nil
715
+ _goto_level = 0
716
+ _resume = 10
717
+ _eof_trans = 15
718
+ _again = 20
719
+ _test_eof = 30
720
+ _out = 40
721
+ while true
722
+ _trigger_goto = false
723
+ if _goto_level <= 0
724
+ if p == pe
725
+ _goto_level = _test_eof
726
+ next
727
+ end
728
+ if cs == 0
729
+ _goto_level = _out
730
+ next
731
+ end
732
+ end
733
+ if _goto_level <= _resume
734
+ _keys = _lexer_key_offsets[cs]
735
+ _trans = _lexer_index_offsets[cs]
736
+ _klen = _lexer_single_lengths[cs]
737
+ _break_match = false
738
+
739
+ begin
740
+ if _klen > 0
741
+ _lower = _keys
742
+ _upper = _keys + _klen - 1
743
+
744
+ loop do
745
+ break if _upper < _lower
746
+ _mid = _lower + ( (_upper - _lower) >> 1 )
747
+
748
+ if data[p].ord < _lexer_trans_keys[_mid]
749
+ _upper = _mid - 1
750
+ elsif data[p].ord > _lexer_trans_keys[_mid]
751
+ _lower = _mid + 1
752
+ else
753
+ _trans += (_mid - _keys)
754
+ _break_match = true
755
+ break
756
+ end
757
+ end # loop
758
+ break if _break_match
759
+ _keys += _klen
760
+ _trans += _klen
761
+ end
762
+ _klen = _lexer_range_lengths[cs]
763
+ if _klen > 0
764
+ _lower = _keys
765
+ _upper = _keys + (_klen << 1) - 2
766
+ loop do
767
+ break if _upper < _lower
768
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1)
769
+ if data[p].ord < _lexer_trans_keys[_mid]
770
+ _upper = _mid - 2
771
+ elsif data[p].ord > _lexer_trans_keys[_mid+1]
772
+ _lower = _mid + 2
773
+ else
774
+ _trans += ((_mid - _keys) >> 1)
775
+ _break_match = true
776
+ break
777
+ end
778
+ end # loop
779
+ break if _break_match
780
+ _trans += _klen
781
+ end
782
+ end while false
783
+ _trans = _lexer_indicies[_trans]
784
+ cs = _lexer_trans_targs[_trans]
785
+ if _lexer_trans_actions[_trans] != 0
786
+ _acts = _lexer_trans_actions[_trans]
787
+ _nacts = _lexer_actions[_acts]
788
+ _acts += 1
789
+ while _nacts > 0
790
+ _nacts -= 1
791
+ _acts += 1
792
+ case _lexer_actions[_acts - 1]
793
+ when 0 then
794
+ # line 11 "ragel/i18n/da.rb.rl"
795
+ begin
796
+
797
+ @content_start = p
798
+ @current_line = @line_number
799
+ @start_col = p - @last_newline - "#{@keyword}:".length
800
+ end
801
+ when 1 then
802
+ # line 17 "ragel/i18n/da.rb.rl"
803
+ begin
804
+
805
+ @current_line = @line_number
806
+ @start_col = p - @last_newline
807
+ end
808
+ when 2 then
809
+ # line 22 "ragel/i18n/da.rb.rl"
810
+ begin
811
+
812
+ @content_start = p
813
+ end
814
+ when 3 then
815
+ # line 26 "ragel/i18n/da.rb.rl"
816
+ begin
817
+
818
+ @docstring_content_type_start = p
819
+ end
820
+ when 4 then
821
+ # line 29 "ragel/i18n/da.rb.rl"
822
+ begin
823
+
824
+ @docstring_content_type_end = p
825
+ end
826
+ when 5 then
827
+ # line 33 "ragel/i18n/da.rb.rl"
828
+ begin
829
+
830
+ con = unindent(@start_col, utf8_pack(data[@content_start...@next_keyword_start-1]).sub(/(\r?\n)?([\t ])*\Z/, '').gsub(/\\"\\"\\"/, '"""'))
831
+ con_type = utf8_pack(data[@docstring_content_type_start...@docstring_content_type_end]).strip
832
+ @listener.doc_string(con_type, con, @current_line)
833
+ end
834
+ when 6 then
835
+ # line 38 "ragel/i18n/da.rb.rl"
836
+ begin
837
+
838
+ p = store_keyword_content(:feature, data, p, eof)
839
+ end
840
+ when 7 then
841
+ # line 42 "ragel/i18n/da.rb.rl"
842
+ begin
843
+
844
+ p = store_keyword_content(:background, data, p, eof)
845
+ end
846
+ when 8 then
847
+ # line 46 "ragel/i18n/da.rb.rl"
848
+ begin
849
+
850
+ p = store_keyword_content(:scenario, data, p, eof)
851
+ end
852
+ when 9 then
853
+ # line 50 "ragel/i18n/da.rb.rl"
854
+ begin
855
+
856
+ p = store_keyword_content(:scenario_outline, data, p, eof)
857
+ end
858
+ when 10 then
859
+ # line 54 "ragel/i18n/da.rb.rl"
860
+ begin
861
+
862
+ p = store_keyword_content(:examples, data, p, eof)
863
+ end
864
+ when 11 then
865
+ # line 58 "ragel/i18n/da.rb.rl"
866
+ begin
867
+
868
+ con = utf8_pack(data[@content_start...p]).strip
869
+ @listener.step(@keyword, con, @current_line)
870
+ end
871
+ when 12 then
872
+ # line 63 "ragel/i18n/da.rb.rl"
873
+ begin
874
+
875
+ con = utf8_pack(data[@content_start...p]).strip
876
+ @listener.comment(con, @line_number)
877
+ @keyword_start = nil
878
+ end
879
+ when 13 then
880
+ # line 69 "ragel/i18n/da.rb.rl"
881
+ begin
882
+
883
+ con = utf8_pack(data[@content_start...p]).strip
884
+ @listener.tag(con, @current_line)
885
+ @keyword_start = nil
886
+ end
887
+ when 14 then
888
+ # line 75 "ragel/i18n/da.rb.rl"
889
+ begin
890
+
891
+ @line_number += 1
892
+ end
893
+ when 15 then
894
+ # line 79 "ragel/i18n/da.rb.rl"
895
+ begin
896
+
897
+ @last_newline = p + 1
898
+ end
899
+ when 16 then
900
+ # line 83 "ragel/i18n/da.rb.rl"
901
+ begin
902
+
903
+ @keyword_start ||= p
904
+ end
905
+ when 17 then
906
+ # line 87 "ragel/i18n/da.rb.rl"
907
+ begin
908
+
909
+ @keyword = utf8_pack(data[@keyword_start...p]).sub(/:$/,'')
910
+ @keyword_start = nil
911
+ end
912
+ when 18 then
913
+ # line 92 "ragel/i18n/da.rb.rl"
914
+ begin
915
+
916
+ @next_keyword_start = p
917
+ end
918
+ when 19 then
919
+ # line 96 "ragel/i18n/da.rb.rl"
920
+ begin
921
+
922
+ p = p - 1
923
+ current_row = []
924
+ @current_line = @line_number
925
+ end
926
+ when 20 then
927
+ # line 102 "ragel/i18n/da.rb.rl"
928
+ begin
929
+
930
+ @content_start = p
931
+ end
932
+ when 21 then
933
+ # line 106 "ragel/i18n/da.rb.rl"
934
+ begin
935
+
936
+ con = utf8_pack(data[@content_start...p]).strip
937
+ current_row << con.gsub(/\\\|/, "|").gsub(/\\n/, "\n").gsub(/\\\\/, "\\")
938
+ end
939
+ when 22 then
940
+ # line 111 "ragel/i18n/da.rb.rl"
941
+ begin
942
+
943
+ @listener.row(current_row, @current_line)
944
+ end
945
+ when 23 then
946
+ # line 115 "ragel/i18n/da.rb.rl"
947
+ begin
948
+
949
+ if cs < lexer_first_final
950
+ content = current_line_content(data, p)
951
+ raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information." % [@line_number, content])
952
+ else
953
+ @listener.eof
954
+ end
955
+ end
956
+ # line 957 "lib/gherkin/lexer/da.rb"
957
+ end # action switch
958
+ end
959
+ end
960
+ if _trigger_goto
961
+ next
962
+ end
963
+ end
964
+ if _goto_level <= _again
965
+ if cs == 0
966
+ _goto_level = _out
967
+ next
968
+ end
969
+ p += 1
970
+ if p != pe
971
+ _goto_level = _resume
972
+ next
973
+ end
974
+ end
975
+ if _goto_level <= _test_eof
976
+ if p == eof
977
+ __acts = _lexer_eof_actions[cs]
978
+ __nacts = _lexer_actions[__acts]
979
+ __acts += 1
980
+ while __nacts > 0
981
+ __nacts -= 1
982
+ __acts += 1
983
+ case _lexer_actions[__acts - 1]
984
+ when 23 then
985
+ # line 115 "ragel/i18n/da.rb.rl"
986
+ begin
987
+
988
+ if cs < lexer_first_final
989
+ content = current_line_content(data, p)
990
+ raise Gherkin::Lexer::LexingError.new("Lexing error on line %d: '%s'. See http://wiki.github.com/cucumber/gherkin/lexingerror for more information." % [@line_number, content])
991
+ else
992
+ @listener.eof
993
+ end
994
+ end
995
+ # line 996 "lib/gherkin/lexer/da.rb"
996
+ end # eof action switch
997
+ end
998
+ if _trigger_goto
999
+ next
1000
+ end
1001
+ end
1002
+ end
1003
+ if _goto_level <= _out
1004
+ break
1005
+ end
1006
+ end
1007
+ end
1008
+
1009
+ # line 141 "ragel/i18n/da.rb.rl"
1010
+ end
1011
+
1012
+ def unindent(startcol, text)
1013
+ text.gsub(/^[\t ]{0,#{startcol}}/, "")
1014
+ end
1015
+
1016
+ def store_keyword_content(event, data, p, eof)
1017
+ end_point = (!@next_keyword_start or (p == eof)) ? p : @next_keyword_start
1018
+ content = unindent(@start_col + 2, utf8_pack(data[@content_start...end_point])).rstrip
1019
+ content_lines = content.split("\n")
1020
+ name = content_lines.shift || ""
1021
+ name.strip!
1022
+ description = content_lines.join("\n")
1023
+ @listener.__send__(event, @keyword, name, description, @current_line)
1024
+ @next_keyword_start ? @next_keyword_start - 1 : p
1025
+ ensure
1026
+ @next_keyword_start = nil
1027
+ end
1028
+
1029
+ def current_line_content(data, p)
1030
+ rest = data[@last_newline..-1]
1031
+ utf8_pack(rest[0..rest.index(10)||-1]).strip # 10 is \n
1032
+ end
1033
+
1034
+ if (RUBY_VERSION =~ /^1\.9|2\.0/)
1035
+ def utf8_pack(array)
1036
+ array.pack("c*").force_encoding("UTF-8")
1037
+ end
1038
+ else
1039
+ def utf8_pack(array)
1040
+ array.pack("c*")
1041
+ end
1042
+ end
1043
+ end
1044
+ end
1045
+ end