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