File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ let compile ~(lir : lir) ~(ctx : LL.llcontext) ~(mod_ : LL.llmodule) : unit =
282
282
in
283
283
let ret_val = compile_expr func_value ~scope ~irb in
284
284
ignore ret_val;
285
- failwith " TODO"
285
+ (* failwith "TODO" *)
286
286
in
287
287
288
288
let compile_func (f : func ) : unit =
@@ -295,8 +295,10 @@ let compile ~(lir : lir) ~(ctx : LL.llcontext) ~(mod_ : LL.llmodule) : unit =
295
295
()
296
296
in
297
297
298
- globals |> List. iter ~f: compile_global;
299
- functions |> List. iter ~f: compile_func;
298
+ (* globals |> List.iter ~f:compile_global; *)
299
+ (* functions |> List.iter ~f:compile_func; *)
300
+ ignore compile_global;
301
+ ignore compile_func;
300
302
301
303
let i8 = LL. i8_type ctx in
302
304
let i32 = LL. i32_type ctx in
Original file line number Diff line number Diff line change @@ -191,7 +191,10 @@ module Parse = MakeStage (struct
191
191
let {src; tokens} = token_src in
192
192
let {path; code} = src in
193
193
let lexbuf = Lexing. from_string code in
194
- let body = Parser. module_body parse_token lexbuf in
194
+ (* let body = Parser.module_body parse_token lexbuf in *)
195
+ ignore parse_token;
196
+ ignore lexbuf;
197
+ let body = {Ast. module_items = [] } in
195
198
let name = Filename. basename path in
196
199
let module_ = {Ast. module_name = name; Ast. module_body = body} in
197
200
let ast = {Ast. path; Ast. module_} in
@@ -241,8 +244,10 @@ module Lower = MakeStage (struct
241
244
Lir. (
242
245
let u64 = IntType {bits = 64 ; unsigned = true } in
243
246
let i64 = IntType {bits = 64 ; unsigned = false } in
247
+ ignore u64;
248
+ ignore i64;
244
249
{path = ast.path; globals = [] ; functions = [
245
- {
250
+ (* {
246
251
func_name = "gcd";
247
252
func_type = {
248
253
func_args = [|i64; i64|];
@@ -257,7 +262,7 @@ module Lower = MakeStage (struct
257
262
};
258
263
};
259
264
{
260
- func_name = " gdb '" ;
265
+ func_name = "gcd '";
261
266
func_type = {
262
267
func_args = [|u64; u64|];
263
268
func_return_type = u64;
@@ -269,7 +274,7 @@ module Lower = MakeStage (struct
269
274
value = Literal (Int 0);
270
275
};
271
276
};
272
- }
277
+ } *)
273
278
]})
274
279
;;
275
280
end )
You can’t perform that action at this time.
0 commit comments