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