aboutsummaryrefslogtreecommitdiffstats
path: root/bytecode/src/main.rs
blob: 8315d5a5bd5528ebcd302fa6e762a7171765e10e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
mod bytecode;
mod data;
mod encoding;
mod heap;

fn main() {
    let prog = encoding::decode(&mut std::io::stdin().lock()).unwrap();
    let exit_code = bytecode::eval(&prog).unwrap();
    std::process::exit(i32::from(exit_code));
}