wip canonical builtins in modules

This commit is contained in:
Richard Feldman 2020-04-30 20:31:36 -04:00
parent dd3dc45b7a
commit a1750567ff
4 changed files with 63 additions and 26 deletions

View file

@ -307,12 +307,15 @@ fn gen(
let loc_expr = main_expr.unwrap_or_else(|| {
panic!("TODO gracefully handle the case where `main` was declared but not exposed")
});
let mut subs = loaded.solved.into_inner();
let content = match main_var {
Some(var) => subs.get_without_compacting(var).content,
None => todo!("TODO gracefully handle the case where `main` was declared but not exposed"),
};
todo!("step 1. mono-module, step 2. actually have main here use the loaded builtin modules!");
// Generate the binary
let context = Context::create();