<story><title>Parsing bitstreams with Nom</title><url>https://blog.adamchalmers.com/nom-bits/</url></story><parent_chain></parent_chain><comment><author>woodruffw</author><text>This is very clever, and a great demonstration of how flexible and generic Nom is!&lt;p&gt;It&amp;#x27;s not quite as inspired, but I wrote a minimal bitstream cursor&amp;#x2F;parser from scratch in Rust a few months ago[1]. It&amp;#x27;s developed with LLVM bitstreams in mind, but the API itself is suitable for just about any bitstream.&lt;p&gt;[1]: &lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;docs.rs&amp;#x2F;llvm-bitcursor&amp;#x2F;latest&amp;#x2F;llvm_bitcursor&amp;#x2F;index.html&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;docs.rs&amp;#x2F;llvm-bitcursor&amp;#x2F;latest&amp;#x2F;llvm_bitcursor&amp;#x2F;index.h...&lt;/a&gt;</text></comment>
<story><title>Parsing bitstreams with Nom</title><url>https://blog.adamchalmers.com/nom-bits/</url></story><parent_chain></parent_chain><comment><author>minhajuddin</author><text>I have started fiddling with rust, and one thing that I miss from the Elixir world is binary pattern parsing&amp;#x2F;matching. The elixir model is so much nicer, I&amp;#x27;ve used byteorder to convert a datetime to a byte array and then the reverse and it is not the most elegant code, nom looks much nicer. I wish rust had Elixir&amp;#x2F;Erlang like binary pattern matching.</text></comment>