small changes

This commit is contained in:
2024-08-03 11:42:42 +02:00
parent 5b08de7d16
commit 010225d8d6
5 changed files with 76 additions and 8 deletions
+5 -1
View File
@@ -8,6 +8,7 @@ mod utils;
use clap::{App, Arg};
use compiler::{compile_rust, transpile_file};
use utils::match_code;
fn main() {
let matches = App::new("Wyst")
@@ -64,7 +65,10 @@ fn main() {
}
}
} else if matches.is_present("stdio") {
println!("stdio mode!");
println!(
"{:?}",
match_code("void testme(int x) {}\ntest".to_string(), 1, 3).unwrap()
);
} else if matches.is_present("hex") {
let ident = matches.value_of("hex").unwrap().to_string();
println!("_0x{}", hex::encode(ident));