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