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