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