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