Skip to content

Commit

Permalink
make usable
Browse files Browse the repository at this point in the history
  • Loading branch information
Arav K. committed Nov 19, 2023
1 parent 2f1ab7c commit 95d45b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
3 changes: 3 additions & 0 deletions examples/utf8.solo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn utf8_encode(cps: []u64) -> []u64 {
(cps & ~32) + 31 >? (cps % 2 == 0)
}
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 95d45b7

Please sign in to comment.