lox/crates/lox-wasm
onyinyang d0388c841a
Handle request and state more reasonably
2023-01-26 14:16:41 -05:00
..
src Handle request and state more reasonably 2023-01-26 14:16:41 -05:00
.gitignore Add .gitignore 2022-11-10 11:05:46 -05:00
Cargo.toml Handle request and state more reasonably 2023-01-26 14:16:41 -05:00
LICENSE Add LICENSE 2022-11-09 18:38:42 +00:00
README.md Instructions and a simple test of the bindings 2022-11-15 22:03:30 -05:00
index.html Put lox test script into its own file 2023-01-13 14:16:37 -05:00
index.js Fix javascript to handle values properly 2023-01-26 00:17:14 -05:00

README.md

lox-wasm

wasm bindings for the lox crate: https://git-crysp.uwaterloo.ca/iang/lox

Dependencies

cargo install wasm-pack

Build

wasm-pack build --target web

Testing

The provided index.html file can be used for testing the lox bindings. First, follow the instructions to run a lox server.

Then, spin up a simple local webserver in the current directory:

python3 -m http.server 8000

Next, open the dev console in your browser and navigate to http://localhost:8000.