1 #include "nit.common.h"
2 val
* NEW_location__SourceFile(const struct type
* type
);
3 extern const struct type type_location__SourceFile
;
4 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
5 extern const int COLOR_location__SourceFile__from_string
;
6 void CHECK_NEW_location__SourceFile(val
*);
7 val
* NEW_lexer__Lexer(const struct type
* type
);
8 extern const struct type type_lexer__Lexer
;
9 extern const int COLOR_lexer__Lexer__init
;
10 void CHECK_NEW_lexer__Lexer(val
*);
11 val
* NEW_parser__Parser(const struct type
* type
);
12 extern const struct type type_parser__Parser
;
13 extern const int COLOR_parser__Parser__init
;
14 void CHECK_NEW_parser__Parser(val
*);
15 extern const int COLOR_parser__Parser__parse
;
16 extern const int COLOR_parser_nodes__Start__n_eof
;
17 extern const struct type type_parser_nodes__AError
;
18 extern const int COLOR_lexer__AError__message
;
19 val
* NEW_array__Array(const struct type
* type
);
20 extern const struct type type_array__Arraykernel__Object
;
21 val
* NEW_array__NativeArray(int length
, const struct type
* type
);
22 extern const struct type type_array__NativeArraykernel__Object
;
23 extern const int COLOR_array__Array__with_native
;
24 void CHECK_NEW_array__Array(val
*);
25 extern const int COLOR_string__Object__to_s
;
26 extern const int COLOR_toolcontext__ToolContext__fatal_error
;
27 extern const int COLOR_parser_nodes__Start__n_base
;
28 val
* parser_util__ToolContext__parse_module(val
* self
, val
* p0
);
29 extern const int COLOR_parser_util__ToolContext__parse_module
;
30 extern const int COLOR_parser_nodes__AModule__n_classdefs
;
31 extern const int COLOR_abstract_collection__Collection__length
;
32 extern const int COLOR_abstract_collection__Collection__first
;
33 val
* parser_util__ToolContext__parse_classdef(val
* self
, val
* p0
);
34 extern const int COLOR_array__Array__with_capacity
;
35 extern const int COLOR_abstract_collection__SimpleCollection__add
;
36 extern const int COLOR_parser_util__ToolContext__parse_classdef
;
37 extern const int COLOR_parser_nodes__AClassdef__n_propdefs
;
38 val
* parser_util__ToolContext__parse_propdef(val
* self
, val
* p0
);
39 extern const struct type type_parser_nodes__AMainMethPropdef
;
40 extern const int COLOR_parser_nodes__AConcreteMethPropdef__n_block
;
41 extern const struct type type_parser_nodes__ABlockExpr
;
42 extern const int COLOR_parser_nodes__ABlockExpr__n_expr
;
43 extern const struct type type_parser_nodes__ADoExpr
;
44 extern const int COLOR_parser_nodes__ADoExpr__n_block
;
45 val
* parser_util__ToolContext__parse_stmts(val
* self
, val
* p0
);
46 extern const struct type type_parser_nodes__AVardeclExpr
;
47 extern const int COLOR_parser_nodes__AVardeclExpr__n_expr
;
48 val
* parser_util__ToolContext__parse_expr(val
* self
, val
* p0
);
49 val
* NEW_parser_util__InjectedLexer(const struct type
* type
);
50 extern const struct type type_parser_util__InjectedLexer
;
51 void CHECK_NEW_parser_util__InjectedLexer(val
*);
52 extern const int COLOR_parser_util__InjectedLexer__injected_before
;
53 val
* NEW_parser_nodes__TKwvar(const struct type
* type
);
54 extern const struct type type_parser_nodes__TKwvar
;
55 extern const int COLOR_parser_nodes__TKwvar__init
;
56 void CHECK_NEW_parser_nodes__TKwvar(val
*);
57 val
* NEW_parser_nodes__TId(const struct type
* type
);
58 extern const struct type type_parser_nodes__TId
;
59 extern const int COLOR_parser_nodes__TId__init
;
60 void CHECK_NEW_parser_nodes__TId(val
*);
61 val
* NEW_parser_nodes__TColumn(const struct type
* type
);
62 extern const struct type type_parser_nodes__TColumn
;
63 extern const int COLOR_parser_nodes__TColumn__init
;
64 void CHECK_NEW_parser_nodes__TColumn(val
*);
65 val
* NEW_parser_nodes__TClassid(const struct type
* type
);
66 extern const struct type type_parser_nodes__TClassid
;
67 extern const int COLOR_parser_nodes__TClassid__init
;
68 void CHECK_NEW_parser_nodes__TClassid(val
*);
69 val
* NEW_parser_nodes__TObra(const struct type
* type
);
70 extern const struct type type_parser_nodes__TObra
;
71 extern const int COLOR_parser_nodes__TObra__init
;
72 void CHECK_NEW_parser_nodes__TObra(val
*);
73 extern const int COLOR_parser_util__InjectedLexer__injected_after
;
74 val
* NEW_parser_nodes__TCbra(const struct type
* type
);
75 extern const struct type type_parser_nodes__TCbra
;
76 extern const int COLOR_parser_nodes__TCbra__init
;
77 void CHECK_NEW_parser_nodes__TCbra(val
*);
78 extern const int COLOR_parser_nodes__AVardeclExpr__n_type
;
79 extern const int COLOR_parser_nodes__AType__n_types
;
80 extern const int COLOR_lexer__Lexer__next
;
81 extern const struct type type_parser_nodes__EOF
;
82 val
* NEW_parser_nodes__TAssign(const struct type
* type
);
83 extern const struct type type_parser_nodes__TAssign
;
84 extern const int COLOR_parser_nodes__TAssign__init
;
85 void CHECK_NEW_parser_nodes__TAssign(val
*);
86 val
* NEW_parser_nodes__TOpar(const struct type
* type
);
87 extern const struct type type_parser_nodes__TOpar
;
88 extern const int COLOR_parser_nodes__TOpar__init
;
89 void CHECK_NEW_parser_nodes__TOpar(val
*);
90 val
* NEW_parser_nodes__TCpar(const struct type
* type
);
91 extern const struct type type_parser_nodes__TCpar
;
92 extern const int COLOR_parser_nodes__TCpar__init
;
93 void CHECK_NEW_parser_nodes__TCpar(val
*);
94 extern const struct type type_parser_nodes__AParExpr
;
95 extern const int COLOR_parser_nodes__AProxyExpr__n_expr
;
96 extern const int COLOR_parser_nodes__ANode__location
;
97 extern const int COLOR_kernel__Comparable___62d
;
98 val
* NEW_parser_nodes__TKwdo(const struct type
* type
);
99 extern const struct type type_parser_nodes__TKwdo
;
100 extern const int COLOR_parser_nodes__TKwdo__init
;
101 void CHECK_NEW_parser_nodes__TKwdo(val
*);
102 val
* NEW_parser_nodes__TKwend(const struct type
* type
);
103 extern const struct type type_parser_nodes__TKwend
;
104 extern const int COLOR_parser_nodes__TKwend__init
;
105 void CHECK_NEW_parser_nodes__TKwend(val
*);
106 val
* parser_util__ToolContext__parse_something(val
* self
, val
* p0
);
107 extern const int COLOR_parser_util__InjectedLexer___64dinjected_before
;
108 val
* parser_util__InjectedLexer__injected_before(val
* self
);
109 void parser_util__InjectedLexer__injected_before_61d(val
* self
, val
* p0
);
110 extern const int COLOR_parser_util__InjectedLexer___64dinjected_after
;
111 val
* parser_util__InjectedLexer__injected_after(val
* self
);
112 void parser_util__InjectedLexer__injected_after_61d(val
* self
, val
* p0
);
113 extern const int COLOR_parser_util__InjectedLexer___64dis_finished
;
114 short int parser_util__InjectedLexer__is_finished(val
* self
);
115 void parser_util__InjectedLexer__is_finished_61d(val
* self
, short int p0
);
116 extern const int COLOR_abstract_collection__Collection__is_empty
;
117 extern const int COLOR_abstract_collection__Sequence__shift
;
118 extern const int COLOR_parser_nodes__ANode___location
;
119 val
* NEW_location__Location(const struct type
* type
);
120 extern const struct type type_location__Location
;
121 extern const int COLOR_lexer__Lexer__file
;
122 extern const int COLOR_location__Location__init
;
123 void CHECK_NEW_location__Location(val
*);
124 extern const int COLOR_parser_util__InjectedLexer__is_finished
;
125 extern const int COLOR_parser_util__InjectedLexer__get_token
;
126 extern const int COLOR_abstract_collection__Sequence__push
;
127 extern const int COLOR_parser_util__InjectedLexer__is_finished_61d
;
128 val
* parser_util__InjectedLexer__get_token(val
* self
);
129 val
* NEW_parser_util__CollectTokensByTextVisitor(const struct type
* type
);
130 extern const struct type type_parser_util__CollectTokensByTextVisitor
;
131 extern const int COLOR_parser_util__CollectTokensByTextVisitor__init
;
132 void CHECK_NEW_parser_util__CollectTokensByTextVisitor(val
*);
133 extern const int COLOR_parser_nodes__Visitor__enter_visit
;
134 extern const int COLOR_parser_util__CollectTokensByTextVisitor__result
;
135 val
* parser_util__ANode__collect_tokens_by_text(val
* self
, val
* p0
);
136 val
* NEW_parser_util__CollectAnnotationsByNameVisitor(const struct type
* type
);
137 extern const struct type type_parser_util__CollectAnnotationsByNameVisitor
;
138 extern const int COLOR_parser_util__CollectAnnotationsByNameVisitor__init
;
139 void CHECK_NEW_parser_util__CollectAnnotationsByNameVisitor(val
*);
140 extern const int COLOR_parser_util__CollectAnnotationsByNameVisitor__result
;
141 val
* parser_util__ANode__collect_annotations_by_name(val
* self
, val
* p0
);
142 extern const int COLOR_parser_util__CollectTokensByTextVisitor___64dtext
;
143 val
* parser_util__CollectTokensByTextVisitor__text(val
* self
);
144 void parser_util__CollectTokensByTextVisitor__text_61d(val
* self
, val
* p0
);
145 extern const int COLOR_parser_nodes__Visitor__init
;
146 extern const int COLOR_parser_util__CollectTokensByTextVisitor__text_61d
;
147 void parser_util__CollectTokensByTextVisitor__init(val
* self
, val
* p0
);
148 extern const int COLOR_parser_util__CollectTokensByTextVisitor___64dresult
;
149 val
* parser_util__CollectTokensByTextVisitor__result(val
* self
);
150 void parser_util__CollectTokensByTextVisitor__result_61d(val
* self
, val
* p0
);
151 extern const int COLOR_parser_nodes__ANode__visit_all
;
152 extern const struct type type_parser_nodes__Token
;
153 extern const int COLOR_parser_nodes__Token__text
;
154 extern const int COLOR_parser_util__CollectTokensByTextVisitor__text
;
155 extern const int COLOR_kernel__Object___61d_61d
;
156 void parser_util__CollectTokensByTextVisitor__visit(val
* self
, val
* p0
);
157 extern const int COLOR_parser_util__CollectAnnotationsByNameVisitor___64dname
;
158 val
* parser_util__CollectAnnotationsByNameVisitor__name(val
* self
);
159 void parser_util__CollectAnnotationsByNameVisitor__name_61d(val
* self
, val
* p0
);
160 extern const int COLOR_parser_util__CollectAnnotationsByNameVisitor__name_61d
;
161 void parser_util__CollectAnnotationsByNameVisitor__init(val
* self
, val
* p0
);
162 extern const int COLOR_parser_util__CollectAnnotationsByNameVisitor___64dresult
;
163 val
* parser_util__CollectAnnotationsByNameVisitor__result(val
* self
);
164 void parser_util__CollectAnnotationsByNameVisitor__result_61d(val
* self
, val
* p0
);
165 extern const struct type type_parser_nodes__AAnnotation
;
166 extern const int COLOR_parser_nodes__AAnnotation__n_atid
;
167 extern const int COLOR_parser_nodes__AAtid__n_id
;
168 extern const int COLOR_parser_util__CollectAnnotationsByNameVisitor__name
;
169 void parser_util__CollectAnnotationsByNameVisitor__visit(val
* self
, val
* p0
);