License
MIT
Install
npm install @polybase/polylang@0.6.1-beta.121

Documentation

Build

Javascript

Install wasm-pack: cargo install wasm-pack

wasm-pack build --target nodejs

node <<EOF
const pkg = require("./pkg");
pkg.__wasm.init(); // nicer error messages for panics

console.log(JSON.parse(pkg.parse("collection Test { name: string!; }")));
EOF

Go

cargo build --release
cp target/release/libspacetime_parser.a go/parser/

(cd go && go run .)