Boost logo

Boost Users :

Subject: Re: [Boost-users] Can boost help me organize/parse lots of binary data?
From: Richard (legalize+jeeves_at_[hidden])
Date: 2013-02-20 18:27:57


[Please do not mail me a copy of your followup]

boost-users_at_[hidden] spake the secret code
<CAPi0psstZu3oe_Nwmf9i8qK4G2yYbjLad45t9naqwLYM1mRDdg_at_[hidden]> thusly:

>Unfocused open-ended question: Does boost offer something that will
>help me with this?

Boost.Spirit is a recursive descent parser framework that can produce
very fast parsers. It uses expression templates to generate parsers
from a BNF-like grammar written in C++. You can also use the same
techniques to generate output from a datastructure.

So conceivably, you could do what you describe by using:

Boost.Spirit.Qi to parse the stream into data structures
Boost.Spirit.Karma to emit the necessary output from the data structures

-- 
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
     The Computer Graphics Museum <http://computergraphicsmuseum.org>
         The Terminals Wiki <http://terminals.classiccmp.org>
  Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net