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