ztellman's Gloss is magic to me. - Here's an example of my first attempt to use Gloss to parse the Bitcoin protocol: https://gist.github.com/danneu/7397350 -- In 2-chan.clj, it demonstrates using ztellman's Aleph to send Bitcoin's verack handshake to a node and ask it for blocks. - Bitcoin protocol specs are described here: https://en.bitcoin.it/wiki/Protocol_specification - The hardest part of the protocol was https://en.bitcoin.it/wiki/Protocol_specification#Variable_length_integer, but Gloss makes it easy. - The latest version of my code is here ( https://github.com/danneu/chaingun/blob/master/src/chaingun/codec2.clj) but it became coupled to my Datomic entities, so it's perhaps more confusing.
I wasn't able to find any easy to follow real-world examples back when I was checking it out, so hopefully that helps someone. The amount of time Gloss has saved me is dumbfounding. On Friday, January 24, 2014 9:08:52 AM UTC-6, Kashyap CK wrote: > > Hi, > I need to write a parser for MP4 - essentially, read an MP4 file and > create an in-memory representation of its structure. > I'd appreciate it very much if I could get some suggestions on libraries > that I could use for this. > Is there a https://github.com/youngnh/parsatron like library that works > on binary files as well? > Regards, > Kashyap > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.