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