Zig parser in ~70 lines of JavaScript
Details
- External ID
- 46660964
- Source
- HN
- Company
- —
- Product
- Zig parser in ~70 lines of JavaScript
- Website domain
- github.com
- Launched
- Jan. 17, 2026
- Cohort
- —
- Upvotes
- 10
- Upvotes percentile
- 0.5006587615283268
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
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.
Enrichment
- Theme
- browser automation and scraping for AI
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- zig parser in javascript
- Manually corrected
- False
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 — 99 launches clear the similarity bar, closest 8 shown.
Attention rank: #57 of 100 (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.44
- Nectar, a Rust-like React that compiles to WebAssembly · hn · 2026-07-06 · 29 upvotes · similarity 0.42
- Volt · hn · 2026-03-10 · 5 upvotes · similarity 0.41
- Ant · hn · 2026-05-09 · 8 upvotes · similarity 0.41
- I built a fast RSS reader in Zig · hn · 2025-12-16 · 90 upvotes · similarity 0.41
- Jitzu · hn · 2026-02-17 · 6 upvotes · similarity 0.40
- Excel Custom Functions in Zig · hn · 2025-11-19 · 5 upvotes · similarity 0.40
- ZigFormer · hn · 2025-11-27 · 22 upvotes · similarity 0.40
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.