Re: SpiritX3 two strings with attr last

Joel de Guzman <[email protected]>
Newsgroups gmane.comp.parsers.spirit.general
Message-ID <[email protected]>
On 04/07/2016 5:45 PM, Dainis Polis wrote:
>
>
> 2016-06-30 8:45 GMT+03:00 Dainis Polis <[email protected]
> <mailto:[email protected]>>:
>
>     x3::rule<class str_rule,std::string> str_rule = "str_rule";
>
>      auto str_rule_def  x3::string("string1")  >> x3::attr(std::string("string2"));
>
>     When parsing string "string1", compount rule attribute is  "string2",
>     why?
>     Any solution to get  "string1string2"?
>
Hmmm, that's not right. Minimal cpp test file please?

Regards,
-- 
Joel de Guzman
http://www.ciere.com
http://boost-spirit.com
http://www.cycfi.com/


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
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.