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