feat: publish Dever core with project scaffolding and versioned AI skills
This commit is contained in:
1 parent
70fa73cdc2
commit
ac458ffa7f
960 files changed
+221319
-1163
No files matched your search
@@ -0,0 +1,17 @@
|
||||
use dever_core::{check, llvm::emit_kernel, source::SourceMap};
|
||||
|
||||
/// Native acceptance always starts with checked source, not hand-written IR.
|
||||
pub fn lower(source: &str) -> String {
|
||||
let mut sources = SourceMap::default();
|
||||
sources.add("main.dever", source);
|
||||
let program = check(&sources).unwrap_or_else(|errors| {
|
||||
panic!(
|
||||
"{}",
|
||||
errors
|
||||
.iter()
|
||||
.map(|error| error.render(&sources))
|
||||
.collect::<String>()
|
||||
)
|
||||
});
|
||||
emit_kernel(&program, &sources, "main.main").unwrap()
|
||||
}
|
||||
Reference in new issue
Block a user