RsEPL is a REPL not tied to a compiler version - instead of using the compiler internals to compile and run your code, we just write it to a file and run the compiler on that. This makes it much slower but future-proof.
RsEPL requires:
Install with cargo:
sh
cargo install rsepl
Run as rspl
RsEPL has a few commands, all beginning with :
:
:exit
- Exits the program. You can also exit with CTRL-D or CTRL-C:h
or :help
- List commands:buffer
- Print all code you've entered so far (which will all be compiled):clear
- Clear the buffer:pop
- Remove the last successful line from the buffer (lines that error are not added anyway)This runs quite slowly. Everything you write is appended to a list, which is all written to a
rust source file, which is then compiled and run with cargo. This means that every time you run a line
all previous lines are also recompiled. Currently there's also no removal of no longer useful lines
(one-offs like 2+2
etc).
Features I wish to add:
extern crate
s - pull from crates.io and use in REPLCan be interpreted as anything from: Read - (slowly) Evaluate - Print - Loop to Rust, Evaluate, Print, Loop
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.