ballercat / walt

:zap: Walt is a JavaScript-like syntax for WebAssembly text format :zap:
https://ballercat.github.io/walt/
MIT License
4.64k stars 122 forks source link

Print nodes as wast text format #92

Closed ballercat closed 6 years ago

ballercat commented 6 years ago

Some debugging & developing improvements to the printNode utility. Instead of printing a custom output for the nodes in a tree output a wast-like(it's not exactly run-able code) format. Also, updated explorer site to print this format instead of raw binary dissasembler.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.3%) to 96.733% when pulling 3169403d1e17db20402b4daccc6ed3b53196ee37 on better-developer-tools into 10dcfbbccb202229c159b2631b3cdcadf0537f80 on beta.

xtuc commented 6 years ago

FYI I have this for my AST https://github.com/xtuc/webassemblyjs/tree/master/packages/wast-printer. You can use it for inspiration or we can figure out some AST<>AST transform to use it?