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