Skip to content

Commit

Permalink
Add documentation for wast2json (WebAssembly#1383)
Browse files Browse the repository at this point in the history
This primarily is documentation for the JSON format produced.
  • Loading branch information
binji authored Apr 8, 2020
1 parent ae2140d commit 392881d
Show file tree
Hide file tree
Showing 2 changed files with 571 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ If you want to add new keywords, you'll need to install
[gperf](https://www.gnu.org/software/gperf/). Before you upload your PR, please
run `make update-gperf` to update the prebuilt C++ sources in `src/prebuilt/`.

## Running wat2wasm and wast2json
## Running wat2wasm

Some examples:

Expand All @@ -198,10 +198,6 @@ $ bin/wat2wasm test.wat -o test.wasm
# parse spec-test.wast, and write verbose output to stdout (including the
# meaning of every byte)
$ bin/wat2wasm spec-test.wast -v

# parse spec-test.wast, and write files to spec-test.json. Modules are written
# to spec-test.0.wasm, spec-test.1.wasm, etc.
$ bin/wast2json spec-test.wast -o spec-test.json
```

You can use `--help` to get additional help:
Expand Down Expand Up @@ -260,6 +256,10 @@ You can use `--help` to get additional help:
$ bin/wasm-interp --help
```

## Running wast2json

See [wast2json.md](docs/wast2json.md).

## Running wasm-decompile

For example:
Expand Down
Loading

0 comments on commit 392881d

Please sign in to comment.