gherkin 2.4.18 → 2.4.20

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