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