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