Boost logo

Boost Users :

Subject: [Boost-users] Boost::Spirit::Qi parsing into list
From: Slide (slide.o.mix_at_[hidden])
Date: 2011-02-07 23:48:11


I am looking at using Boost::Spirit for parsing a set of hardware
register definitions. From the examples I have seen, it looks like one
mainly creates a structure and then that is what is returned from the
parsing of the input. I was wondering if anyone could point me towards
some examples that might parse out a list of items and return them.
The end goal is to parse in the register definitions and then generate
C/C++ code from those register definitions to define a hardware access
layer that can be used by my other libraries on my chip. So, I would
parse the register definitions into a vector and then iterate over
that vector to generate the necessary code.

Thanks for any pointers.

slide

-- 
slide-o-blog
http://slide-o-blog.blogspot.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