Comment

Comment by woodruffw

This is very clever, and a great demonstration of how flexible and generic Nom is!

It's not quite as inspired, but I wrote a minimal bitstream cursor/parser from scratch in Rust a few months ago[1]. It's developed with LLVM bitstreams in mind, but the API itself is suitable for just about any bitstream.

[1]: https://docs.rs/llvm-bitcursor/latest/llvm_bitcursor/index.h...

parent woodruffw 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton