An experimental project demonstrating how WebAssembly can be used to create a standard portable representation for parsers.
parser.wit
- The basic version 0 EWP interfaceewp-json
- an implementation of theparser1.wit
interface for the JSON formattree-ewp
- An application that accepts an EWP parser and uses it to render a text parse tree
cd ewp-json
cargo build
cargo build --target wasm32-unknown-unknown --release
cp ./target/wasm32-unknown-unknown/release/ewp_json.wasm ../
cd tree-ewp
cargo run -- ../ewp_json.wasm ../test.json