<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for Boost.Spirit</title>
	
	<link>http://boost-spirit.com/home</link>
	<description>Home of The Boost.Spirit Library</description>
	<lastBuildDate>Wed, 25 Jan 2012 14:26:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Boost-Spirit-Comments" /><feedburner:info uri="boost-spirit-comments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Comment on Creating Your Own Parser Component for Spirit.Qi by Leopold Talirz</title>
		<link>http://feedproxy.google.com/~r/Boost-Spirit-Comments/~3/-sbwMqZ5YVA/</link>
		<dc:creator>Leopold Talirz</dc:creator>
		<pubDate>Wed, 25 Jan 2012 14:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://boost-spirit.com/home/?page_id=567#comment-45462</guid>
		<description>If someone is having problems compiling iter_pos.hpp - the file is not completely self-contained as claimed in the article. It will compile after adding
[code]#include &lt;boost/spirit/include/karma.hpp&gt;[/code]
(I am sure much less would be needed - I did not check).</description>
		<content:encoded><![CDATA[<p>If someone is having problems compiling iter_pos.hpp &#8211; the file is not completely self-contained as claimed in the article. It will compile after adding</p>
<pre class="brush: plain; title: ; notranslate">#include &lt;boost/spirit/include/karma.hpp&gt;</pre>
<p>(I am sure much less would be needed &#8211; I did not check).</p>
<img src="http://feeds.feedburner.com/~r/Boost-Spirit-Comments/~4/-sbwMqZ5YVA" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://boost-spirit.com/home/articles/qi-example/creating-your-own-parser-component-for-spirit-qi/comment-page-1/#comment-45462</feedburner:origLink></item>
	<item>
		<title>Comment on Parsing a List of Key-Value Pairs Using Spirit.Qi by Łukasz</title>
		<link>http://feedproxy.google.com/~r/Boost-Spirit-Comments/~3/H_u0Jhik3j4/</link>
		<dc:creator>Łukasz</dc:creator>
		<pubDate>Sun, 22 Jan 2012 00:47:23 +0000</pubDate>
		<guid isPermaLink="false">http://boost-spirit.com/home/?page_id=371#comment-45239</guid>
		<description>What if I wanted the container not be a map or vector, but MyContainer&lt;pair&lt;string, string&gt;&gt;?  What interface should it expose or what traits do I need to specialize?</description>
		<content:encoded><![CDATA[<p>What if I wanted the container not be a map or vector, but MyContainer&lt;pair&lt;string, string&gt;&gt;?  What interface should it expose or what traits do I need to specialize?</p>
<img src="http://feeds.feedburner.com/~r/Boost-Spirit-Comments/~4/H_u0Jhik3j4" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://boost-spirit.com/home/articles/qi-example/parsing-a-list-of-key-value-pairs-using-spirit-qi/comment-page-1/#comment-45239</feedburner:origLink></item>
	<item>
		<title>Comment on AST Construction with the Universal Tree by Olaf</title>
		<link>http://feedproxy.google.com/~r/Boost-Spirit-Comments/~3/A0_QfJZyLts/</link>
		<dc:creator>Olaf</dc:creator>
		<pubDate>Wed, 14 Dec 2011 11:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://boost-spirit.com/home/?p=1508#comment-43045</guid>
		<description>What is the current status of utree? Bryce Lelbach doesn't continue to develop the example use case prana (https://github.com/brycelelbach/prana) any more, isn't? I like his idea to register callbacks (but imo he overused shared_ptr). On the compiler tutorial there isn't progress with utree also. Shall I use utree for new parsers or use the old AST approach?</description>
		<content:encoded><![CDATA[<p>What is the current status of utree? Bryce Lelbach doesn&#8217;t continue to develop the example use case prana (<a href="https://github.com/brycelelbach/prana" rel="nofollow">https://github.com/brycelelbach/prana</a>) any more, isn&#8217;t? I like his idea to register callbacks (but imo he overused shared_ptr). On the compiler tutorial there isn&#8217;t progress with utree also. Shall I use utree for new parsers or use the old AST approach?</p>
<img src="http://feeds.feedburner.com/~r/Boost-Spirit-Comments/~4/A0_QfJZyLts" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://boost-spirit.com/home/2011/06/12/ast-construction-with-the-universal-tree/comment-page-1/#comment-43045</feedburner:origLink></item>
	<item>
		<title>Comment on Debugging by Mateusz Loskot</title>
		<link>http://feedproxy.google.com/~r/Boost-Spirit-Comments/~3/4kZyk_Ro2GM/</link>
		<dc:creator>Mateusz Loskot</dc:creator>
		<pubDate>Fri, 09 Dec 2011 22:55:59 +0000</pubDate>
		<guid isPermaLink="false">http://boost-spirit.com/home/?page_id=540#comment-42677</guid>
		<description>One clarification to Rob's last suggestion. The macro should be placed after rule assignment, not before:

grammar() : grammar::base_type(rule)
{
    rule = ...;
   
    BOOST_SPIRIT_DEBUG_NODE(rule);
}</description>
		<content:encoded><![CDATA[<p>One clarification to Rob&#8217;s last suggestion. The macro should be placed after rule assignment, not before:</p>
<p>grammar() : grammar::base_type(rule)<br />
{<br />
    rule = &#8230;;</p>
<p>    BOOST_SPIRIT_DEBUG_NODE(rule);<br />
}</p>
<img src="http://feeds.feedburner.com/~r/Boost-Spirit-Comments/~4/4kZyk_Ro2GM" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://boost-spirit.com/home/articles/doc-addendum/debugging/comment-page-1/#comment-42677</feedburner:origLink></item>
	<item>
		<title>Comment on The Magical Power of Attributes in Spirit – Operators by Krzyszof</title>
		<link>http://feedproxy.google.com/~r/Boost-Spirit-Comments/~3/_Rck_UShH5U/</link>
		<dc:creator>Krzyszof</dc:creator>
		<pubDate>Sun, 27 Nov 2011 10:35:07 +0000</pubDate>
		<guid isPermaLink="false">http://boost-spirit.com/home/?page_id=741#comment-41910</guid>
		<description>Rules for attributes of compound components are nicely documented in "Compound Attribute Rules" but what about components combined with operator ()? It is "obvoius" that attribite of () is same as attribute of internal components?

I assume:
1) a: A, b: A, c: A --&gt; a &gt;&gt; ( b &gt; c ): vector&lt;A&gt; 
2) a: A, b: B, c: C --&gt; a &gt;&gt; ( b &gt; c ): tuple&lt;A, tuple&lt;B&gt; &gt; 

Is there some (easy?) way to force case 2 to behave like: 
3) a: A, b: B, c: C --&gt; a &gt;&gt; ( b &gt; c ): tuple&lt;A&gt; 
Of course removing brackets is not an option.</description>
		<content:encoded><![CDATA[<p>Rules for attributes of compound components are nicely documented in &#8220;Compound Attribute Rules&#8221; but what about components combined with operator ()? It is &#8220;obvoius&#8221; that attribite of () is same as attribute of internal components?</p>
<p>I assume:<br />
1) a: A, b: A, c: A &#8211;&gt; a &gt;&gt; ( b &gt; c ): vector<a><br />
2) a: A, b: B, c: C &#8211;&gt; a &gt;&gt; ( b &gt; c ): tuple&lt;A, tuple<b> &gt; </p>
<p>Is there some (easy?) way to force case 2 to behave like:<br />
3) a: A, b: B, c: C &#8211;&gt; a &gt;&gt; ( b &gt; c ): tuple<a><br />
Of course removing brackets is not an option.</a></b></a></p>
<img src="http://feeds.feedburner.com/~r/Boost-Spirit-Comments/~4/_Rck_UShH5U" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://boost-spirit.com/home/articles/attribute_handling/the-magical-power-of-attributes-in-spirit-operators/comment-page-1/#comment-41910</feedburner:origLink></item>
	<item>
		<title>Comment on The Keyword parser by Krzyszof</title>
		<link>http://feedproxy.google.com/~r/Boost-Spirit-Comments/~3/ON4EQS1Naa8/</link>
		<dc:creator>Krzyszof</dc:creator>
		<pubDate>Sat, 26 Nov 2011 23:59:40 +0000</pubDate>
		<guid isPermaLink="false">http://boost-spirit.com/home/?p=1416#comment-41890</guid>
		<description>I wonder how kwd and operator "/" can be combined with "&gt;&gt;".

Suppose one wants to parse:
   item "name1" ( x 1 y 2 )
   item "name2" ( y 3 x 4 )

Should it be something like:
item_rule %= lit("item") &gt;&gt; parse_name &gt;&gt; '(' &gt;&gt; kwd("x")[int_] / kwd("y")[int_] &gt;&gt; ')';

this fails for me. Adding brackets does not help.</description>
		<content:encoded><![CDATA[<p>I wonder how kwd and operator &#8220;/&#8221; can be combined with &#8220;&gt;&gt;&#8221;.</p>
<p>Suppose one wants to parse:<br />
   item &#8220;name1&#8243; ( x 1 y 2 )<br />
   item &#8220;name2&#8243; ( y 3 x 4 )</p>
<p>Should it be something like:<br />
item_rule %= lit(&#8220;item&#8221;) &gt;&gt; parse_name &gt;&gt; &#8216;(&#8216; &gt;&gt; kwd(&#8220;x&#8221;)[int_] / kwd(&#8220;y&#8221;)[int_] &gt;&gt; &#8216;)&#8217;;</p>
<p>this fails for me. Adding brackets does not help.</p>
<img src="http://feeds.feedburner.com/~r/Boost-Spirit-Comments/~4/ON4EQS1Naa8" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://boost-spirit.com/home/2011/04/16/the-keyword-parser/comment-page-1/#comment-41890</feedburner:origLink></item>
	<item>
		<title>Comment on Build a Compiler, What to Build? by Austin</title>
		<link>http://feedproxy.google.com/~r/Boost-Spirit-Comments/~3/8lygea0YEp8/</link>
		<dc:creator>Austin</dc:creator>
		<pubDate>Thu, 10 Nov 2011 02:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://boost-spirit.com/home/?p=828#comment-40884</guid>
		<description>URL for SPECS?</description>
		<content:encoded><![CDATA[<p>URL for SPECS?</p>
<img src="http://feeds.feedburner.com/~r/Boost-Spirit-Comments/~4/8lygea0YEp8" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://boost-spirit.com/home/2010/01/02/build-a-compiler-what-to-build/comment-page-1/#comment-40884</feedburner:origLink></item>
	<item>
		<title>Comment on Build a Compiler, What to Build? by Matthew</title>
		<link>http://feedproxy.google.com/~r/Boost-Spirit-Comments/~3/iFEeF-jn6vU/</link>
		<dc:creator>Matthew</dc:creator>
		<pubDate>Tue, 08 Nov 2011 21:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://boost-spirit.com/home/?p=828#comment-40825</guid>
		<description>I would love to see a SPECS compiler. I recently discovered the syntax, and while I think some things need to be changed--mostly to take advantage of C++11 features, which I think could be expressed better by a syntax independent of C--it's refreshing to see a syntactical re-imagining of C++ that doesn't try to add the sorts of language features that slow down runtime and defeats the whole purpose of using C++.</description>
		<content:encoded><![CDATA[<p>I would love to see a SPECS compiler. I recently discovered the syntax, and while I think some things need to be changed&#8211;mostly to take advantage of C++11 features, which I think could be expressed better by a syntax independent of C&#8211;it&#8217;s refreshing to see a syntactical re-imagining of C++ that doesn&#8217;t try to add the sorts of language features that slow down runtime and defeats the whole purpose of using C++.</p>
<img src="http://feeds.feedburner.com/~r/Boost-Spirit-Comments/~4/iFEeF-jn6vU" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://boost-spirit.com/home/2010/01/02/build-a-compiler-what-to-build/comment-page-1/#comment-40825</feedburner:origLink></item>
	<item>
		<title>Comment on Parsing Arbitrary Things in Any Sequence by Jamboree</title>
		<link>http://feedproxy.google.com/~r/Boost-Spirit-Comments/~3/jgUKrY-uWGw/</link>
		<dc:creator>Jamboree</dc:creator>
		<pubDate>Tue, 20 Sep 2011 08:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://boost-spirit.com/home/?p=977#comment-38705</guid>
		<description>Sorry for the late reply,

It's used when you want all the elements to be matched exactly once, e.g.

    Using: strict[char_('a') ^ 'b' ^ 'c']
    Input: cab -&gt; success
    Input: ca -&gt; fail

You can access the code at https://github.com/jamboree/boost-jamboree-spirit

Yet, I feel the usage of permutation (strict or not) is limited, it can't deal with the case in which the elements are required to be delimited...</description>
		<content:encoded><![CDATA[<p>Sorry for the late reply,</p>
<p>It&#8217;s used when you want all the elements to be matched exactly once, e.g.</p>
<p>    Using: strict[char_('a') ^ 'b' ^ 'c']<br />
    Input: cab -&gt; success<br />
    Input: ca -&gt; fail</p>
<p>You can access the code at <a href="https://github.com/jamboree/boost-jamboree-spirit" rel="nofollow">https://github.com/jamboree/boost-jamboree-spirit</a></p>
<p>Yet, I feel the usage of permutation (strict or not) is limited, it can&#8217;t deal with the case in which the elements are required to be delimited&#8230;</p>
<img src="http://feeds.feedburner.com/~r/Boost-Spirit-Comments/~4/jgUKrY-uWGw" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://boost-spirit.com/home/2010/02/17/parsing-arbitrary-things-in-any-sequence/comment-page-1/#comment-38705</feedburner:origLink></item>
	<item>
		<title>Comment on Parsing a List of Key-Value Pairs Using Spirit.Qi by Jurek</title>
		<link>http://feedproxy.google.com/~r/Boost-Spirit-Comments/~3/83QbFVdTlr4/</link>
		<dc:creator>Jurek</dc:creator>
		<pubDate>Wed, 07 Sep 2011 18:38:40 +0000</pubDate>
		<guid isPermaLink="false">http://boost-spirit.com/home/?page_id=371#comment-38112</guid>
		<description>Thank you for this example.

I have modified it to parse lines of key-value pairs. I simply added '&gt;&gt; qi::eol' to the query rule, and created a rule 'start = +query'. I use std::vector&lt; std::map &gt; to store the parsed data. Is it possible to make a parser that put these pairs into `std::vector&lt; boost::shared_ptr&lt;std::map &gt;`?</description>
		<content:encoded><![CDATA[<p>Thank you for this example.</p>
<p>I have modified it to parse lines of key-value pairs. I simply added &#8216;&gt;&gt; qi::eol&#8217; to the query rule, and created a rule &#8216;start = +query&#8217;. I use std::vector&lt; std::map &gt; to store the parsed data. Is it possible to make a parser that put these pairs into `std::vector&lt; boost::shared_ptr&lt;std::map &gt;`?</p>
<img src="http://feeds.feedburner.com/~r/Boost-Spirit-Comments/~4/83QbFVdTlr4" height="1" width="1"/>]]></content:encoded>
	<feedburner:origLink>http://boost-spirit.com/home/articles/qi-example/parsing-a-list-of-key-value-pairs-using-spirit-qi/comment-page-1/#comment-38112</feedburner:origLink></item>
</channel>
</rss>

