Chriscbr / lox-wasm

Home Page:https://rybicki.io/lox-wasm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lox-wasm

A lox interpreter that you can run in your browser through WebAssembly!

Try it out at https://rybicki.io/lox-wasm/.

The Lox interpreter is natively written at Rust at https://github.com/Chriscbr/lox-rust. This repository contains necessary setup to package the code and bundle it into a small web application.

Little to no optimization has been done to reduce bundle sizes or improve performance.

Build instructions

Make sure https://github.com/Chriscbr/lox-rust is checked out and built in an adjacent directory.

Install wasm-pack.

From this repo, run:

wasm-pack build --target web

to package the library into an npm package which can be used by the web application.

Test out the web application by running:

cd www
npm run start

Publish the web application to GitHub by running:

cd www
npm run deploy

About

https://rybicki.io/lox-wasm

License:Apache License 2.0


Languages

Language:JavaScript 43.9%Language:HTML 23.5%Language:CSS 17.2%Language:Rust 15.4%