remove java implementation, was merely a book copy

This commit is contained in:
Sebastian Hugentobler 2025-05-26 10:29:54 +02:00
parent 175f672dd6
commit c869360aaa
Signed by: shu
SSH key fingerprint: SHA256:ppcx6MlixdNZd5EUM1nkHOKoyQYoJwzuQKXM6J/t66M
63 changed files with 4 additions and 2501 deletions

View file

@ -1,6 +1,7 @@
# Crafting Interpreters
Implementing [Crafting interpreters](https://craftinginterpreters.com) for the
Using rust to implement the first part of
[Crafting interpreters](https://craftinginterpreters.com) for the
[FHNW](https://www.fhnw.ch) [PL-Circle](https://github.com/fhnw-pl-circle).
All dependencies for running the respective implementations are specified in the
@ -8,19 +9,6 @@ All dependencies for running the respective implementations are specified in the
Though my recommendation is to use the provided
[nix flakes](https://nixos.wiki/wiki/Flakes).
## [Java Implementation](./java/lox-interpreter/)
Implementation of the tree-walk interpreter in java after the book.
Run `mvn package` to create an executable jar file in the `target` directory and
`mvn exec:java@jlox` to get a repl.
Run `mvn exec:java@generate-ast` to generate the expression class.
## [Rust implementation](./rust/rox/)
Implementation of the tree-walk interpreter in rust.
Use `cargo run -- <ARGS>` to run the interpreter directly from the source code.
Specify needed arguments in place of `<ARGS>`.
@ -28,7 +16,7 @@ Specify needed arguments in place of `<ARGS>`.
Usage: rox <COMMAND>
Commands:
compile Compile a Lox source file
run Run a Lox source file
repl Run a Lox REPL
help Print this message or the help of the given subcommand(s)