diff options
Diffstat (limited to 'rust/src/main.rs')
| -rw-r--r-- | rust/src/main.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/rust/src/main.rs b/rust/src/main.rs deleted file mode 100644 index 8d52c46..0000000 --- a/rust/src/main.rs +++ /dev/null @@ -1,18 +0,0 @@ -use std::{ - env::args, - io::{stdin, stdout, IsTerminal}, -}; - -use lambda::io::{batch_eval, eval_file, repl}; - -fn main() { - if args().count() > 1 { - for file in args().skip(1) { - println!("{}", eval_file(&file)); - } - } else if stdin().is_terminal() { - repl(&mut stdin(), &mut stdout()); - } else { - batch_eval(&mut stdin(), &mut stdout()); - } -} |
