1 #include "nit.common.h"
2 #define COLOR_nitc__loader__ToolContext___opt_path 3
3 extern const char FILE_nitc__loader
[];
4 #define COLOR_nitc__loader__ToolContext___opt_only_metamodel 4
5 #define COLOR_nitc__loader__ToolContext___opt_only_parse 5
6 #define COLOR_nitc__loader___ToolContext___core__kernel__Object__init 153
7 #define COLOR_nitc__toolcontext__ToolContext___option_context 15
8 extern const char FILE_nitc__toolcontext
[];
9 val
* NEW_core__Array(const struct type
* type
);
10 extern const struct type type_core__Array__opts__Option
;
11 val
* NEW_core__NativeArray(int length
, const struct type
* type
);
12 extern const struct type type_core__NativeArray__opts__Option
;
13 #define COLOR_core__array__Array__with_native 32
14 void opts___opts__OptionContext___add_option(val
* self
, val
* p0
);
15 #define COLOR_nitc__loader___ModelBuilder___core__kernel__Object__init 86
16 #define COLOR_nitc__loader__ModelBuilder___paths 3
17 #define COLOR_nitc__modelbuilder_base__ModelBuilder___toolcontext 13
18 extern const char FILE_nitc__modelbuilder_base
[];
19 #define COLOR_opts__Option___value 6
20 void core___core__Sequence___append(val
* self
, val
* p0
);
21 val
* core__flat___CString___to_s_unsafe(char* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
22 val
* core__environ___String___environ(val
* self
);
23 #define COLOR_core__abstract_text__Text__is_empty 43
24 val
* core__string_search___Text___split_with(val
* self
, val
* p0
);
25 #define COLOR_nitc__toolcontext__ToolContext___nit_dir 35
26 #define COLOR_core__kernel__Object___61d_61d 4
27 val
* core__file___String____47d(val
* self
, val
* p0
);
28 short int core__file___Text___file_exists(val
* self
);
29 void core___core__Array___core__abstract_collection__SimpleCollection__add(val
* self
, val
* p0
);
30 long core__time___Sys_get_time___impl( struct nitni_instance
* self
);
31 void nitc___nitc__ToolContext___info(val
* self
, val
* p0
, long p1
);
32 val
* NEW_core__ArraySet(const struct type
* type
);
33 extern const struct type type_core__ArraySet__nitc__MModule
;
34 void core___core__ArraySet___core__kernel__Object__init(val
* self
);
35 #define COLOR_core__abstract_collection__Collection__iterator 24
36 #define COLOR_core__abstract_collection__Iterator__is_ok 12
37 #define COLOR_core__abstract_collection__Iterator__item 13
38 val
* nitc__loader___ModelBuilder___load_module(val
* self
, val
* p0
);
39 #define COLOR_nitc__loader__AModule___mmodule 5
40 void core___core__ArraySet___core__abstract_collection__SimpleCollection__add(val
* self
, val
* p0
);
41 #define COLOR_core__abstract_collection__Iterator__next 14
42 #define COLOR_core__abstract_collection__Iterator__finish 15
43 extern const struct type type_core__NativeArray__core__String
;
44 extern const struct type type_core__Int
;
45 extern const char FILE_core__kernel
[];
46 val
* core__flat___Int___core__abstract_text__Object__to_s(long self
);
47 #define COLOR_core__abstract_text__NativeArray__native_to_s 12
48 short int nitc___nitc__ToolContext___check_errors(val
* self
);
49 void nitc___nitc__ToolContext___quit(val
* self
);
50 val
* core__array___Collection___to_a(val
* self
);
51 #define COLOR_nitc__mpackage__MGroup___mpackage 11
52 extern const char FILE_nitc__mpackage
[];
53 #define COLOR_nitc__mpackage__MPackage___root 14
54 void nitc__loader___ModelBuilder___scan_group(val
* self
, val
* p0
);
55 val
* nitc__loader___MGroup___mmodules_by_name(val
* self
, val
* p0
);
56 short int core___core__Collection___not_empty(val
* self
);
57 val
* core___core__SequenceRead___Collection__first(val
* self
);
58 val
* nitc___nitc__MGroup___filepath(val
* self
);
59 val
* core__file___String___join_path(val
* self
, val
* p0
);
60 val
* core__file___String___simplify_path(val
* self
);
61 short int core___core__AbstractArrayRead___core__abstract_collection__Collection__has(val
* self
, val
* p0
);
62 #define COLOR_nitc__parser_nodes__ANode__hot_location 16
63 val
* nitc__loader___ModelBuilder___search_module_in_paths(val
* self
, val
* p0
, val
* p1
, val
* p2
);
64 #define COLOR_nitc__mpackage__MGroup___name 9
65 val
* core__abstract_text___Collection___join(val
* self
, val
* p0
, val
* p1
);
66 void nitc___nitc__ModelBuilder___error(val
* self
, val
* p0
, val
* p1
);
67 val
* nitc__loader___ModelBuilder___search_mmodule_by_name(val
* self
, val
* p0
, val
* p1
, val
* p2
);
68 val
* nitc__loader___MModule___load(val
* self
, val
* p0
);
69 val
* nitc__loader___ModelBuilder___identify_module(val
* self
, val
* p0
);
70 val
* nitc__loader___ModelBuilder___identify_group(val
* self
, val
* p0
);
71 void core___core__SimpleCollection___add_all(val
* self
, val
* p0
);
72 short int core___core__ArraySet___core__abstract_collection__Collection__is_empty(val
* self
);
73 long core___core__ArraySet___core__abstract_collection__Collection__length(val
* self
);
74 extern const struct type type_core__Array__core__String
;
75 void core___core__Array___with_capacity(val
* self
, long p0
);
76 val
* core___core__ArraySet___core__abstract_collection__Collection__iterator(val
* self
);
77 val
* nitc___nitc__MModule___filepath(val
* self
);
78 val
* nitc___nitc__MModule___nitc__model_base__MEntity__full_name(val
* self
);
79 void core___core__AbstractArray___core__abstract_collection__Sequence__push(val
* self
, val
* p0
);
80 val
* nitc___nitc__ToolContext___error(val
* self
, val
* p0
, val
* p1
);
81 val
* core___core__ArraySet___core__abstract_collection__Collection__first(val
* self
);
82 extern const struct type type_core__ArraySet__nitc__MGroup
;
83 #define COLOR_nitc__loader__ModelBuilder___identified_modules_by_path 4
84 #define COLOR_nitc__loader__ModelBuilder___identified_modules 5
85 #define COLOR_nitc__loader__ModelBuilder___parsed_modules 6
86 #define COLOR_nitc__loader__ModelBuilder___last_loader_error 7
87 short int core___core__Text___has_suffix(val
* self
, val
* p0
);
88 #define COLOR_core__abstract_text__Text__chars 27
89 #define COLOR_core__abstract_collection__Collection__has 27
90 #define COLOR_core__abstract_text__Text___43d 39
91 val
* core__string_search___Text___split(val
* self
, val
* p0
);
92 val
* core___core__SequenceRead___last(val
* self
);
93 val
* core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(val
* self
);
94 #define COLOR_core__array__AbstractArrayRead___length 0
95 void core___core__Array___core__kernel__Object__init(val
* self
);
96 val
* NEW_more_collections__BestDistance(const struct type
* type
);
97 extern const struct type type_more_collections__BestDistance__core__String
;
98 #define COLOR_core__abstract_text__Text__length 25
99 #define COLOR_more_collections__BestDistance__best_distance_61d 12
100 #define COLOR_core__kernel__Object__init 0
101 #define COLOR_nitc__mpackage__MPackage___mgroups 15
102 val
* poset___poset__POSet___core__abstract_collection__Collection__iterator(val
* self
);
103 #define COLOR_nitc__mmodule__MGroup___mmodules 7
104 extern const char FILE_nitc__mmodule
[];
105 long core___core__Text___levenshtein_distance(val
* self
, val
* p0
);
106 short int more_collections___more_collections__BestDistance___update(val
* self
, long p0
, val
* p1
);
107 #define COLOR_more_collections__BestDistance___best_items 1
108 extern const char FILE_more_collections
[];
109 short int core___core__HashMap___core__abstract_collection__MapRead__has_key(val
* self
, val
* p0
);
110 val
* core___core__HashMap___core__abstract_collection__MapRead___91d_93d(val
* self
, val
* p0
);
111 val
* nitc__loader___ModelBuilder___module_absolute_path(val
* self
, val
* p0
);
112 #define COLOR_core__file__String__basename 99
113 short int nitc__loader___MPackage___accept(val
* self
, val
* p0
);
114 #define COLOR_core__abstract_text__Object__to_s 3
115 val
* NEW_nitc__Location(const struct type
* type
);
116 extern const struct type type_nitc__Location
;
117 void nitc___nitc__Location___opaque_file(val
* self
, val
* p0
);
118 val
* NEW_nitc__MPackage(const struct type
* type
);
119 extern const struct type type_nitc__MPackage
;
120 #define COLOR_nitc__modelbuilder_base__ModelBuilder___model 12
121 #define COLOR_nitc__mpackage__MPackage__name_61d 30
122 #define COLOR_nitc__mpackage__MPackage__model_61d 31
123 #define COLOR_nitc__mpackage__MPackage__location_61d 32
124 val
* NEW_nitc__MGroup(const struct type
* type
);
125 extern const struct type type_nitc__MGroup
;
126 #define COLOR_nitc__mpackage__MGroup__name_61d 31
127 #define COLOR_nitc__mpackage__MGroup__location_61d 32
128 #define COLOR_nitc__mpackage__MGroup__mpackage_61d 33
129 #define COLOR_nitc__mpackage__MGroup__parent_61d 34
130 val
* core__file___String___dirname(val
* self
);
131 val
* NEW_ini__ConfigTree(const struct type
* type
);
132 extern const struct type type_ini__ConfigTree
;
133 #define COLOR_ini__ConfigTree__ini_file_61d 13
134 #define COLOR_nitc__loader__MPackage___ini 6
135 val
* NEW_nitc__MModule(const struct type
* type
);
136 extern const struct type type_nitc__MModule
;
137 #define COLOR_nitc__mmodule__MModule__model_61d 30
138 #define COLOR_nitc__mmodule__MModule__mgroup_61d 31
139 #define COLOR_nitc__mmodule__MModule__name_61d 32
140 #define COLOR_nitc__mmodule__MModule__location_61d 33
141 void core___core__HashMap___core__abstract_collection__Map___91d_93d_61d(val
* self
, val
* p0
, val
* p1
);
142 #define COLOR_nitc__loader__ModelBuilder___mgroups 8
143 val
* core__file___String___file_stat(val
* self
);
144 short int core___core__FileStat___is_dir(val
* self
);
145 val
* ini___ini__ConfigTree____91d_93d(val
* self
, val
* p0
);
146 val
* nitc___nitc__MGroup___nitc__model_base__MEntity__full_name(val
* self
);
147 val
* nitc__loader___ModelBuilder___load_markdown(val
* self
, val
* p0
);
148 #define COLOR_nitc__mdoc__MEntity___mdoc 2
149 #define COLOR_nitc__mdoc__MDoc___original_mentity 1
150 val
* NEW_core__FileReader(const struct type
* type
);
151 extern const struct type type_core__FileReader
;
152 void core___core__FileReader___open(val
* self
, val
* p0
);
153 extern const struct type type_core__Array__core__Int
;
154 short int core___core__BufferedReader___Reader__eof(val
* self
);
155 val
* core___core__Reader___read_line(val
* self
);
156 void core___core__FileReader___core__stream__Stream__close(val
* self
);
157 val
* NEW_nitc__SourceFile(const struct type
* type
);
158 extern const struct type type_nitc__SourceFile
;
159 void nitc___nitc__SourceFile___from_string(val
* self
, val
* p0
, val
* p1
);
160 #define COLOR_nitc__location__SourceFile___line_starts 4
161 extern const char FILE_nitc__location
[];
162 void core___core__Array___core__abstract_collection__SimpleCollection__add_all(val
* self
, val
* p0
);
163 val
* NEW_nitc__MDoc(const struct type
* type
);
164 extern const struct type type_nitc__MDoc
;
165 #define COLOR_nitc__location__Location__file_61d 19
166 #define COLOR_nitc__location__Location__line_start_61d 20
167 #define COLOR_nitc__location__Location__line_end_61d 21
168 #define COLOR_nitc__location__Location__column_start_61d 22
169 #define COLOR_nitc__location__Location__column_end_61d 23
170 #define COLOR_nitc__mdoc__MDoc__location_61d 13
171 #define COLOR_nitc__mdoc__MDoc___content 0
172 extern const char FILE_nitc__mdoc
[];
173 #define COLOR_nitc__loader__MGroup___scanned 6
174 val
* core__file___String___files(val
* self
);
175 val
* core__abstract_text___Sys___alpha_comparator(val
* self
);
176 void core___core__Comparator___sort(val
* self
, val
* p0
);
177 val
* core__file___String___realpath(val
* self
);
178 val
* NEW_nitc__Lexer(const struct type
* type
);
179 extern const struct type type_nitc__Lexer
;
180 #define COLOR_nitc__location__SourceFile__filename_61d 19
181 #define COLOR_nitc__location__SourceFile__stream_61d 20
182 #define COLOR_nitc__lexer_work__Lexer__file_61d 16
183 val
* NEW_nitc__Parser(const struct type
* type
);
184 extern const struct type type_nitc__Parser
;
185 #define COLOR_nitc__parser_work__Parser__lexer_61d 16
186 val
* nitc___nitc__Parser___parse(val
* self
);
187 #define COLOR_nitc__parser_nodes__Start___n_base 3
188 #define COLOR_nitc__parser_nodes__Start___n_eof 4
189 extern const char FILE_nitc__parser_nodes
[];
190 extern const struct type type_nitc__AError
;
191 #define COLOR_nitc__lexer_work__AError___message 11
192 extern const char FILE_nitc__lexer_work
[];
193 #define COLOR_nitc__parser_nodes__AModule___n_moduledecl 7
194 #define COLOR_nitc__parser_nodes__AModuledecl___n_name 4
195 #define COLOR_nitc__parser_nodes__AModuleName___n_id 5
196 val
* nitc__lexer_work___Token___text(val
* self
);
197 #define COLOR_nitc__mmodule__MModule___name 43
198 void nitc___nitc__ModelBuilder___warning(val
* self
, val
* p0
, val
* p1
, val
* p2
);
199 val
* nitc__mmodule___Model___get_mmodules_by_name(val
* self
, val
* p0
);
200 #define COLOR_nitc__loader__ModelBuilder___mmodule2nmodule 11
201 #define COLOR_nitc__mmodule__MModule___mgroup 42
202 #define COLOR_nitc__mmodule__MModule___location 44
203 #define COLOR_nitc__loader__ModelBuilder___nmodules 10
204 #define COLOR_nitc__parser_nodes__ANode___location 1
205 #define COLOR_nitc__location__Location___file 0
206 #define COLOR_nitc__loader__SourceFile___mmodule 0
207 #define COLOR_nitc__parser_nodes__ADefinition___n_doc 8
208 val
* nitc__modelbuilder_base___ADoc___to_mdoc(val
* self
);
209 val
* nitc___nitc__Prod___get_annotations(val
* self
, val
* p0
);
210 short int core___core__AbstractArrayRead___core__abstract_collection__Collection__is_empty(val
* self
);
211 #define COLOR_nitc__mmodule__MModule___is_test_suite 53
212 #define COLOR_nitc__mmodule__MModule___is_generated 54
213 #define COLOR_nitc__parser_nodes__AModuleName___n_quad 3
214 #define COLOR_nitc__parser_nodes__AModuleName___n_path 4
215 short int nitc___nitc__ANodes___core__abstract_collection__Collection__is_empty(val
* self
);
216 extern const struct type type_core__Array__nitc__MModule
;
217 short int nitc__loader___ModelBuilder___match_amodulename(val
* self
, val
* p0
, val
* p1
);
218 val
* nitc__loader___ModelBuilder___search_group_in_paths(val
* self
, val
* p0
, val
* p1
);
219 val
* nitc___nitc__ANodes___core__abstract_collection__SequenceRead__reverse_iterator(val
* self
);
220 val
* core___core__Iterator___iterator(val
* self
);
221 #define COLOR_nitc__mpackage__MGroup___parent 12
222 #define COLOR_nitc__loader__AModule___is_importation_done 6
223 #define COLOR_nitc__parser_nodes__AModule___n_imports 8
224 val
* nitc___nitc__ANodes___core__abstract_collection__Collection__iterator(val
* self
);
225 extern const struct type type_nitc__AStdImport
;
226 #define COLOR_nitc__parser_nodes__AStdImport___n_name 6
227 val
* nitc__loader___ModelBuilder___seach_module_by_amodule_name(val
* self
, val
* p0
, val
* p1
);
228 #define COLOR_nitc__model_base__MEntity___is_broken 0
229 #define COLOR_nitc__loader__AStdImport___mmodule 5
230 #define COLOR_nitc__parser_nodes__AImport___n_visibility 3
231 #define COLOR_nitc__modelbuilder_base__AVisibility__mvisibility 34
232 val
* nitc__model_base___core__Sys___protected_visibility(val
* self
);
233 #define COLOR_nitc__mmodule__MModule___in_importation 45
234 short int poset___poset__POSetElement____60d(val
* self
, val
* p0
);
235 void nitc___nitc__MModule___set_visibility_for(val
* self
, val
* p0
, val
* p1
);
236 val
* nitc__loader___ModelBuilder___get_mmodule_by_name(val
* self
, val
* p0
, val
* p1
, val
* p2
);
237 val
* nitc__model_base___core__Sys___public_visibility(val
* self
);
238 #define COLOR_nitc__parser_nodes__AAnnotation___n_args 16
239 val
* nitc__parser_work___AExpr___as_id(val
* self
);
240 #define COLOR_nitc__loader__ModelBuilder___conditional_importations 9
241 void nitc___nitc__MModule___set_imported_mmodules(val
* self
, val
* p0
);
242 void nitc__loader___ModelBuilder___apply_conditional_importations(val
* self
, val
* p0
);
243 val
* poset___poset__POSetElement___direct_greaters(val
* self
);
244 val
* poset___poset__POSetElement___greaters(val
* self
);
245 #define COLOR_core__abstract_collection__Collection__length 22
246 #define COLOR_core__abstract_collection__SequenceRead___91d_93d 34
247 long core___core__Int___Discrete__successor(long self
, long p0
);
248 #define COLOR_core__abstract_collection__Collection__first 29
249 val
* core___core__HashMap___core__abstract_collection__MapRead__get_or_null(val
* self
, val
* p0
);
250 val
* nitc__loader___ModelBuilder___load_module_ast(val
* self
, val
* p0
);
251 void nitc__loader___ModelBuilder___build_a_mmodule(val
* self
, val
* p0
, val
* p1
);
252 val
* nitc__loader___MModule___parse(val
* self
, val
* p0
);
253 void nitc__loader___ModelBuilder___build_module_importation(val
* self
, val
* p0
);
254 #define COLOR_nitc__loader__MPackage__lazy_32d_excludes 8
255 #define COLOR_nitc__loader__MPackage___excludes 7
256 val
* nitc__loader___MPackage___excludes(val
* self
);
257 val
* core__file___String___relpath(val
* self
, val
* p0
);
258 #define COLOR_nitc__mpackage__MGroup___in_nesting 13
259 val
* poset___poset__POSetElement___smallers(val
* self
);