Basic repl
This commit is contained in:
commit
408f351332
19 changed files with 564 additions and 0 deletions
21
engine/src/main.rs
Normal file
21
engine/src/main.rs
Normal file
|
@ -0,0 +1,21 @@
|
|||
use std::io;
|
||||
|
||||
use log2::info;
|
||||
|
||||
pub mod core;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), io::Error> {
|
||||
let _log2 = log2::open("z.log").tee(true).level("trace").start();
|
||||
info!("Initalizing Engine");
|
||||
let shell_thread = tokio::task::spawn(async {
|
||||
info!("Shell thread started");
|
||||
core::repl::handle_repl().await;
|
||||
}
|
||||
);
|
||||
|
||||
core::splash::print_splash();
|
||||
info!("Engine Initalized");
|
||||
shell_thread.await?;
|
||||
Ok(())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue