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; } }