Add notes about WebAssembly to README
@@ -21,20 +21,37 @@ _Note that the grammar is highly experimental and not suited for production usag
>`npm install`
-## Compilation
+## Development
-To re-compile the grammar, run:
+### Compilation
+
+To (re-)compile the grammar, run:
>`npm run generate`
Note that the grammar is written completely in JavaScript (`grammar.js`), the other source files are generated by `tree-sitter`.
-## Testing
+### Testing
To run the unit tests, run:
>`npm run test`
+## WebAssembly
+
+### Compilation
+
+First make sure to have [Emscripten](https://emscripten.org/) installed. If you use Homebrew, you can `brew install emscripten`. Then run:
+
+>`npm run build-wasm`
+
+### Web-UI
+
+After compiling the grammar to WebAssembly, you can invoke
+
+>`npm run web-ui`
+
+to launch an interactive editing environment that displays the parsed syntax tree on-the-fly.
## Documentation
