This commit is contained in:
2026-04-21 11:20:20 +02:00
parent 1822ce7bfb
commit 508b180d63
2 changed files with 98 additions and 5 deletions
+3 -5
View File
@@ -1,3 +1,5 @@
pub mod compiler;
use std::fs;
use std::path::PathBuf;
use std::process;
@@ -18,7 +20,7 @@ fn main() {
eprintln!("error: expected a file path\n usage: mist build");
process::exit(1);
}
cmd_build();
compiler::build();
}
"check" => {
if args.len() < 3 {
@@ -48,10 +50,6 @@ fn main() {
}
}
pub fn cmd_build() {
unimplemented!("build command is not implemented yet");
}
fn cmd_check(path: &str) {
let source = read_ms_file(path);
match parser::parse(&source) {