
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/