
[Please do not mail me a copy of your followup]
boost-users@lists.boost.org spake the secret code
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