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