gherkin 2.4.18 → 2.4.20

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