how to parse list of idents

Jens Kallup <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
Hello,

in symbol_def_parameter, i would like to parse:
"parameter identA" and/or
"parameter identA, identB" , ...

But the formular dont differ between space: ' ' and ','
So, Now my question is, how to declare symbol_def_parameter
in correct way?

----%<----

  symbol_def_parameter =
           (symbol_parameter >
           (symbol_alpha) |
          *(symbol_alpha) > qi::char_(',') > symbol_alpha)
          ;

  symbol_alpha =
       qi::char_("a-zA-Z_") >>
      *qi::char_("a-zA-Z0-9_")
      ;

   symbol_parameter = no_case["parameter"];


  BOOST_SPIRIT_DEBUG_NODE(symbol_parameter);
  BOOST_SPIRIT_DEBUG_NODE(symbol_def_parameter);

}

qi::rule<Iterator, std::string()> symbol_alpha;

qi::rule<Iterator, Skipper>
symbol_def_parameter;


------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.