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