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