about summary refs log blame commit diff
path: root/users/tazjin/rlox/src/main.rs
blob: e3bc2783150ced8f811daa017dddfc04e50aeb46 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
             



                   
 
             
             

           


                                                                    

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