Takes WebAssembly S-expression (WAST) string and returns abstract syntax tree (AST).
Inspired by esprima
npm i wast-parser --save
var parser = require('wast-parser');
First install globally npm i wast-parser -g
then invoke with a wast file wast-parser <path/to/wast/file> > parsed_wast.json
var ast = parser.parse('(module)');
npm test
npm run testgen
MIT LICENSE.