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 151
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 27
14 void opts___opts__OptionContext___add_option(val
* self
, val
* p0
);
15 #define COLOR_nitc__loader___ModelBuilder___core__kernel__Object__init 81
16 #define COLOR_nitc__loader__ModelBuilder___paths 3
17 #define COLOR_nitc__modelbuilder_base__ModelBuilder___toolcontext 12
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___NativeString___to_s_full(char* self
, long p0
, long p1
);
22 val
* core__environ___String___environ(val
* self
);
23 #define COLOR_core__abstract_text__Text__is_empty 37
24 val
* core__string_search___Text___split_with(val
* self
, val
* p0
);
25 #define COLOR_nitc__toolcontext__ToolContext___nit_dir 34
26 val
* core__file___String____47d(val
* self
, val
* p0
);
27 short int core__file___String___file_exists(val
* self
);
28 void core___core__Array___core__abstract_collection__SimpleCollection__add(val
* self
, val
* p0
);
29 long time___Sys_get_time___impl( struct nitni_instance
* self
);
30 void nitc___nitc__ToolContext___info(val
* self
, val
* p0
, long p1
);
31 val
* NEW_core__ArraySet(const struct type
* type
);
32 extern const struct type type_core__ArraySet__nitc__MModule
;
33 void core___core__ArraySet___core__kernel__Object__init(val
* self
);
34 #define COLOR_core__abstract_collection__Collection__iterator 21
35 #define COLOR_core__abstract_collection__Iterator__is_ok 12
36 #define COLOR_core__abstract_collection__Iterator__item 13
37 val
* nitc__loader___ModelBuilder___load_module(val
* self
, val
* p0
);
38 #define COLOR_nitc__loader__AModule___mmodule 7
39 void core___core__ArraySet___core__abstract_collection__SimpleCollection__add(val
* self
, val
* p0
);
40 #define COLOR_core__abstract_collection__Iterator__next 14
41 #define COLOR_core__abstract_collection__Iterator__finish 15
42 extern const struct type type_core__NativeArray__core__String
;
43 extern const struct type type_core__Int
;
44 extern const char FILE_core__kernel
[];
45 val
* core__flat___Int___core__abstract_text__Object__to_s(long self
);
46 #define COLOR_core__abstract_text__NativeArray__native_to_s 12
47 short int nitc___nitc__ToolContext___check_errors(val
* self
);
48 void nitc___nitc__ToolContext___quit(val
* self
);
49 val
* core__array___Collection___to_a(val
* self
);
50 #define COLOR_core__kernel__Object___61d_61d 4
51 #define COLOR_nitc__mpackage__MGroup___mpackage 10
52 extern const char FILE_nitc__mpackage
[];
53 #define COLOR_nitc__mpackage__MPackage___root 11
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 #define COLOR_nitc__mpackage__MGroup___filepath 13
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
);
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 #define COLOR_nitc__mmodule__MModule___filepath 43
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 short int core___core__Text___has_suffix(val
* self
, val
* p0
);
87 #define COLOR_core__abstract_text__Text__chars 23
88 #define COLOR_core__abstract_collection__Collection__has 23
89 #define COLOR_core__abstract_text__String___43d 76
90 short int core___core__HashMap___core__abstract_collection__MapRead__has_key(val
* self
, val
* p0
);
91 val
* core___core__HashMap___core__abstract_collection__MapRead___91d_93d(val
* self
, val
* p0
);
92 val
* nitc__loader___ModelBuilder___module_absolute_path(val
* self
, val
* p0
);
93 #define COLOR_core__file__String__basename 84
94 val
* NEW_nitc__MPackage(const struct type
* type
);
95 extern const struct type type_nitc__MPackage
;
96 #define COLOR_nitc__modelbuilder_base__ModelBuilder___model 11
97 #define COLOR_nitc__mpackage__MPackage__name_61d 25
98 #define COLOR_nitc__mpackage__MPackage__model_61d 26
99 #define COLOR_core__kernel__Object__init 0
100 val
* NEW_nitc__MGroup(const struct type
* type
);
101 extern const struct type type_nitc__MGroup
;
102 #define COLOR_nitc__mpackage__MGroup__name_61d 27
103 #define COLOR_nitc__mpackage__MGroup__mpackage_61d 28
104 #define COLOR_nitc__mpackage__MGroup__parent_61d 29
105 val
* core__file___String___dirname(val
* self
);
106 val
* NEW_ini__ConfigTree(const struct type
* type
);
107 extern const struct type type_ini__ConfigTree
;
108 #define COLOR_ini__ConfigTree__ini_file_61d 12
109 #define COLOR_nitc__loader__MPackage___ini 6
110 val
* NEW_nitc__SourceFile(const struct type
* type
);
111 extern const struct type type_nitc__SourceFile
;
112 void nitc___nitc__SourceFile___from_string(val
* self
, val
* p0
, val
* p1
);
113 val
* NEW_nitc__Location(const struct type
* type
);
114 extern const struct type type_nitc__Location
;
115 #define COLOR_nitc__location__Location__file_61d 18
116 #define COLOR_nitc__location__Location__line_start_61d 19
117 #define COLOR_nitc__location__Location__line_end_61d 20
118 #define COLOR_nitc__location__Location__column_start_61d 21
119 #define COLOR_nitc__location__Location__column_end_61d 22
120 val
* NEW_nitc__MModule(const struct type
* type
);
121 extern const struct type type_nitc__MModule
;
122 #define COLOR_nitc__mmodule__MModule__model_61d 29
123 #define COLOR_nitc__mmodule__MModule__mgroup_61d 30
124 #define COLOR_nitc__mmodule__MModule__name_61d 31
125 #define COLOR_nitc__mmodule__MModule__location_61d 32
126 void core___core__HashMap___core__abstract_collection__Map___91d_93d_61d(val
* self
, val
* p0
, val
* p1
);
127 #define COLOR_nitc__loader__ModelBuilder___mgroups 7
128 val
* core__file___String___file_stat(val
* self
);
129 val
* core___core__AbstractArrayRead___core__abstract_collection__Collection__iterator(val
* self
);
130 short int core___core__FileStat___is_dir(val
* self
);
131 val
* ini___ini__ConfigTree____91d_93d(val
* self
, val
* p0
);
132 #define COLOR_core__abstract_text__Object__to_s 3
133 val
* nitc___nitc__MGroup___nitc__model_base__MEntity__full_name(val
* self
);
134 val
* nitc__loader___ModelBuilder___load_markdown(val
* self
, val
* p0
);
135 #define COLOR_nitc__mdoc__MEntity___mdoc 2
136 #define COLOR_nitc__mdoc__MDoc___original_mentity 1
137 val
* NEW_core__FileReader(const struct type
* type
);
138 extern const struct type type_core__FileReader
;
139 void core___core__FileReader___open(val
* self
, val
* p0
);
140 void core___core__Array___core__kernel__Object__init(val
* self
);
141 extern const struct type type_core__Array__core__Int
;
142 short int core___core__BufferedReader___Reader__eof(val
* self
);
143 val
* core___core__Reader___read_line(val
* self
);
144 #define COLOR_core__abstract_text__Text__length 22
145 void core___core__FileReader___core__stream__Stream__close(val
* self
);
146 #define COLOR_nitc__location__SourceFile___line_starts 4
147 extern const char FILE_nitc__location
[];
148 void core___core__Array___core__abstract_collection__SimpleCollection__add_all(val
* self
, val
* p0
);
149 val
* NEW_nitc__MDoc(const struct type
* type
);
150 extern const struct type type_nitc__MDoc
;
151 #define COLOR_core__array__AbstractArrayRead___length 0
152 #define COLOR_nitc__mdoc__MDoc__location_61d 13
153 #define COLOR_nitc__mdoc__MDoc___content 0
154 extern const char FILE_nitc__mdoc
[];
155 #define COLOR_nitc__loader__MGroup___scanned 6
156 val
* core__file___String___files(val
* self
);
157 val
* core__abstract_text___Sys___alpha_comparator(val
* self
);
158 void core___core__Comparator___sort(val
* self
, val
* p0
);
159 val
* core__file___String___realpath(val
* self
);
160 val
* NEW_nitc__Lexer(const struct type
* type
);
161 extern const struct type type_nitc__Lexer
;
162 #define COLOR_nitc__location__SourceFile__filename_61d 17
163 #define COLOR_nitc__location__SourceFile__stream_61d 19
164 #define COLOR_nitc__lexer_work__Lexer__file_61d 16
165 val
* NEW_nitc__Parser(const struct type
* type
);
166 extern const struct type type_nitc__Parser
;
167 #define COLOR_nitc__parser_work__Parser__lexer_61d 16
168 val
* nitc___nitc__Parser___parse(val
* self
);
169 #define COLOR_nitc__parser_nodes__Start___n_base 5
170 #define COLOR_nitc__parser_nodes__Start___n_eof 6
171 extern const char FILE_nitc__parser_nodes
[];
172 extern const struct type type_nitc__AError
;
173 #define COLOR_nitc__lexer_work__AError___message 11
174 extern const char FILE_nitc__lexer_work
[];
175 #define COLOR_nitc__parser_nodes__AModule___n_moduledecl 9
176 #define COLOR_nitc__parser_nodes__AModuledecl___n_name 6
177 #define COLOR_nitc__parser_nodes__AModuleName___n_id 7
178 val
* nitc__lexer_work___Token___text(val
* self
);
179 #define COLOR_nitc__mmodule__MModule___name 44
180 extern const char FILE_nitc__mmodule
[];
181 val
* nitc__mmodule___Model___get_mmodules_by_name(val
* self
, val
* p0
);
182 #define COLOR_nitc__loader__ModelBuilder___mmodule2nmodule 10
183 #define COLOR_nitc__mmodule__MModule___mgroup 42
184 #define COLOR_nitc__mmodule__MModule___location 45
185 #define COLOR_nitc__loader__ModelBuilder___nmodules 9
186 #define COLOR_nitc__parser_nodes__ANode___location 1
187 #define COLOR_nitc__location__Location___file 0
188 #define COLOR_nitc__loader__SourceFile___mmodule 0
189 #define COLOR_nitc__parser_nodes__ADefinition___n_doc 11
190 val
* nitc__modelbuilder_base___ADoc___to_mdoc(val
* self
);
191 val
* nitc___nitc__Prod___get_annotations(val
* self
, val
* p0
);
192 short int core___core__AbstractArrayRead___core__abstract_collection__Collection__is_empty(val
* self
);
193 #define COLOR_nitc__mmodule__MModule___is_test_suite 54
194 #define COLOR_nitc__parser_nodes__AModuleName___n_quad 5
195 #define COLOR_nitc__parser_nodes__AModuleName___n_path 6
196 short int nitc___nitc__ANodes___core__abstract_collection__Collection__is_empty(val
* self
);
197 extern const struct type type_core__Array__nitc__MModule
;
198 short int nitc__loader___ModelBuilder___match_amodulename(val
* self
, val
* p0
, val
* p1
);
199 val
* nitc__loader___ModelBuilder___search_group_in_paths(val
* self
, val
* p0
, val
* p1
);
200 val
* nitc___nitc__ANodes___core__abstract_collection__SequenceRead__reverse_iterator(val
* self
);
201 val
* core___core__Iterator___iterator(val
* self
);
202 #define COLOR_nitc__mpackage__MGroup___parent 11
203 #define COLOR_nitc__loader__AModule___is_importation_done 8
204 #define COLOR_nitc__parser_nodes__AModule___n_imports 10
205 val
* nitc___nitc__ANodes___core__abstract_collection__Collection__iterator(val
* self
);
206 extern const struct type type_nitc__AStdImport
;
207 #define COLOR_nitc__parser_nodes__AStdImport___n_name 8
208 val
* nitc__loader___ModelBuilder___seach_module_by_amodule_name(val
* self
, val
* p0
, val
* p1
);
209 #define COLOR_nitc__model_base__MEntity___is_broken 0
210 #define COLOR_nitc__loader__AStdImport___mmodule 7
211 #define COLOR_nitc__parser_nodes__AImport___n_visibility 5
212 #define COLOR_nitc__modelbuilder_base__AVisibility__mvisibility 39
213 val
* nitc__model_base___core__Sys___protected_visibility(val
* self
);
214 #define COLOR_nitc__mmodule__MModule___in_importation 46
215 short int poset___poset__POSetElement____60d(val
* self
, val
* p0
);
216 void nitc___nitc__MModule___set_visibility_for(val
* self
, val
* p0
, val
* p1
);
217 val
* nitc__loader___ModelBuilder___get_mmodule_by_name(val
* self
, val
* p0
, val
* p1
, val
* p2
);
218 val
* nitc__model_base___core__Sys___public_visibility(val
* self
);
219 #define COLOR_nitc__parser_nodes__AAnnotation___n_args 15
220 val
* nitc__parser_work___AExpr___as_id(val
* self
);
221 #define COLOR_nitc__loader__ModelBuilder___conditional_importations 8
222 void nitc___nitc__MModule___set_imported_mmodules(val
* self
, val
* p0
);
223 void nitc__loader___ModelBuilder___apply_conditional_importations(val
* self
, val
* p0
);
224 val
* poset___poset__POSetElement___direct_greaters(val
* self
);
225 val
* poset___poset__POSetElement___greaters(val
* self
);
226 #define COLOR_core__abstract_collection__Collection__length 19
227 #define COLOR_core__abstract_collection__SequenceRead___91d_93d 29
228 long core___core__Int___Discrete__successor(long self
, long p0
);
229 #define COLOR_core__abstract_collection__Collection__first 24
230 val
* core___core__HashMap___core__abstract_collection__MapRead__get_or_null(val
* self
, val
* p0
);
231 val
* nitc__loader___ModelBuilder___load_module_ast(val
* self
, val
* p0
);
232 void nitc__loader___ModelBuilder___build_a_mmodule(val
* self
, val
* p0
, val
* p1
);
233 val
* nitc__loader___MModule___parse(val
* self
, val
* p0
);
234 void nitc__loader___ModelBuilder___build_module_importation(val
* self
, val
* p0
);
235 #define COLOR_nitc__mpackage__MGroup___in_nesting 12
236 val
* poset___poset__POSetElement___smallers(val
* self
);
237 #define COLOR_nitc__mmodule__MGroup___mmodules 7