1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use std::{ env::args, io::{stdin, stdout}, }; use lambda::io::{eval_file, repl}; fn main() { if args().count() > 1 { for file in args().skip(1) { println!("{}", eval_file(&file)); } } else { repl(&mut stdin(), &mut stdout()); } }