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