tvl-depot/users/tazjin/rlox/src/main.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
272 B
Rust
Raw Normal View History

use std::env;
use std::fs;
use std::io;
use std::io::Write;
use std::process;
mod bytecode;
mod treewalk;
fn main() {
match env::var("LOX_INTERPRETER").as_ref().map(String::as_str) {
Ok("treewalk") => treewalk::main(),
_ => bytecode::main(),
}
}