Skip to content

Add WITFormatter for WIT parser round-trip testing#352

Draft
MaxDesiatov wants to merge 3 commits into
mainfrom
maxd/wit-formatter
Draft

Add WITFormatter for WIT parser round-trip testing#352
MaxDesiatov wants to merge 3 commits into
mainfrom
maxd/wit-formatter

Conversation

@MaxDesiatov

Copy link
Copy Markdown
Member

WITFormatter renders a parsed WIT AST back to text matching wasm-tools component wit --all-features --no-docs, so WIT can be pretty-printed and round-tripped through parse and format. The test suite pins our parser and formatter to the authoritative output across every vendored WASIp2 package, catching parse and format drift automatically.

`WITFormatter` renders a parsed WIT AST back to text matching `wasm-tools component wit --all-features --no-docs`, so WIT can be pretty-printed and round-tripped through parse and format. The test suite pins our parser and formatter to the authoritative output across every vendored WASIp2 package, catching parse and format drift automatically.
@MaxDesiatov
MaxDesiatov marked this pull request as draft June 21, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant