https://github.com/amilajack/wast-graph
a module for manipulating webassembly's ast
https://github.com/amilajack/wast-graph
Last synced: 20 days ago
JSON representation
a module for manipulating webassembly's ast
- Host: GitHub
- URL: https://github.com/amilajack/wast-graph
- Owner: amilajack
- Created: 2016-06-26T04:11:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-08-10T15:57:48.000Z (over 5 years ago)
- Last Synced: 2025-02-08T08:47:22.763Z (2 months ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SYNOPSIS
[](https://www.npmjs.org/package/wast-graph)
[](https://travis-ci.org/wanderer/wast-graph)
[](https://coveralls.io/r/wanderer/wast-graph)[](https://github.com/feross/standard)
A module for manipulating webassembly's ast. It uses the [AST JSON format](https://github.com/drom/wast-spec) produce by [wast-parser](https://github.com/drom/wast-parser).
# API
This has about same API as [generic-digraph](https://github.com/wanderer/generic-digraph/blob/master/docs/index.md). With a couple of additional functions## parse(json)
Creates an AST from the JSON format. Properties of each node are stored in `value`.## toJSON
Reproduces the AST in the JSON format# LICENSE
[MPL-2.0](https://tldrlegal.com/license/mozilla-public-license-2.0-(mpl-2))