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