Zig parser in ~70 lines of JavaScript
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
I wanted something lighter than zig autodoc so I've implemented (and golfed a bit) a custom parser using parser combinators in JS. It's not 100% correct and it's also not meant to be, all I care about is if it can parse my own Zig code, not any valid Zig code.There are also some bugs, and I don't intend to support, nor develop this much further, consider it vaporware which you are free to fork and use it for something, or just have some fun reading the code and figuring out how it works (I certainly had a lot of fun implementing it - no LLMs, so it was a nice exercise too).BTW: I know it's probably very inefficient, and I don't care - it goes through 67 files in 0.19s and I don't expect it to be ever a bottleneck for this use-case, so I've spent exactly 0 minutes trying to optimize it.
HN · launched Jan 17, 2026 · 10 upvotes (top 50%) · 0 views
Niche: data parsing libraries and tools · 71 launches, 1 in the last 7 days · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 71 launches in data parsing libraries and tools →
Could you build this?
Yes Writing a small, bespoke ~70-line parser combinator script in JavaScript to extract specific language tokens can be easily generated and iterated on with LLMs.
Discussion
No comments on this launch.
Competitors
Other products that read as similar to this one : 202 launches clear the similarity bar, closest 8 shown.
Attention rank: #103 of 203 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 80 days after the earliest competitor.
- Myjs An accidental pure-Python JavaScript interpreter · hn · 2026-09-05 · 7 upvotes · similarity 0.45
- Nectar, a Rust-like React that compiles to WebAssembly · hn · 2026-07-06 · 29 upvotes · similarity 0.44
- Ant · hn · 2026-05-09 · 8 upvotes · similarity 0.43
- Volt · hn · 2026-03-10 · 5 upvotes · similarity 0.43
- I built a fast RSS reader in Zig · hn · 2025-12-16 · 90 upvotes · similarity 0.42
- Jitzu · hn · 2026-02-17 · 6 upvotes · similarity 0.42
- Mach · hn · 2026-06-08 · 32 upvotes · similarity 0.42
- ZigFormer · hn · 2025-11-27 · 22 upvotes · similarity 0.42
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.