
On 14 October 2010 22:36, Hartmut Kaiser
That should be easy, see below.
start = a_rule | b_rule | c_rule;
qi::rule
a_rule; qi::rule b_rule; qi::rule c_rule; HTH Regards Hartmut --------------- http://boost-spirit.com
I think I tried something like that, but it didn't work. Unless I'm
mistaken, each of those rules will create their own std::vector<int>
instance, so the values will not end up inserted into the vector
specified in the grammar parameter.
I was able to eventually achieve my goal by specifying each of the
rules like so:
qi::rule