gherkin 2.12.0 → 2.12.1

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