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