News for hackers. Stuff that matters.

Show HN: A lexer, parser, and WebAssembly bytecode generator for Pinky Lang

https://pinky.cool.omg.lol

I wrote a compiler for the Pinky Scripting language that does code generation targeting wasm. It's written in TypeScript with the webassembly bytecodes mapped out to helper functions like i32.const(0)

The url is to a playground where you can write code in the Pinky Scripting Language and see the tokens, ast, bytecode, and output. Pinky Lang has a straight-forward grammar and is designed to be used for learning about compilers.

( 1 comment | on HN )
Re:Show HN: A lexer, parser, and WebAssembly bytecode genera... by mikestaas on Friday July 04, 2025 @12:16AM (#44461085)
Nice work! Why not link compiler src [1]?

[1] https://github.com/KevinBatdorf/pinky-compiler