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