benhamill-gherkin 2.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. data/.gitattributes +2 -0
  2. data/.gitignore +11 -0
  3. data/.mailmap +2 -0
  4. data/.rspec +1 -0
  5. data/.rvmrc +1 -0
  6. data/Gemfile +7 -0
  7. data/History.txt +363 -0
  8. data/LICENSE +20 -0
  9. data/README.rdoc +149 -0
  10. data/Rakefile +19 -0
  11. data/VERSION +1 -0
  12. data/build_native_gems.sh +8 -0
  13. data/cucumber.yml +3 -0
  14. data/features/escaped_pipes.feature +8 -0
  15. data/features/feature_parser.feature +237 -0
  16. data/features/json_formatter.feature +377 -0
  17. data/features/json_parser.feature +318 -0
  18. data/features/native_lexer.feature +19 -0
  19. data/features/parser_with_native_lexer.feature +205 -0
  20. data/features/pretty_formatter.feature +15 -0
  21. data/features/step_definitions/eyeball_steps.rb +3 -0
  22. data/features/step_definitions/gherkin_steps.rb +29 -0
  23. data/features/step_definitions/json_formatter_steps.rb +28 -0
  24. data/features/step_definitions/json_parser_steps.rb +20 -0
  25. data/features/step_definitions/pretty_formatter_steps.rb +84 -0
  26. data/features/steps_parser.feature +46 -0
  27. data/features/support/env.rb +38 -0
  28. data/gherkin.gemspec +61 -0
  29. data/ikvm/.gitignore +3 -0
  30. data/java/.gitignore +5 -0
  31. data/java/src/main/java/gherkin/lexer/i18n/.gitignore +1 -0
  32. data/java/src/main/resources/gherkin/.gitignore +1 -0
  33. data/js/lib/gherkin/lexer/i18n/ar.js +1094 -0
  34. data/js/lib/gherkin/lexer/i18n/bg.js +1308 -0
  35. data/js/lib/gherkin/lexer/i18n/ca.js +1236 -0
  36. data/js/lib/gherkin/lexer/i18n/cs.js +1090 -0
  37. data/js/lib/gherkin/lexer/i18n/cy_gb.js +958 -0
  38. data/js/lib/gherkin/lexer/i18n/da.js +974 -0
  39. data/js/lib/gherkin/lexer/i18n/de.js +1082 -0
  40. data/js/lib/gherkin/lexer/i18n/en.js +965 -0
  41. data/js/lib/gherkin/lexer/i18n/en_au.js +902 -0
  42. data/js/lib/gherkin/lexer/i18n/en_lol.js +859 -0
  43. data/js/lib/gherkin/lexer/i18n/en_pirate.js +1136 -0
  44. data/js/lib/gherkin/lexer/i18n/en_scouse.js +1289 -0
  45. data/js/lib/gherkin/lexer/i18n/en_tx.js +942 -0
  46. data/js/lib/gherkin/lexer/i18n/eo.js +916 -0
  47. data/js/lib/gherkin/lexer/i18n/es.js +1049 -0
  48. data/js/lib/gherkin/lexer/i18n/et.js +915 -0
  49. data/js/lib/gherkin/lexer/i18n/fi.js +894 -0
  50. data/js/lib/gherkin/lexer/i18n/fr.js +1116 -0
  51. data/js/lib/gherkin/lexer/i18n/he.js +1044 -0
  52. data/js/lib/gherkin/lexer/i18n/hr.js +994 -0
  53. data/js/lib/gherkin/lexer/i18n/hu.js +1043 -0
  54. data/js/lib/gherkin/lexer/i18n/id.js +884 -0
  55. data/js/lib/gherkin/lexer/i18n/it.js +1007 -0
  56. data/js/lib/gherkin/lexer/i18n/ja.js +1344 -0
  57. data/js/lib/gherkin/lexer/i18n/ko.js +1028 -0
  58. data/js/lib/gherkin/lexer/i18n/lt.js +972 -0
  59. data/js/lib/gherkin/lexer/i18n/lu.js +1057 -0
  60. data/js/lib/gherkin/lexer/i18n/lv.js +1092 -0
  61. data/js/lib/gherkin/lexer/i18n/nl.js +1036 -0
  62. data/js/lib/gherkin/lexer/i18n/no.js +986 -0
  63. data/js/lib/gherkin/lexer/i18n/pl.js +1140 -0
  64. data/js/lib/gherkin/lexer/i18n/pt.js +1000 -0
  65. data/js/lib/gherkin/lexer/i18n/ro.js +1089 -0
  66. data/js/lib/gherkin/lexer/i18n/ru.js +1560 -0
  67. data/js/lib/gherkin/lexer/i18n/sk.js +972 -0
  68. data/js/lib/gherkin/lexer/i18n/sr_cyrl.js +1728 -0
  69. data/js/lib/gherkin/lexer/i18n/sr_latn.js +1220 -0
  70. data/js/lib/gherkin/lexer/i18n/sv.js +997 -0
  71. data/js/lib/gherkin/lexer/i18n/tr.js +1014 -0
  72. data/js/lib/gherkin/lexer/i18n/uk.js +1572 -0
  73. data/js/lib/gherkin/lexer/i18n/uz.js +1302 -0
  74. data/js/lib/gherkin/lexer/i18n/vi.js +1124 -0
  75. data/js/lib/gherkin/lexer/i18n/zh_cn.js +902 -0
  76. data/js/lib/gherkin/lexer/i18n/zh_tw.js +940 -0
  77. data/lib/.gitignore +4 -0
  78. data/lib/gherkin.rb +2 -0
  79. data/lib/gherkin/c_lexer.rb +17 -0
  80. data/lib/gherkin/formatter/ansi_escapes.rb +95 -0
  81. data/lib/gherkin/formatter/argument.rb +16 -0
  82. data/lib/gherkin/formatter/escaping.rb +15 -0
  83. data/lib/gherkin/formatter/filter_formatter.rb +136 -0
  84. data/lib/gherkin/formatter/hashable.rb +19 -0
  85. data/lib/gherkin/formatter/json_formatter.rb +102 -0
  86. data/lib/gherkin/formatter/line_filter.rb +26 -0
  87. data/lib/gherkin/formatter/model.rb +236 -0
  88. data/lib/gherkin/formatter/pretty_formatter.rb +243 -0
  89. data/lib/gherkin/formatter/regexp_filter.rb +21 -0
  90. data/lib/gherkin/formatter/step_printer.rb +17 -0
  91. data/lib/gherkin/formatter/tag_count_formatter.rb +47 -0
  92. data/lib/gherkin/formatter/tag_filter.rb +19 -0
  93. data/lib/gherkin/i18n.rb +175 -0
  94. data/lib/gherkin/i18n.yml +588 -0
  95. data/lib/gherkin/json_parser.rb +137 -0
  96. data/lib/gherkin/lexer/i18n_lexer.rb +47 -0
  97. data/lib/gherkin/listener/event.rb +45 -0
  98. data/lib/gherkin/listener/formatter_listener.rb +113 -0
  99. data/lib/gherkin/native.rb +7 -0
  100. data/lib/gherkin/native/ikvm.rb +55 -0
  101. data/lib/gherkin/native/java.rb +55 -0
  102. data/lib/gherkin/native/null.rb +9 -0
  103. data/lib/gherkin/parser/meta.txt +5 -0
  104. data/lib/gherkin/parser/parser.rb +164 -0
  105. data/lib/gherkin/parser/root.txt +11 -0
  106. data/lib/gherkin/parser/steps.txt +4 -0
  107. data/lib/gherkin/rb_lexer.rb +8 -0
  108. data/lib/gherkin/rb_lexer/.gitignore +1 -0
  109. data/lib/gherkin/rb_lexer/README.rdoc +8 -0
  110. data/lib/gherkin/rubify.rb +24 -0
  111. data/lib/gherkin/tag_expression.rb +62 -0
  112. data/lib/gherkin/version.rb +3 -0
  113. data/ragel/i18n/.gitignore +1 -0
  114. data/ragel/lexer.c.rl.erb +439 -0
  115. data/ragel/lexer.java.rl.erb +208 -0
  116. data/ragel/lexer.rb.rl.erb +167 -0
  117. data/ragel/lexer_common.rl.erb +50 -0
  118. data/spec/gherkin/c_lexer_spec.rb +21 -0
  119. data/spec/gherkin/fixtures/1.feature +8 -0
  120. data/spec/gherkin/fixtures/comments_in_table.feature +9 -0
  121. data/spec/gherkin/fixtures/complex.feature +45 -0
  122. data/spec/gherkin/fixtures/complex.json +143 -0
  123. data/spec/gherkin/fixtures/complex_for_filtering.feature +60 -0
  124. data/spec/gherkin/fixtures/complex_with_tags.feature +61 -0
  125. data/spec/gherkin/fixtures/dos_line_endings.feature +45 -0
  126. data/spec/gherkin/fixtures/hantu_pisang.feature +35 -0
  127. data/spec/gherkin/fixtures/i18n_fr.feature +14 -0
  128. data/spec/gherkin/fixtures/i18n_no.feature +7 -0
  129. data/spec/gherkin/fixtures/i18n_zh-CN.feature +9 -0
  130. data/spec/gherkin/fixtures/scenario_outline_with_tags.feature +13 -0
  131. data/spec/gherkin/fixtures/scenario_without_steps.feature +5 -0
  132. data/spec/gherkin/fixtures/simple_with_comments.feature +7 -0
  133. data/spec/gherkin/fixtures/simple_with_tags.feature +11 -0
  134. data/spec/gherkin/fixtures/with_bom.feature +3 -0
  135. data/spec/gherkin/formatter/ansi_escapes_spec.rb +19 -0
  136. data/spec/gherkin/formatter/filter_formatter_spec.rb +165 -0
  137. data/spec/gherkin/formatter/model_spec.rb +28 -0
  138. data/spec/gherkin/formatter/pretty_formatter_spec.rb +158 -0
  139. data/spec/gherkin/formatter/spaces.feature +9 -0
  140. data/spec/gherkin/formatter/step_printer_spec.rb +55 -0
  141. data/spec/gherkin/formatter/tabs.feature +9 -0
  142. data/spec/gherkin/formatter/tag_count_formatter_spec.rb +30 -0
  143. data/spec/gherkin/i18n_spec.rb +152 -0
  144. data/spec/gherkin/java_lexer_spec.rb +20 -0
  145. data/spec/gherkin/java_libs.rb +20 -0
  146. data/spec/gherkin/json_parser_spec.rb +113 -0
  147. data/spec/gherkin/lexer/i18n_lexer_spec.rb +43 -0
  148. data/spec/gherkin/output_stream_string_io.rb +20 -0
  149. data/spec/gherkin/parser/parser_spec.rb +16 -0
  150. data/spec/gherkin/rb_lexer_spec.rb +19 -0
  151. data/spec/gherkin/sexp_recorder.rb +56 -0
  152. data/spec/gherkin/shared/lexer_group.rb +593 -0
  153. data/spec/gherkin/shared/py_string_group.rb +153 -0
  154. data/spec/gherkin/shared/row_group.rb +125 -0
  155. data/spec/gherkin/shared/tags_group.rb +54 -0
  156. data/spec/gherkin/tag_expression_spec.rb +137 -0
  157. data/spec/spec_helper.rb +69 -0
  158. data/tasks/bench.rake +184 -0
  159. data/tasks/bench/feature_builder.rb +49 -0
  160. data/tasks/bench/generated/.gitignore +1 -0
  161. data/tasks/bench/null_listener.rb +4 -0
  162. data/tasks/compile.rake +102 -0
  163. data/tasks/cucumber.rake +20 -0
  164. data/tasks/gems.rake +35 -0
  165. data/tasks/ikvm.rake +79 -0
  166. data/tasks/ragel_task.rb +70 -0
  167. data/tasks/rdoc.rake +9 -0
  168. data/tasks/release.rake +30 -0
  169. data/tasks/rspec.rake +8 -0
  170. metadata +609 -0
