Compiler
This commit is contained in:
+3
-5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user