Re: SpiritX3 two strings with attr last

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: SpiritX3 two strings with attr last

Dainis Polis-2


2016-06-30 8:45 GMT+03:00 Dainis Polis <[hidden email]>:
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"?





------------------------------------------------------------------------------
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
_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general
Reply | Threaded
Open this post in threaded view
|

Re: SpiritX3 two strings with attr last

Joel de Guzman
On 04/07/2016 5:45 PM, Dainis Polis wrote:

>
>
> 2016-06-30 8:45 GMT+03:00 Dainis Polis <[hidden email]
> <mailto:[hidden email]>>:
>
>     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
_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general
Reply | Threaded
Open this post in threaded view
|

Re: SpiritX3 two strings with attr last

Dainis Polis-2
On 2016.07.05. 01:55, Joel de Guzman wrote:
> Hmmm, that's not right. Minimal cpp test file please?
>
> Regards,

Yes, in attached main.cpp std out is exactly "string2" (git status  on
spirit libs - origin/develop ).



------------------------------------------------------------------------------
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
_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general

main.cpp (780 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: SpiritX3 two strings with attr last

Joel de Guzman
On 06/07/2016 2:46 AM, Dainis Polis wrote:
> On 2016.07.05. 01:55, Joel de Guzman wrote:
>> Hmmm, that's not right. Minimal cpp test file please?
>>
>> Regards,
>
> Yes, in attached main.cpp std out is exactly "string2" (git status  on spirit libs -
> origin/develop ).

Fixed bug in devel branch. Thanks for reporting!

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
_______________________________________________
Spirit-general mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/spirit-general