blob: b8829a765d735f8ea9fda5c51d6b7c8f768aa443 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import "cffc.hff";
import "common.hff";
extern fn main(argc int, argv **u8) int {
assert(argc > 1, "args?");
let triple = host_target_triple;
let targ = triple2targ(triple);
if targ == #null {
fprintf(stderr, "error: unsupported target triple `%s'\n", triple);
return 1;
}
targ_ini(targ);
g_targ.triple = triple;
let p = Parser {};
parser_init(&p, argv[1]);
llvm_init(stdout);
let decls = parse(&p);
defer free(decls.#ptr);
if p.error { return 1; }
}
|