mod vm;
mod command;
mod parse;

use std::io::Write;

fn main() {
    loop {
        print!("{}", "bf> ");
        std::io::stdout().flush().unwrap();

        let mut line = String::new();
        match std::io::stdin().read_line(&mut line) {
            Ok(0) => break,
            Ok(_) => print!("{}", line),
            Err(error) => print!("{}", error),
        }
    }
}

mod vm;
mod command;
mod parse;

use vm::VM;
use std::io::Write;

fn main() {
    let mut vm = VM::new();
    loop {
        print!("{}", "bf> ");
        std::io::stdout().flush().unwrap();

        let mut line = String::new();
        match std::io::stdin().read_line(&mut line) {
            Ok(0) => break,
            Ok(_) => print!("{}", line),
            Err(error) => print!("{}", error),
        }
    }
}

Initialize vm on intepreter start
Initialize vm on intepreter start