@@ -0,0 +1,997 @@
1
+
2
+ /* line 1 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
3
+ ;(function() {
4
+
5
+
6
+ /* line 107 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
7
+
8
+
9
+
10
+ /* line 11 "js/lib/gherkin/lexer/i18n/sv.js" */
11
+ const _lexer_actions = [
12
+ 0, 1, 0, 1, 1, 1, 2, 1,
13
+ 3, 1, 4, 1, 5, 1, 6, 1,
14
+ 7, 1, 8, 1, 9, 1, 10, 1,
15
+ 11, 1, 14, 1, 15, 1, 16, 1,
16
+ 17, 1, 18, 1, 19, 1, 20, 1,
17
+ 21, 2, 2, 16, 2, 11, 0, 2,
18
+ 12, 13, 2, 15, 0, 2, 15, 1,
19
+ 2, 15, 14, 2, 15, 17, 2, 16,
20
+ 4, 2, 16, 5, 2, 16, 6, 2,
21
+ 16, 7, 2, 16, 8, 2, 16, 14,
22
+ 2, 18, 19, 2, 20, 0, 2, 20,
23
+ 1, 2, 20, 14, 2, 20, 17, 3,
24
+ 3, 12, 13, 3, 9, 12, 13, 3,
25
+ 10, 12, 13, 3, 11, 12, 13, 3,
26
+ 12, 13, 16, 3, 15, 12, 13, 4,
27
+ 2, 12, 13, 16, 4, 15, 0, 12,
28
+ 13
29
+ ];
30
+
31
+ const _lexer_key_offsets = [
32
+ 0, 0, 19, 37, 38, 39, 43, 48,
33
+ 53, 58, 63, 67, 71, 73, 74, 75,
34
+ 76, 77, 78, 79, 80, 81, 82, 83,
35
+ 84, 85, 86, 87, 88, 89, 90, 92,
36
+ 97, 104, 109, 110, 111, 112, 113, 114,
37
+ 115, 116, 117, 118, 119, 120, 121, 122,
38
+ 123, 124, 125, 126, 127, 128, 142, 144,
39
+ 146, 148, 150, 152, 154, 156, 158, 160,
40
+ 162, 164, 166, 168, 170, 172, 190, 191,
41
+ 192, 193, 194, 195, 196, 197, 198, 199,
42
+ 200, 215, 217, 219, 221, 223, 225, 227,
43
+ 229, 231, 233, 235, 237, 239, 241, 243,
44
+ 245, 247, 249, 251, 253, 255, 257, 259,
45
+ 261, 263, 265, 267, 269, 271, 273, 275,
46
+ 277, 279, 281, 283, 285, 287, 289, 291,
47
+ 293, 295, 297, 299, 301, 303, 305, 307,
48
+ 309, 311, 313, 315, 318, 320, 322, 324,
49
+ 326, 328, 330, 332, 335, 337, 339, 341,
50
+ 343, 344, 345, 346, 347, 348, 349, 350,
51
+ 351, 352, 363, 365, 367, 369, 371, 373,
52
+ 375, 377, 379, 381, 383, 385, 387, 389,
53
+ 391, 393, 395, 397, 399, 401, 403, 405,
54
+ 407, 409, 411, 413, 415, 417, 419, 421,
55
+ 423, 425, 427, 429, 431, 433, 435, 437,
56
+ 439, 442, 444, 446, 448, 450, 452, 454,
57
+ 456, 458, 460, 462, 464, 466, 468, 470,
58
+ 472, 474, 476, 478, 481, 483, 485, 486,
59
+ 487, 488, 489, 490, 491, 492, 493, 500,
60
+ 502, 504, 506, 508, 510, 512, 514, 516,
61
+ 517, 518, 519, 520, 521, 522, 523, 524,
62
+ 525, 526, 527, 529, 530, 531, 532, 533,
63
+ 534, 535, 536, 538, 539, 540, 556, 558,
64
+ 560, 562, 564, 566, 568, 570, 572, 574,
65
+ 576, 578, 580, 582, 584, 586, 588, 590,
66
+ 592, 594, 596, 598, 600, 602, 604, 606,
67
+ 608, 610, 612, 614, 616, 618, 620, 622,
68
+ 624, 626, 628, 630, 632, 634, 636, 638,
69
+ 640, 642, 644, 646, 648, 650, 652, 654,
70
+ 656, 658, 660, 662, 664, 666, 668, 670,
71
+ 673, 675, 677, 679, 681, 683, 685, 687,
72
+ 690, 692, 694, 696, 697, 698, 699, 703,
73
+ 709, 712, 714, 720, 738, 740, 742, 744,
74
+ 746, 748, 750, 752, 754, 756, 758, 760,
75
+ 762, 764, 766, 768, 770, 772, 774, 776,
76
+ 779, 781, 783, 785, 787, 789, 791, 793,
77
+ 794, 795
78
+ ];
79
+
80
+ const _lexer_trans_keys = [
81
+ 10, 32, 34, 35, 37, 42, 64, 65,
82
+ 66, 69, 71, 77, 78, 79, 83, 124,
83
+ 239, 9, 13, 10, 32, 34, 35, 37,
84
+ 42, 64, 65, 66, 69, 71, 77, 78,
85
+ 79, 83, 124, 9, 13, 34, 34, 10,
86
+ 32, 9, 13, 10, 32, 34, 9, 13,
87
+ 10, 32, 34, 9, 13, 10, 32, 34,
88
+ 9, 13, 10, 32, 34, 9, 13, 10,
89
+ 32, 9, 13, 10, 32, 9, 13, 10,
90
+ 13, 10, 95, 70, 69, 65, 84, 85,
91
+ 82, 69, 95, 69, 78, 68, 95, 37,
92
+ 32, 10, 10, 13, 13, 32, 64, 9,
93
+ 10, 9, 10, 13, 32, 64, 11, 12,
94
+ 10, 32, 64, 9, 13, 98, 115, 116,
95
+ 114, 97, 107, 116, 32, 83, 99, 101,
96
+ 110, 97, 114, 105, 111, 58, 10, 10,
97
+ 10, 32, 35, 37, 42, 64, 69, 71,
98
+ 77, 78, 79, 83, 9, 13, 10, 95,
99
+ 10, 70, 10, 69, 10, 65, 10, 84,
100
+ 10, 85, 10, 82, 10, 69, 10, 95,
101
+ 10, 69, 10, 78, 10, 68, 10, 95,
102
+ 10, 37, 10, 32, 10, 32, 34, 35,
103
+ 37, 42, 64, 65, 66, 69, 71, 77,
104
+ 78, 79, 83, 124, 9, 13, 97, 107,
105
+ 103, 114, 117, 110, 100, 58, 10, 10,
106
+ 10, 32, 35, 37, 42, 64, 65, 69,
107
+ 71, 77, 78, 79, 83, 9, 13, 10,
108
+ 95, 10, 70, 10, 69, 10, 65, 10,
109
+ 84, 10, 85, 10, 82, 10, 69, 10,
110
+ 95, 10, 69, 10, 78, 10, 68, 10,
111
+ 95, 10, 37, 10, 32, 10, 98, 10,
112
+ 115, 10, 116, 10, 114, 10, 97, 10,
113
+ 107, 10, 116, 10, 32, 10, 83, 10,
114
+ 99, 10, 101, 10, 110, 10, 97, 10,
115
+ 114, 10, 105, 10, 111, 10, 58, 10,
116
+ 103, 10, 101, 10, 110, 10, 115, 10,
117
+ 107, 10, 97, 10, 112, 10, 105, 10,
118
+ 118, 10, 101, 10, 116, 10, 101, 10,
119
+ 110, -61, 10, -92, 10, 10, 114, 10,
120
+ 99, 10, 104, -61, 10, 99, -91, 10,
121
+ 10, 101, 10, 110, 10, 97, 10, 114,
122
+ 10, 105, 10, 111, 10, 58, 109, 10,
123
+ 97, 10, 108, 10, 108, 103, 120, 101,
124
+ 110, 115, 107, 97, 112, 58, 10, 10,
125
+ 10, 32, 35, 37, 64, 65, 66, 69,
126
+ 83, 9, 13, 10, 95, 10, 70, 10,
127
+ 69, 10, 65, 10, 84, 10, 85, 10,
128
+ 82, 10, 69, 10, 95, 10, 69, 10,
129
+ 78, 10, 68, 10, 95, 10, 37, 10,
130
+ 98, 10, 115, 10, 116, 10, 114, 10,
131
+ 97, 10, 107, 10, 116, 10, 32, 10,
132
+ 83, 10, 99, 10, 101, 10, 110, 10,
133
+ 97, 10, 114, 10, 105, 10, 111, 10,
134
+ 58, 10, 97, 10, 107, 10, 103, 10,
135
+ 114, 10, 117, 10, 110, 10, 100, 10,
136
+ 103, 120, 10, 101, 10, 110, 10, 115,
137
+ 10, 107, 10, 97, 10, 112, 10, 101,
138
+ 10, 109, 10, 112, 10, 101, 10, 108,
139
+ 10, 99, 10, 101, 10, 110, 10, 97,
140
+ 10, 114, 10, 105, 10, 111, 10, 58,
141
+ 109, 10, 97, 10, 108, 101, 109, 112,
142
+ 101, 108, 58, 10, 10, 10, 32, 35,
143
+ 69, 124, 9, 13, 10, 103, 10, 101,
144
+ 10, 110, 10, 115, 10, 107, 10, 97,
145
+ 10, 112, 10, 58, 105, 118, 101, 116,
146
+ 101, 110, -61, -92, 114, 99, 104, -61,
147
+ 99, -91, 101, 110, 97, 114, 105, 111,
148
+ 58, 109, 10, 10, 10, 32, 35, 37,
149
+ 42, 64, 65, 66, 69, 71, 77, 78,
150
+ 79, 83, 9, 13, 10, 95, 10, 70,
151
+ 10, 69, 10, 65, 10, 84, 10, 85,
152
+ 10, 82, 10, 69, 10, 95, 10, 69,
153
+ 10, 78, 10, 68, 10, 95, 10, 37,
154
+ 10, 32, 10, 98, 10, 115, 10, 116,
155
+ 10, 114, 10, 97, 10, 107, 10, 116,
156
+ 10, 32, 10, 83, 10, 99, 10, 101,
157
+ 10, 110, 10, 97, 10, 114, 10, 105,
158
+ 10, 111, 10, 58, 10, 97, 10, 107,
159
+ 10, 103, 10, 114, 10, 117, 10, 110,
160
+ 10, 100, 10, 103, 10, 101, 10, 110,
161
+ 10, 115, 10, 107, 10, 97, 10, 112,
162
+ 10, 105, 10, 118, 10, 101, 10, 116,
163
+ 10, 101, 10, 110, -61, 10, -92, 10,
164
+ 10, 114, 10, 99, 10, 104, -61, 10,
165
+ 99, -91, 10, 10, 101, 10, 110, 10,
166
+ 97, 10, 114, 10, 105, 10, 111, 10,
167
+ 58, 109, 10, 97, 10, 108, 10, 108,
168
+ 97, 108, 108, 32, 124, 9, 13, 10,
169
+ 32, 92, 124, 9, 13, 10, 92, 124,
170
+ 10, 92, 10, 32, 92, 124, 9, 13,
171
+ 10, 32, 34, 35, 37, 42, 64, 65,
172
+ 66, 69, 71, 77, 78, 79, 83, 124,
173
+ 9, 13, 10, 103, 10, 101, 10, 110,
174
+ 10, 115, 10, 107, 10, 97, 10, 112,
175
+ 10, 58, 10, 105, 10, 118, 10, 101,
176
+ 10, 116, 10, 101, 10, 110, -61, 10,
177
+ -92, 10, 10, 114, 10, 99, 10, 104,
178
+ -61, 10, 99, -91, 10, 10, 101, 10,
179
+ 110, 10, 97, 10, 114, 10, 105, 10,
180
+ 111, 187, 191, 0
181
+ ];
182
+
183
+ const _lexer_single_lengths = [
184
+ 0, 17, 16, 1, 1, 2, 3, 3,
185
+ 3, 3, 2, 2, 2, 1, 1, 1,
186
+ 1, 1, 1, 1, 1, 1, 1, 1,
187
+ 1, 1, 1, 1, 1, 1, 2, 3,
188
+ 5, 3, 1, 1, 1, 1, 1, 1,
189
+ 1, 1, 1, 1, 1, 1, 1, 1,
190
+ 1, 1, 1, 1, 1, 12, 2, 2,
191
+ 2, 2, 2, 2, 2, 2, 2, 2,
192
+ 2, 2, 2, 2, 2, 16, 1, 1,
193
+ 1, 1, 1, 1, 1, 1, 1, 1,
194
+ 13, 2, 2, 2, 2, 2, 2, 2,
195
+ 2, 2, 2, 2, 2, 2, 2, 2,
196
+ 2, 2, 2, 2, 2, 2, 2, 2,
197
+ 2, 2, 2, 2, 2, 2, 2, 2,
198
+ 2, 2, 2, 2, 2, 2, 2, 2,
199
+ 2, 2, 2, 2, 2, 2, 2, 2,
200
+ 2, 2, 2, 3, 2, 2, 2, 2,
201
+ 2, 2, 2, 3, 2, 2, 2, 2,
202
+ 1, 1, 1, 1, 1, 1, 1, 1,
203
+ 1, 9, 2, 2, 2, 2, 2, 2,
204
+ 2, 2, 2, 2, 2, 2, 2, 2,
205
+ 2, 2, 2, 2, 2, 2, 2, 2,
206
+ 2, 2, 2, 2, 2, 2, 2, 2,
207
+ 2, 2, 2, 2, 2, 2, 2, 2,
208
+ 3, 2, 2, 2, 2, 2, 2, 2,
209
+ 2, 2, 2, 2, 2, 2, 2, 2,
210
+ 2, 2, 2, 3, 2, 2, 1, 1,
211
+ 1, 1, 1, 1, 1, 1, 5, 2,
212
+ 2, 2, 2, 2, 2, 2, 2, 1,
213
+ 1, 1, 1, 1, 1, 1, 1, 1,
214
+ 1, 1, 2, 1, 1, 1, 1, 1,
215
+ 1, 1, 2, 1, 1, 14, 2, 2,
216
+ 2, 2, 2, 2, 2, 2, 2, 2,
217
+ 2, 2, 2, 2, 2, 2, 2, 2,
218
+ 2, 2, 2, 2, 2, 2, 2, 2,
219
+ 2, 2, 2, 2, 2, 2, 2, 2,
220
+ 2, 2, 2, 2, 2, 2, 2, 2,
221
+ 2, 2, 2, 2, 2, 2, 2, 2,
222
+ 2, 2, 2, 2, 2, 2, 2, 3,
223
+ 2, 2, 2, 2, 2, 2, 2, 3,
224
+ 2, 2, 2, 1, 1, 1, 2, 4,
225
+ 3, 2, 4, 16, 2, 2, 2, 2,
226
+ 2, 2, 2, 2, 2, 2, 2, 2,
227
+ 2, 2, 2, 2, 2, 2, 2, 3,
228
+ 2, 2, 2, 2, 2, 2, 2, 1,
229
+ 1, 0
230
+ ];
231
+
232
+ const _lexer_range_lengths = [
233
+ 0, 1, 1, 0, 0, 1, 1, 1,
234
+ 1, 1, 1, 1, 0, 0, 0, 0,
235
+ 0, 0, 0, 0, 0, 0, 0, 0,
236
+ 0, 0, 0, 0, 0, 0, 0, 1,
237
+ 1, 1, 0, 0, 0, 0, 0, 0,
238
+ 0, 0, 0, 0, 0, 0, 0, 0,
239
+ 0, 0, 0, 0, 0, 1, 0, 0,
240
+ 0, 0, 0, 0, 0, 0, 0, 0,
241
+ 0, 0, 0, 0, 0, 1, 0, 0,
242
+ 0, 0, 0, 0, 0, 0, 0, 0,
243
+ 1, 0, 0, 0, 0, 0, 0, 0,
244
+ 0, 0, 0, 0, 0, 0, 0, 0,
245
+ 0, 0, 0, 0, 0, 0, 0, 0,
246
+ 0, 0, 0, 0, 0, 0, 0, 0,
247
+ 0, 0, 0, 0, 0, 0, 0, 0,
248
+ 0, 0, 0, 0, 0, 0, 0, 0,
249
+ 0, 0, 0, 0, 0, 0, 0, 0,
250
+ 0, 0, 0, 0, 0, 0, 0, 0,
251
+ 0, 0, 0, 0, 0, 0, 0, 0,
252
+ 0, 1, 0, 0, 0, 0, 0, 0,
253
+ 0, 0, 0, 0, 0, 0, 0, 0,
254
+ 0, 0, 0, 0, 0, 0, 0, 0,
255
+ 0, 0, 0, 0, 0, 0, 0, 0,
256
+ 0, 0, 0, 0, 0, 0, 0, 0,
257
+ 0, 0, 0, 0, 0, 0, 0, 0,
258
+ 0, 0, 0, 0, 0, 0, 0, 0,
259
+ 0, 0, 0, 0, 0, 0, 0, 0,
260
+ 0, 0, 0, 0, 0, 0, 1, 0,
261
+ 0, 0, 0, 0, 0, 0, 0, 0,
262
+ 0, 0, 0, 0, 0, 0, 0, 0,
263
+ 0, 0, 0, 0, 0, 0, 0, 0,
264
+ 0, 0, 0, 0, 0, 1, 0, 0,
265
+ 0, 0, 0, 0, 0, 0, 0, 0,
266
+ 0, 0, 0, 0, 0, 0, 0, 0,
267
+ 0, 0, 0, 0, 0, 0, 0, 0,
268
+ 0, 0, 0, 0, 0, 0, 0, 0,
269
+ 0, 0, 0, 0, 0, 0, 0, 0,
270
+ 0, 0, 0, 0, 0, 0, 0, 0,
271
+ 0, 0, 0, 0, 0, 0, 0, 0,
272
+ 0, 0, 0, 0, 0, 0, 0, 0,
273
+ 0, 0, 0, 0, 0, 0, 1, 1,
274
+ 0, 0, 1, 1, 0, 0, 0, 0,
275
+ 0, 0, 0, 0, 0, 0, 0, 0,
276
+ 0, 0, 0, 0, 0, 0, 0, 0,
277
+ 0, 0, 0, 0, 0, 0, 0, 0,
278
+ 0, 0
279
+ ];
280
+
281
+ const _lexer_index_offsets = [
282
+ 0, 0, 19, 37, 39, 41, 45, 50,
283
+ 55, 60, 65, 69, 73, 76, 78, 80,
284
+ 82, 84, 86, 88, 90, 92, 94, 96,
285
+ 98, 100, 102, 104, 106, 108, 110, 113,
286
+ 118, 125, 130, 132, 134, 136, 138, 140,
287
+ 142, 144, 146, 148, 150, 152, 154, 156,
288
+ 158, 160, 162, 164, 166, 168, 182, 185,
289
+ 188, 191, 194, 197, 200, 203, 206, 209,
290
+ 212, 215, 218, 221, 224, 227, 245, 247,
291
+ 249, 251, 253, 255, 257, 259, 261, 263,
292
+ 265, 280, 283, 286, 289, 292, 295, 298,
293
+ 301, 304, 307, 310, 313, 316, 319, 322,
294
+ 325, 328, 331, 334, 337, 340, 343, 346,
295
+ 349, 352, 355, 358, 361, 364, 367, 370,
296
+ 373, 376, 379, 382, 385, 388, 391, 394,
297
+ 397, 400, 403, 406, 409, 412, 415, 418,
298
+ 421, 424, 427, 430, 434, 437, 440, 443,
299
+ 446, 449, 452, 455, 459, 462, 465, 468,
300
+ 471, 473, 475, 477, 479, 481, 483, 485,
301
+ 487, 489, 500, 503, 506, 509, 512, 515,
302
+ 518, 521, 524, 527, 530, 533, 536, 539,
303
+ 542, 545, 548, 551, 554, 557, 560, 563,
304
+ 566, 569, 572, 575, 578, 581, 584, 587,
305
+ 590, 593, 596, 599, 602, 605, 608, 611,
306
+ 614, 618, 621, 624, 627, 630, 633, 636,
307
+ 639, 642, 645, 648, 651, 654, 657, 660,
308
+ 663, 666, 669, 672, 676, 679, 682, 684,
309
+ 686, 688, 690, 692, 694, 696, 698, 705,
310
+ 708, 711, 714, 717, 720, 723, 726, 729,
311
+ 731, 733, 735, 737, 739, 741, 743, 745,
312
+ 747, 749, 751, 754, 756, 758, 760, 762,
313
+ 764, 766, 768, 771, 773, 775, 791, 794,
314
+ 797, 800, 803, 806, 809, 812, 815, 818,
315
+ 821, 824, 827, 830, 833, 836, 839, 842,
316
+ 845, 848, 851, 854, 857, 860, 863, 866,
317
+ 869, 872, 875, 878, 881, 884, 887, 890,
318
+ 893, 896, 899, 902, 905, 908, 911, 914,
319
+ 917, 920, 923, 926, 929, 932, 935, 938,
320
+ 941, 944, 947, 950, 953, 956, 959, 962,
321
+ 966, 969, 972, 975, 978, 981, 984, 987,
322
+ 991, 994, 997, 1000, 1002, 1004, 1006, 1010,
323
+ 1016, 1020, 1023, 1029, 1047, 1050, 1053, 1056,
324
+ 1059, 1062, 1065, 1068, 1071, 1074, 1077, 1080,
325
+ 1083, 1086, 1089, 1092, 1095, 1098, 1101, 1104,
326
+ 1108, 1111, 1114, 1117, 1120, 1123, 1126, 1129,
327
+ 1131, 1133
328
+ ];
329
+
330
+ const _lexer_indicies = [
331
+ 2, 1, 3, 4, 5, 6, 7, 8,
332
+ 9, 10, 11, 12, 13, 14, 15, 16,
333
+ 17, 1, 0, 2, 1, 3, 4, 5,
334
+ 6, 7, 8, 9, 10, 11, 12, 13,
335
+ 14, 15, 16, 1, 0, 18, 0, 19,
336
+ 0, 20, 19, 19, 0, 23, 22, 24,
337
+ 22, 21, 27, 26, 28, 26, 25, 27,
338
+ 26, 29, 26, 25, 27, 26, 30, 26,
339
+ 25, 32, 31, 31, 0, 2, 33, 33,
340
+ 0, 35, 36, 34, 2, 0, 37, 0,
341
+ 38, 0, 39, 0, 40, 0, 41, 0,
342
+ 42, 0, 43, 0, 44, 0, 45, 0,
343
+ 46, 0, 47, 0, 48, 0, 49, 0,
344
+ 50, 0, 51, 0, 0, 52, 54, 55,
345
+ 53, 0, 0, 0, 0, 56, 57, 58,
346
+ 57, 57, 60, 59, 56, 2, 61, 7,
347
+ 61, 0, 62, 0, 63, 0, 64, 0,
348
+ 65, 0, 66, 0, 67, 0, 68, 0,
349
+ 69, 0, 70, 0, 71, 0, 72, 0,
350
+ 73, 0, 74, 0, 75, 0, 76, 0,
351
+ 77, 0, 78, 0, 80, 79, 82, 81,
352
+ 82, 83, 84, 85, 86, 84, 87, 88,
353
+ 89, 90, 91, 92, 83, 81, 82, 93,
354
+ 81, 82, 94, 81, 82, 95, 81, 82,
355
+ 96, 81, 82, 97, 81, 82, 98, 81,
356
+ 82, 99, 81, 82, 100, 81, 82, 101,
357
+ 81, 82, 102, 81, 82, 103, 81, 82,
358
+ 104, 81, 82, 105, 81, 82, 106, 81,
359
+ 82, 107, 81, 109, 108, 110, 111, 112,
360
+ 113, 114, 115, 116, 117, 118, 119, 120,
361
+ 121, 122, 123, 108, 0, 124, 0, 125,
362
+ 0, 126, 0, 127, 0, 128, 0, 129,
363
+ 0, 130, 0, 131, 0, 133, 132, 135,
364
+ 134, 135, 136, 137, 138, 139, 137, 140,
365
+ 141, 142, 143, 144, 145, 146, 136, 134,
366
+ 135, 147, 134, 135, 148, 134, 135, 149,
367
+ 134, 135, 150, 134, 135, 151, 134, 135,
368
+ 152, 134, 135, 153, 134, 135, 154, 134,
369
+ 135, 155, 134, 135, 156, 134, 135, 157,
370
+ 134, 135, 158, 134, 135, 159, 134, 135,
371
+ 160, 134, 135, 161, 134, 135, 162, 134,
372
+ 135, 163, 134, 135, 164, 134, 135, 165,
373
+ 134, 135, 166, 134, 135, 167, 134, 135,
374
+ 168, 134, 135, 169, 134, 135, 170, 134,
375
+ 135, 171, 134, 135, 172, 134, 135, 173,
376
+ 134, 135, 174, 134, 135, 175, 134, 135,
377
+ 176, 134, 135, 177, 134, 135, 161, 134,
378
+ 135, 178, 134, 135, 179, 134, 135, 180,
379
+ 134, 135, 181, 134, 135, 182, 134, 135,
380
+ 183, 134, 135, 177, 134, 135, 184, 134,
381
+ 135, 185, 134, 135, 186, 134, 135, 187,
382
+ 134, 135, 188, 134, 135, 187, 134, 189,
383
+ 135, 134, 190, 135, 134, 135, 187, 134,
384
+ 135, 191, 134, 135, 187, 134, 192, 135,
385
+ 193, 134, 187, 135, 134, 135, 194, 134,
386
+ 135, 195, 134, 135, 196, 134, 135, 197,
387
+ 134, 135, 198, 134, 135, 199, 134, 135,
388
+ 161, 200, 134, 135, 201, 134, 135, 202,
389
+ 134, 135, 177, 134, 203, 204, 0, 205,
390
+ 0, 206, 0, 207, 0, 208, 0, 209,
391
+ 0, 210, 0, 211, 0, 213, 212, 215,
392
+ 214, 215, 216, 217, 218, 217, 219, 220,
393
+ 221, 222, 216, 214, 215, 223, 214, 215,
394
+ 224, 214, 215, 225, 214, 215, 226, 214,
395
+ 215, 227, 214, 215, 228, 214, 215, 229,
396
+ 214, 215, 230, 214, 215, 231, 214, 215,
397
+ 232, 214, 215, 233, 214, 215, 234, 214,
398
+ 215, 235, 214, 215, 236, 214, 215, 237,
399
+ 214, 215, 238, 214, 215, 239, 214, 215,
400
+ 240, 214, 215, 241, 214, 215, 242, 214,
401
+ 215, 243, 214, 215, 244, 214, 215, 245,
402
+ 214, 215, 246, 214, 215, 247, 214, 215,
403
+ 248, 214, 215, 249, 214, 215, 250, 214,
404
+ 215, 251, 214, 215, 252, 214, 215, 253,
405
+ 214, 215, 254, 214, 215, 255, 214, 215,
406
+ 256, 214, 215, 257, 214, 215, 258, 214,
407
+ 215, 259, 214, 215, 252, 214, 215, 260,
408
+ 261, 214, 215, 262, 214, 215, 263, 214,
409
+ 215, 264, 214, 215, 265, 214, 215, 266,
410
+ 214, 215, 252, 214, 215, 267, 214, 215,
411
+ 268, 214, 215, 269, 214, 215, 270, 214,
412
+ 215, 252, 214, 215, 271, 214, 215, 272,
413
+ 214, 215, 273, 214, 215, 274, 214, 215,
414
+ 275, 214, 215, 276, 214, 215, 277, 214,
415
+ 215, 253, 278, 214, 215, 279, 214, 215,
416
+ 270, 214, 280, 0, 281, 0, 282, 0,
417
+ 283, 0, 284, 0, 285, 0, 287, 286,
418
+ 289, 288, 289, 290, 291, 292, 291, 290,
419
+ 288, 289, 293, 288, 289, 294, 288, 289,
420
+ 295, 288, 289, 296, 288, 289, 297, 288,
421
+ 289, 298, 288, 289, 299, 288, 289, 300,
422
+ 288, 301, 0, 302, 0, 303, 0, 304,
423
+ 0, 305, 0, 304, 0, 306, 0, 307,
424
+ 0, 304, 0, 308, 0, 304, 0, 309,
425
+ 310, 0, 304, 0, 311, 0, 312, 0,
426
+ 313, 0, 314, 0, 315, 0, 316, 0,
427
+ 317, 318, 0, 320, 319, 322, 321, 322,
428
+ 323, 324, 325, 326, 324, 327, 328, 329,
429
+ 330, 331, 332, 333, 334, 323, 321, 322,
430
+ 335, 321, 322, 336, 321, 322, 337, 321,
431
+ 322, 338, 321, 322, 339, 321, 322, 340,
432
+ 321, 322, 341, 321, 322, 342, 321, 322,
433
+ 343, 321, 322, 344, 321, 322, 345, 321,
434
+ 322, 346, 321, 322, 347, 321, 322, 348,
435
+ 321, 322, 349, 321, 322, 350, 321, 322,
436
+ 351, 321, 322, 352, 321, 322, 353, 321,
437
+ 322, 354, 321, 322, 355, 321, 322, 356,
438
+ 321, 322, 357, 321, 322, 358, 321, 322,
439
+ 359, 321, 322, 360, 321, 322, 361, 321,
440
+ 322, 362, 321, 322, 363, 321, 322, 364,
441
+ 321, 322, 365, 321, 322, 349, 321, 322,
442
+ 366, 321, 322, 367, 321, 322, 368, 321,
443
+ 322, 369, 321, 322, 370, 321, 322, 371,
444
+ 321, 322, 365, 321, 322, 372, 321, 322,
445
+ 373, 321, 322, 374, 321, 322, 375, 321,
446
+ 322, 376, 321, 322, 377, 321, 322, 365,
447
+ 321, 322, 378, 321, 322, 379, 321, 322,
448
+ 380, 321, 322, 381, 321, 322, 382, 321,
449
+ 322, 381, 321, 383, 322, 321, 384, 322,
450
+ 321, 322, 381, 321, 322, 385, 321, 322,
451
+ 381, 321, 386, 322, 387, 321, 381, 322,
452
+ 321, 322, 388, 321, 322, 389, 321, 322,
453
+ 390, 321, 322, 391, 321, 322, 392, 321,
454
+ 322, 393, 321, 322, 349, 394, 321, 322,
455
+ 395, 321, 322, 396, 321, 322, 365, 321,
456
+ 397, 0, 398, 0, 77, 0, 399, 400,
457
+ 399, 0, 403, 402, 404, 405, 402, 401,
458
+ 0, 407, 408, 406, 0, 407, 406, 403,
459
+ 409, 407, 408, 409, 406, 403, 410, 411,
460
+ 412, 413, 414, 415, 416, 417, 418, 419,
461
+ 420, 421, 422, 423, 424, 410, 0, 82,
462
+ 425, 81, 82, 426, 81, 82, 427, 81,
463
+ 82, 428, 81, 82, 429, 81, 82, 430,
464
+ 81, 82, 431, 81, 82, 107, 81, 82,
465
+ 432, 81, 82, 433, 81, 82, 434, 81,
466
+ 82, 435, 81, 82, 436, 81, 82, 435,
467
+ 81, 437, 82, 81, 438, 82, 81, 82,
468
+ 435, 81, 82, 439, 81, 82, 435, 81,
469
+ 440, 82, 441, 81, 435, 82, 81, 82,
470
+ 442, 81, 82, 443, 81, 82, 444, 81,
471
+ 82, 445, 81, 82, 446, 81, 82, 431,
472
+ 81, 447, 0, 1, 0, 448, 0
473
+ ];
474
+
475
+ const _lexer_trans_targs = [
476
+ 0, 2, 2, 3, 12, 14, 28, 31,
477
+ 34, 70, 143, 231, 235, 237, 240, 242,
478
+ 326, 359, 4, 5, 6, 7, 7, 7,
479
+ 8, 7, 7, 7, 8, 9, 10, 11,
480
+ 2, 11, 12, 2, 13, 15, 16, 17,
481
+ 18, 19, 20, 21, 22, 23, 24, 25,
482
+ 26, 27, 361, 29, 30, 30, 2, 13,
483
+ 32, 33, 2, 32, 31, 33, 35, 36,
484
+ 37, 38, 39, 40, 41, 42, 43, 44,
485
+ 45, 46, 47, 48, 49, 50, 51, 52,
486
+ 53, 52, 53, 53, 2, 54, 68, 332,
487
+ 340, 344, 346, 349, 351, 55, 56, 57,
488
+ 58, 59, 60, 61, 62, 63, 64, 65,
489
+ 66, 67, 2, 69, 2, 2, 3, 12,
490
+ 14, 28, 31, 34, 70, 143, 231, 235,
491
+ 237, 240, 242, 326, 71, 72, 73, 74,
492
+ 75, 76, 77, 78, 79, 80, 79, 80,
493
+ 80, 2, 81, 95, 96, 113, 120, 124,
494
+ 126, 129, 131, 82, 83, 84, 85, 86,
495
+ 87, 88, 89, 90, 91, 92, 93, 94,
496
+ 2, 69, 97, 98, 99, 100, 101, 102,
497
+ 103, 104, 105, 106, 107, 108, 109, 110,
498
+ 111, 112, 114, 115, 116, 117, 118, 119,
499
+ 121, 122, 123, 95, 125, 127, 128, 130,
500
+ 132, 133, 134, 135, 136, 137, 138, 139,
501
+ 140, 141, 142, 144, 214, 145, 146, 147,
502
+ 148, 149, 150, 151, 152, 153, 152, 153,
503
+ 153, 2, 154, 168, 185, 192, 204, 155,
504
+ 156, 157, 158, 159, 160, 161, 162, 163,
505
+ 164, 165, 166, 167, 2, 169, 170, 171,
506
+ 172, 173, 174, 175, 176, 177, 178, 179,
507
+ 180, 181, 182, 183, 184, 69, 186, 187,
508
+ 188, 189, 190, 191, 193, 199, 194, 195,
509
+ 196, 197, 198, 200, 201, 202, 203, 205,
510
+ 206, 207, 208, 209, 210, 211, 212, 213,
511
+ 215, 216, 217, 218, 219, 220, 221, 222,
512
+ 221, 222, 222, 2, 223, 224, 225, 226,
513
+ 227, 228, 229, 230, 69, 232, 233, 234,
514
+ 28, 236, 238, 239, 241, 243, 244, 245,
515
+ 246, 247, 248, 249, 250, 251, 323, 252,
516
+ 253, 252, 253, 253, 2, 254, 268, 269,
517
+ 286, 293, 300, 304, 306, 309, 311, 255,
518
+ 256, 257, 258, 259, 260, 261, 262, 263,
519
+ 264, 265, 266, 267, 2, 69, 270, 271,
520
+ 272, 273, 274, 275, 276, 277, 278, 279,
521
+ 280, 281, 282, 283, 284, 285, 287, 288,
522
+ 289, 290, 291, 292, 294, 295, 296, 297,
523
+ 298, 299, 301, 302, 303, 268, 305, 307,
524
+ 308, 310, 312, 313, 314, 315, 316, 317,
525
+ 318, 319, 320, 321, 322, 324, 325, 326,
526
+ 327, 328, 330, 331, 329, 327, 328, 329,
527
+ 327, 330, 331, 3, 12, 14, 28, 31,
528
+ 34, 70, 143, 231, 235, 237, 240, 242,
529
+ 326, 333, 334, 335, 336, 337, 338, 339,
530
+ 341, 342, 343, 68, 345, 347, 348, 350,
531
+ 352, 353, 354, 355, 356, 357, 358, 360,
532
+ 0
533
+ ];
534
+
535
+ const _lexer_trans_actions = [
536
+ 39, 0, 47, 3, 1, 0, 25, 1,
537
+ 25, 25, 25, 25, 25, 25, 25, 25,
538
+ 31, 0, 0, 0, 47, 5, 41, 119,
539
+ 41, 0, 29, 111, 29, 29, 0, 7,
540
+ 95, 0, 0, 103, 21, 0, 0, 0,
541
+ 0, 0, 0, 0, 0, 0, 0, 0,
542
+ 0, 0, 0, 0, 50, 0, 99, 19,
543
+ 0, 23, 107, 23, 44, 0, 0, 0,
544
+ 0, 0, 0, 0, 0, 0, 0, 0,
545
+ 0, 0, 0, 0, 0, 0, 0, 50,
546
+ 124, 0, 47, 0, 71, 29, 77, 77,
547
+ 77, 77, 77, 77, 77, 0, 0, 0,
548
+ 0, 0, 0, 0, 0, 0, 0, 0,
549
+ 0, 0, 15, 15, 27, 115, 53, 50,
550
+ 27, 56, 50, 56, 56, 56, 56, 56,
551
+ 56, 56, 56, 59, 0, 0, 0, 0,
552
+ 0, 0, 0, 0, 50, 124, 0, 47,
553
+ 0, 65, 29, 77, 77, 77, 77, 77,
554
+ 77, 77, 77, 0, 0, 0, 0, 0,
555
+ 0, 0, 0, 0, 0, 0, 0, 0,
556
+ 11, 11, 0, 0, 0, 0, 0, 0,
557
+ 0, 0, 0, 0, 0, 0, 0, 0,
558
+ 0, 0, 0, 0, 0, 0, 0, 0,
559
+ 0, 0, 0, 0, 0, 0, 0, 0,
560
+ 0, 0, 0, 0, 0, 0, 0, 0,
561
+ 0, 0, 0, 0, 0, 0, 0, 0,
562
+ 0, 0, 0, 0, 50, 124, 0, 47,
563
+ 0, 62, 29, 77, 77, 77, 77, 0,
564
+ 0, 0, 0, 0, 0, 0, 0, 0,
565
+ 0, 0, 0, 0, 9, 0, 0, 0,
566
+ 0, 0, 0, 0, 0, 0, 0, 0,
567
+ 0, 0, 0, 0, 0, 9, 0, 0,
568
+ 0, 0, 0, 0, 0, 0, 0, 0,
569
+ 0, 0, 0, 0, 0, 0, 0, 0,
570
+ 0, 0, 0, 0, 0, 0, 0, 0,
571
+ 0, 0, 0, 0, 0, 0, 50, 124,
572
+ 0, 47, 0, 74, 77, 0, 0, 0,
573
+ 0, 0, 0, 0, 17, 0, 0, 0,
574
+ 0, 0, 0, 0, 0, 0, 0, 0,
575
+ 0, 0, 0, 0, 0, 0, 0, 50,
576
+ 124, 0, 47, 0, 68, 29, 77, 77,
577
+ 77, 77, 77, 77, 77, 77, 77, 0,
578
+ 0, 0, 0, 0, 0, 0, 0, 0,
579
+ 0, 0, 0, 0, 13, 13, 0, 0,
580
+ 0, 0, 0, 0, 0, 0, 0, 0,
581
+ 0, 0, 0, 0, 0, 0, 0, 0,
582
+ 0, 0, 0, 0, 0, 0, 0, 0,
583
+ 0, 0, 0, 0, 0, 0, 0, 0,
584
+ 0, 0, 0, 0, 0, 0, 0, 0,
585
+ 0, 0, 0, 0, 0, 0, 0, 0,
586
+ 0, 33, 33, 47, 33, 80, 0, 0,
587
+ 35, 0, 0, 86, 83, 37, 89, 83,
588
+ 89, 89, 89, 89, 89, 89, 89, 89,
589
+ 92, 0, 0, 0, 0, 0, 0, 0,
590
+ 0, 0, 0, 0, 0, 0, 0, 0,
591
+ 0, 0, 0, 0, 0, 0, 0, 0,
592
+ 0
593
+ ];
594
+
595
+ const _lexer_eof_actions = [
596
+ 0, 39, 39, 39, 39, 39, 39, 39,
597
+ 39, 39, 39, 39, 39, 39, 39, 39,
598
+ 39, 39, 39, 39, 39, 39, 39, 39,
599
+ 39, 39, 39, 39, 39, 39, 39, 39,
600
+ 39, 39, 39, 39, 39, 39, 39, 39,
601
+ 39, 39, 39, 39, 39, 39, 39, 39,
602
+ 39, 39, 39, 39, 39, 39, 39, 39,
603
+ 39, 39, 39, 39, 39, 39, 39, 39,
604
+ 39, 39, 39, 39, 39, 39, 39, 39,
605
+ 39, 39, 39, 39, 39, 39, 39, 39,
606
+ 39, 39, 39, 39, 39, 39, 39, 39,
607
+ 39, 39, 39, 39, 39, 39, 39, 39,
608
+ 39, 39, 39, 39, 39, 39, 39, 39,
609
+ 39, 39, 39, 39, 39, 39, 39, 39,
610
+ 39, 39, 39, 39, 39, 39, 39, 39,
611
+ 39, 39, 39, 39, 39, 39, 39, 39,
612
+ 39, 39, 39, 39, 39, 39, 39, 39,
613
+ 39, 39, 39, 39, 39, 39, 39, 39,
614
+ 39, 39, 39, 39, 39, 39, 39, 39,
615
+ 39, 39, 39, 39, 39, 39, 39, 39,
616
+ 39, 39, 39, 39, 39, 39, 39, 39,
617
+ 39, 39, 39, 39, 39, 39, 39, 39,
618
+ 39, 39, 39, 39, 39, 39, 39, 39,
619
+ 39, 39, 39, 39, 39, 39, 39, 39,
620
+ 39, 39, 39, 39, 39, 39, 39, 39,
621
+ 39, 39, 39, 39, 39, 39, 39, 39,
622
+ 39, 39, 39, 39, 39, 39, 39, 39,
623
+ 39, 39, 39, 39, 39, 39, 39, 39,
624
+ 39, 39, 39, 39, 39, 39, 39, 39,
625
+ 39, 39, 39, 39, 39, 39, 39, 39,
626
+ 39, 39, 39, 39, 39, 39, 39, 39,
627
+ 39, 39, 39, 39, 39, 39, 39, 39,
628
+ 39, 39, 39, 39, 39, 39, 39, 39,
629
+ 39, 39, 39, 39, 39, 39, 39, 39,
630
+ 39, 39, 39, 39, 39, 39, 39, 39,
631
+ 39, 39, 39, 39, 39, 39, 39, 39,
632
+ 39, 39, 39, 39, 39, 39, 39, 39,
633
+ 39, 39, 39, 39, 39, 39, 39, 39,
634
+ 39, 39, 39, 39, 39, 39, 39, 39,
635
+ 39, 39, 39, 39, 39, 39, 39, 39,
636
+ 39, 39, 39, 39, 39, 39, 39, 39,
637
+ 39, 39, 39, 39, 39, 39, 39, 39,
638
+ 39, 39, 39, 39, 39, 39, 39, 39,
639
+ 39, 39, 39, 39, 39, 39, 39, 39,
640
+ 39, 39, 39, 39, 39, 39, 39, 39,
641
+ 39, 39
642
+ ];
643
+
644
+ const lexer_start = 1;
645
+ const lexer_first_final = 361;
646
+ const lexer_error = 0;
647
+
648
+ const lexer_en_main = 1;
649
+
650
+
651
+ /* line 110 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
652
+
653
+ /* line 111 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
654
+
655
+ /* line 112 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
656
+
657
+ var Lexer = function(listeners) {
658
+ // check that we have an 'on' method (for registering event listeners - Node has that)
659
+ // If not, make a trivial implementation that can register one listener. -Enough for testing.
660
+
661
+ if(!this.on) {
662
+ this._listeners = {};
663
+
664
+ this.on = function(event, cb) {
665
+ this._listeners[event] = cb;
666
+ };
667
+
668
+ this.emit = function() {
669
+ var event = arguments[0];
670
+ var args = [];
671
+ for(var i = 1; i < arguments.length; i++) {
672
+ args.push(arguments[i]);
673
+ }
674
+ var cb = this._listeners[event];
675
+ cb.apply(listeners, args);
676
+ };
677
+ }
678
+
679
+ var events = ['feature', 'background', 'scenario', 'scenario_outline', 'examples', 'step', 'py_string', 'row', 'end'];
680
+ for(e in events) {
681
+ var event = events[e];
682
+ var listener = listeners[event];
683
+ // if(!listener) {
684
+ // throw "No listener for " + event;
685
+ // }
686
+ this.on(event, listener);
687
+ }
688
+
689
+
690
+ /* line 691 "js/lib/gherkin/lexer/i18n/sv.js" */
691
+ {
692
+ this.cs = lexer_start;
693
+ } /* JSCodeGen::writeInit */
694
+
695
+ /* line 146 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
696
+ };
697
+
698
+ if(typeof require == 'function') {
699
+ require('sys').inherits(Lexer, require('events').EventEmitter);
700
+ }
701
+
702
+ Lexer.prototype.scan = function(data) {
703
+ var p = 0;
704
+ var pe = data.length;
705
+ var eof = 0;
706
+
707
+
708
+ /* line 709 "js/lib/gherkin/lexer/i18n/sv.js" */
709
+ {
710
+ var _klen, _trans, _keys, _ps, _widec, _acts, _nacts;
711
+ var _goto_level, _resume, _eof_trans, _again, _test_eof;
712
+ var _out;
713
+ _klen = _trans = _keys = _acts = _nacts = null;
714
+ _goto_level = 0;
715
+ _resume = 10;
716
+ _eof_trans = 15;
717
+ _again = 20;
718
+ _test_eof = 30;
719
+ _out = 40;
720
+ while (true) {
721
+ _trigger_goto = false;
722
+ if (_goto_level <= 0) {
723
+ if (p == pe) {
724
+ _goto_level = _test_eof;
725
+ continue;
726
+ }
727
+ if ( this.cs == 0) {
728
+ _goto_level = _out;
729
+ continue;
730
+ }
731
+ }
732
+ if (_goto_level <= _resume) {
733
+ _keys = _lexer_key_offsets[ this.cs];
734
+ _trans = _lexer_index_offsets[ this.cs];
735
+ _klen = _lexer_single_lengths[ this.cs];
736
+ _break_match = false;
737
+
738
+ do {
739
+ if (_klen > 0) {
740
+ _lower = _keys;
741
+ _upper = _keys + _klen - 1;
742
+
743
+ while (true) {
744
+ if (_upper < _lower) { break; }
745
+ _mid = _lower + ( (_upper - _lower) >> 1 );
746
+
747
+ if ( data[p] < _lexer_trans_keys[_mid]) {
748
+ _upper = _mid - 1;
749
+ } else if ( data[p] > _lexer_trans_keys[_mid]) {
750
+ _lower = _mid + 1;
751
+ } else {
752
+ _trans += (_mid - _keys);
753
+ _break_match = true;
754
+ break;
755
+ };
756
+ } /* while */
757
+ if (_break_match) { break; }
758
+ _keys += _klen;
759
+ _trans += _klen;
760
+ }
761
+ _klen = _lexer_range_lengths[ this.cs];
762
+ if (_klen > 0) {
763
+ _lower = _keys;
764
+ _upper = _keys + (_klen << 1) - 2;
765
+ while (true) {
766
+ if (_upper < _lower) { break; }
767
+ _mid = _lower + (((_upper-_lower) >> 1) & ~1);
768
+ if ( data[p] < _lexer_trans_keys[_mid]) {
769
+ _upper = _mid - 2;
770
+ } else if ( data[p] > _lexer_trans_keys[_mid+1]) {
771
+ _lower = _mid + 2;
772
+ } else {
773
+ _trans += ((_mid - _keys) >> 1);
774
+ _break_match = true;
775
+ break;
776
+ }
777
+ } /* while */
778
+ if (_break_match) { break; }
779
+ _trans += _klen
780
+ }
781
+ } while (false);
782
+ _trans = _lexer_indicies[_trans];
783
+ this.cs = _lexer_trans_targs[_trans];
784
+ if (_lexer_trans_actions[_trans] != 0) {
785
+ _acts = _lexer_trans_actions[_trans];
786
+ _nacts = _lexer_actions[_acts];
787
+ _acts += 1;
788
+ while (_nacts > 0) {
789
+ _nacts -= 1;
790
+ _acts += 1;
791
+ switch (_lexer_actions[_acts - 1]) {
792
+ case 0:
793
+ /* line 6 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
794
+
795
+ this.content_start = p;
796
+ this.current_line = this.line_number;
797
+ this.start_col = p - this.last_newline - (this.keyword+':').length;
798
+ break;
799
+ case 1:
800
+ /* line 12 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
801
+
802
+ this.current_line = this.line_number;
803
+ this.start_col = p - this.last_newline;
804
+ break;
805
+ case 2:
806
+ /* line 17 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
807
+
808
+ this.content_start = p;
809
+ break;
810
+ case 3:
811
+ /* line 21 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
812
+
813
+ var con = this.unindent(
814
+ this.start_col,
815
+ this.bytesToString(data.slice(this.content_start, this.next_keyword_start-1)).replace(/(\r?\n)?([\t ])*\Z/, '') // TODO .replace(/\"\"\"/mg, '"""')
816
+ );
817
+ this.emit('py_string', con, this.current_line);
818
+ break;
819
+ case 4:
820
+ /* line 29 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
821
+
822
+ p = this.store_keyword_content('feature', data, p, eof);
823
+ break;
824
+ case 5:
825
+ /* line 33 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
826
+
827
+ p = this.store_keyword_content('background', data, p, eof);
828
+ break;
829
+ case 6:
830
+ /* line 37 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
831
+
832
+ p = this.store_keyword_content('scenario', data, p, eof);
833
+ break;
834
+ case 7:
835
+ /* line 41 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
836
+
837
+ p = this.store_keyword_content('scenario_outline', data, p, eof);
838
+ break;
839
+ case 8:
840
+ /* line 45 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
841
+
842
+ p = this.store_keyword_content('examples', data, p, eof);
843
+ break;
844
+ case 9:
845
+ /* line 49 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
846
+
847
+ var con = this.bytesToString(data.slice(this.content_start, p)).trim();
848
+ this.emit('step', this.keyword, con, this.current_line);
849
+ break;
850
+ case 10:
851
+ /* line 54 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
852
+
853
+ console.log('TODO: store_comment_content');
854
+ break;
855
+ case 11:
856
+ /* line 58 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
857
+
858
+ console.log('TODO: store_tag_content');
859
+ break;
860
+ case 12:
861
+ /* line 62 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
862
+
863
+ this.line_number++;
864
+ break;
865
+ case 13:
866
+ /* line 66 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
867
+
868
+ this.last_newline = p + 1;
869
+ break;
870
+ case 14:
871
+ /* line 70 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
872
+
873
+ this.keyword_start = this.keyword_start || p;
874
+ break;
875
+ case 15:
876
+ /* line 74 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
877
+
878
+ this.keyword = this.bytesToString(data.slice(this.keyword_start, p)).replace(/:$/, '');
879
+ this.keyword_start = null;
880
+ break;
881
+ case 16:
882
+ /* line 79 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
883
+
884
+ this.next_keyword_start = p;
885
+ break;
886
+ case 17:
887
+ /* line 83 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
888
+
889
+ p = p - 1;
890
+ current_row = [];
891
+ this.current_line = this.line_number;
892
+ break;
893
+ case 18:
894
+ /* line 89 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
895
+
896
+ this.content_start = p;
897
+ break;
898
+ case 19:
899
+ /* line 93 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
900
+
901
+ var con = this.bytesToString(data.slice(this.content_start, p)).trim();
902
+ current_row.push(con.replace(/\\\|/, "|").replace(/\\n/, "\n").replace(/\\\\/, "\\"));
903
+ break;
904
+ case 20:
905
+ /* line 98 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
906
+
907
+ this.emit('row', current_row, this.current_line);
908
+ break;
909
+ case 21:
910
+ /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
911
+
912
+ console.log('TODO: end_feature');
913
+ break;
914
+ /* line 915 "js/lib/gherkin/lexer/i18n/sv.js" */
915
+ } /* action switch */
916
+ }
917
+ }
918
+ if (_trigger_goto) {
919
+ continue;
920
+ }
921
+ }
922
+ if (_goto_level <= _again) {
923
+ if ( this.cs == 0) {
924
+ _goto_level = _out;
925
+ continue;
926
+ }
927
+ p += 1;
928
+ if (p != pe) {
929
+ _goto_level = _resume;
930
+ continue;
931
+ }
932
+ }
933
+ if (_goto_level <= _test_eof) {
934
+ if (p == eof) {
935
+ __acts = _lexer_eof_actions[ this.cs];
936
+ __nacts = _lexer_actions[__acts];
937
+ __acts += 1;
938
+ while (__nacts > 0) {
939
+ __nacts -= 1;
940
+ __acts += 1;
941
+ switch (_lexer_actions[__acts - 1]) {
942
+ case 21:
943
+ /* line 102 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
944
+
945
+ console.log('TODO: end_feature');
946
+ break;
947
+ /* line 948 "js/lib/gherkin/lexer/i18n/sv.js" */
948
+ } /* eof action switch */
949
+ }
950
+ if (_trigger_goto) {
951
+ continue;
952
+ }
953
+ }
954
+ }
955
+ if (_goto_level <= _out) {
956
+ break;
957
+ }
958
+ }
959
+ }
960
+
961
+ /* line 158 "/Users/ahellesoy/scm/gherkin/tasks/../ragel/i18n/sv.js.rl" */
962
+ };
963
+
964
+ Lexer.prototype.bytesToString = function(bytes) {
965
+ if(typeof bytes.write == 'function') {
966
+ // Node.js
967
+ return bytes.toString('utf-8');
968
+ } else {
969
+ var result = "";
970
+ for(var b in bytes) {
971
+ result += String.fromCharCode(bytes[b]);
972
+ }
973
+ return result;
974
+ }
975
+ }
976
+
977
+ Lexer.prototype.unindent = function(startcol, text) {
978
+ startcol = startcol || 0;
979
+ return text.replace(new RegExp('^[\t ]{0,' + startcol + '}', 'gm'), '');
980
+ };
981
+
982
+ Lexer.prototype.store_keyword_content = function(event, data, p, eof) {
983
+ var end_point = (!this.next_keyword_start || (p == eof)) ? p : this.next_keyword_start;
984
+ var content = this.unindent(this.start_col + 2, this.bytesToString(data.slice(this.content_start, end_point))).trimRight();
985
+ var content_lines = content.split("\n")
986
+ var name = content_lines.shift() || "";
987
+ name = name.trim();
988
+ var description = content_lines.join("\n");
989
+ this.emit(event, this.keyword, name, description, this.current_line);
990
+ var nks = this.next_keyword_start;
991
+ this.next_keyword_start = null;
992
+ return nks ? nks - 1 : p;
993
+ };
994
+
995
+ exports.Lexer = Lexer;
996
+
997
+ })();