[][src]Crate rox

Rox

Rox is based on the Lox language implemented in Bob Nystrom's series, "Crafting Interpreters."

Functions

repl

repl starts and evaluates in a REPL (Read-Evaluate-Print-Loop), taking in some input string, running it through the interpreter, and returning the value. Note that this REPL doesn't currently maintain any sort of state (since we don't support variable assignment yet), so this is really just a glorified calculator at the moment.

run_file

run_file reads the contents of the given path and runs them through the interpreter.