summaryrefslogtreecommitdiff
path: root/rust/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/main.rs')
-rw-r--r--rust/src/main.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/rust/src/main.rs b/rust/src/main.rs
index cf9477c..ffd92f2 100644
--- a/rust/src/main.rs
+++ b/rust/src/main.rs
@@ -1,7 +1,11 @@
use std::env::args;
-use lambda::run;
+use lambda::eval_file;
fn main() {
- println!("result: {}", run(&args().nth(1).unwrap()));
+ if args().count() > 1 {
+ for file in args().skip(1) {
+ println!("{}", eval_file(&file));
+ }
+ }
}