mod vm;
mod command;
mod parse;
mod program;

use vm::VM;
use program::Program;
use std::io::Write;
use std::env;

fn main() {
    for argument in env::args() {
        println!("{}", argument);
    }

    let mut vm = VM::new();
    let mut program = Program::new();
    loop {
        print!("{}", if program.is_seeking {"... "} else {"bf> "});
        std::io::stdout().flush().unwrap();

        let mut line = String::new();
        let commands = match std::io::stdin().read_line(&mut line) {
            Ok(0) => break,
            Ok(_) => parse::parse(&line),
            Err(error) => panic!(error),
        };
        program.append(&commands);
        program.execute(&mut vm);
    }
}

mod vm;
mod command;
mod parse;
mod program;

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

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

        let mut line = String::new();
        let commands = match std::io::stdin().read_line(&mut line) {
            Ok(0) => break,
            Ok(_) => parse::parse(&line),
            Err(error) => panic!(error),
        };
        program.append(&commands);
        program.execute(&mut vm);
    }
}

--- 
+++ 
@@ -6,8 +6,13 @@
 use vm::VM;
 use program::Program;
 use std::io::Write;
+use std::env;
 
 fn main() {
+    for argument in env::args() {
+        println!("{}", argument);
+    }
+
     let mut vm = VM::new();
     let mut program = Program::new();
     loop {
Print out arguments supplied (testing purposes)
