2025-02-06 11:00:57 +01:00
|
|
|
# Crafting Interpreters
|
|
|
|
|
2025-05-26 10:29:54 +02:00
|
|
|
Using rust to implement the first part of
|
|
|
|
[Crafting interpreters](https://craftinginterpreters.com) for the
|
2025-02-06 11:00:57 +01:00
|
|
|
[FHNW](https://www.fhnw.ch) [PL-Circle](https://github.com/fhnw-pl-circle).
|
|
|
|
|
2025-02-06 11:34:46 +01:00
|
|
|
All dependencies for running the respective implementations are specified in the
|
|
|
|
`flake.nix` files within the project folders (look for the key `buildInputs`).
|
|
|
|
Though my recommendation is to use the provided
|
|
|
|
[nix flakes](https://nixos.wiki/wiki/Flakes).
|
|
|
|
|
|
|
|
Use `cargo run -- <ARGS>` to run the interpreter directly from the source code.
|
|
|
|
Specify needed arguments in place of `<ARGS>`.
|
|
|
|
|
|
|
|
```
|
|
|
|
Usage: rox <COMMAND>
|
|
|
|
|
|
|
|
Commands:
|
2025-05-26 10:29:54 +02:00
|
|
|
run Run a Lox source file
|
2025-02-06 11:34:46 +01:00
|
|
|
repl Run a Lox REPL
|
|
|
|
help Print this message or the help of the given subcommand(s)
|
|
|
|
|
|
|
|
Options:
|
|
|
|
-h, --help Print help
|
|
|
|
-V, --version Print version
|
|
|
|
```
|