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),
        }
    }
}

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),
        }
    }
}

--- 
+++ 
@@ -2,9 +2,11 @@
 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();
Initialize vm on intepreter start
