Heuristically Excessive Compiler for Tiger On Rust
By Federico Badaloni & Ivo Elbert, Licenciatura en Ciencias de la Computación, FCEIA, UNR.
- Install Rust
- Install wasm-pack
- Install latest yarn
- Install app dependencies:
cd app & yarn install
- Build the library by running:
./buildWasm.sh
- Run the rust-side tests with:
cargo test
- Run the js-side interpreter and evaluator tests:
cd app & yarn test
- Compile a tiger file with
cargo run -- path/to/file.tig
. This will output the binary WebAssembly tooutput.wasm
. You can change the output with the-o
flag. Note that this doesn't link the runtime. - Run the app to edit and compile and run Tiger code interactively with
cd app & yarn start
.