Skip to content

Add lexer for WebAssembly Text Format#1161

Merged
alecthomas merged 1 commit intoalecthomas:masterfrom
NyCodeGHG:push-tvvrpyyzqxyy
Nov 16, 2025
Merged

Add lexer for WebAssembly Text Format#1161
alecthomas merged 1 commit intoalecthomas:masterfrom
NyCodeGHG:push-tvvrpyyzqxyy

Conversation

@NyCodeGHG
Copy link
Copy Markdown
Contributor

Adds a lexer for WebAssembly's text format based on pygments' WatLexer.
Test data is the output of wasm2wat from a binary compiled from the following code using clang 21.1.2 and the wasm32-unknown-wasi target:

#include <stdio.h>
int main() {
  puts("Hello World!");
  return 0;
}

Closes #754

@alecthomas alecthomas merged commit 3b5a164 into alecthomas:master Nov 16, 2025
2 checks passed
@alecthomas
Copy link
Copy Markdown
Owner

Thanks!

@NyCodeGHG NyCodeGHG deleted the push-tvvrpyyzqxyy branch November 17, 2025 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebAssembly Text Format

2 participants