Basic repl

This commit is contained in:
Chance 2024-12-01 16:02:06 -05:00
commit 408f351332
19 changed files with 564 additions and 0 deletions

21
engine/src/main.rs Normal file
View 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(())
}