wast-parser
v0.33.0
Published
wast parser
Readme
WebAssembly parser
Takes WebAssembly S-expression (WAST) string and returns abstract syntax tree (AST).
Inspired by esprima
Use
Node.js
npm i wast-parser --savevar parser = require('wast-parser');CLI
First install globally npm i wast-parser -g
then invoke with a wast file wast-parser <path/to/wast/file> > parsed_wast.json
Functions
.parse()
var ast = parser.parse('(module)');Testing
npm test
Generating tests
npm run testgen
License
MIT LICENSE.
