diff --git a/Cargo.toml b/Cargo.toml index f3ef3c3..63adae3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,4 +18,4 @@ unionfind = "0.2.1" [dependencies.inkwell] git = "https://github.com/TheDan64/inkwell" branch = "master" -features = ["llvm16-0"] +features = ["llvm16-0-prefer-dynamic"] diff --git a/examples/utf8.solo b/examples/utf8.solo new file mode 100644 index 0000000..d9f6192 --- /dev/null +++ b/examples/utf8.solo @@ -0,0 +1,3 @@ +fn utf8_encode(cps: []u64) -> []u64 { + (cps & ~32) + 31 >? (cps % 2 == 0) +} diff --git a/src/main.rs b/src/main.rs index b566441..6d1655a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -74,6 +74,8 @@ fn cmd_compile<'a>( }, }; + println!("AST: {:#?}", r#mod); + for ast in r#mod.functions { // Type-check every function. let tck = match solo::tck::tck_fn(&ast) {