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