mozilla/rust — pull request #3877 by z0w0 (2012-10-27 08:30:51+00:00)
Title: REPL

A really basic REPL, using liblinenoise. Also adds linenoise bindings into libcore, as core::rl.

Issues out of my control:

* There could only be one parser context at a time, so the entire rustc has to be started up each time in a task (has this been fixed since then?)
* AST is not sendable, so I had to (hackily) pretty print each parsed AST and then send it back to the REPL context - results in performance degrading over time
* Unused variable warnings can't be disabled so it's incredibly in your face

Big thanks to @bleibig and @dbp for their work on REPL prototypes.