clojure-rs / ClojureRS

Clojure, implemented atop Rust (unofficial)
Apache License 2.0
952 stars 27 forks source link

Run clj file as script & evaluate expression #44

Closed zackteo closed 4 years ago

zackteo commented 4 years ago

Hardcoding based on arguments.len() == 3 for now

Examples: --init/-i for script or --eval/-e for evaluate expression cargo run -- --init examples/hello_world.clj cargo run -- --eval "(println \"eh\")" cargo run -- --eval "(+ 1 2)"

zackteo commented 4 years ago

Made another pull request with the right branch ... https://github.com/clojure-rs/ClojureRS/pull/45