<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Day 10: A Regex Story</title>
	<atom:link href="http://perl6advent.wordpress.com/2009/12/10/day-10-a-regex-story/feed/" rel="self" type="application/rss+xml" />
	<link>http://perl6advent.wordpress.com/2009/12/10/day-10-a-regex-story/</link>
	<description>Something cool about Perl 6 every day</description>
	<lastBuildDate>Sun, 03 Feb 2013 05:15:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: pmichaud</title>
		<link>http://perl6advent.wordpress.com/2009/12/10/day-10-a-regex-story/#comment-88</link>
		<dc:creator><![CDATA[pmichaud]]></dc:creator>
		<pubDate>Thu, 10 Dec 2009 18:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=22#comment-88</guid>
		<description><![CDATA[Switching the regexes to &#039;token&#039; and &#039;rule&#039; in this example would not work, because the patterns in this example need backtracking in order to match.  (The &#039;token&#039; and &#039;rule&#039; keywords disable backtracking in regexes.)

Pm]]></description>
		<content:encoded><![CDATA[<p>Switching the regexes to &#8216;token&#8217; and &#8216;rule&#8217; in this example would not work, because the patterns in this example need backtracking in order to match.  (The &#8216;token&#8217; and &#8216;rule&#8217; keywords disable backtracking in regexes.)</p>
<p>Pm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moritz</title>
		<link>http://perl6advent.wordpress.com/2009/12/10/day-10-a-regex-story/#comment-87</link>
		<dc:creator><![CDATA[Moritz]]></dc:creator>
		<pubDate>Thu, 10 Dec 2009 18:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=22#comment-87</guid>
		<description><![CDATA[Some of the advent calendar authors are also working on a book about Perl 6. It&#039;s not finished yet, but the chapters on regexes and grammars has some substance already, and explains what regex/token/rule is about. 

You can find it here:
http://github.com/perl6/book/downloads]]></description>
		<content:encoded><![CDATA[<p>Some of the advent calendar authors are also working on a book about Perl 6. It&#8217;s not finished yet, but the chapters on regexes and grammars has some substance already, and explains what regex/token/rule is about. </p>
<p>You can find it here:<br />
<a href="http://github.com/perl6/book/downloads" rel="nofollow">http://github.com/perl6/book/downloads</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gorm</title>
		<link>http://perl6advent.wordpress.com/2009/12/10/day-10-a-regex-story/#comment-86</link>
		<dc:creator><![CDATA[Gorm]]></dc:creator>
		<pubDate>Thu, 10 Dec 2009 17:43:02 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=22#comment-86</guid>
		<description><![CDATA[Could someone more familiar with perl6 please extend this story a bit?
Specifically, the referenced synopsis page has ‘token’ and ‘rule’ statements that seem like they would be useful in this story.

&lt;pre&gt;
grammar Inventory {
    token product { \d+ }
    token quantity { \d+ }
    token color { \S+ }
    token description { \N* }
    rule TOP { ^^ &lt;product&gt; &lt;quantity&gt;
                [
                &#124; &lt;description&gt; &#039;(&#039; &lt;color&gt; &#039;)&#039;
                &#124; &lt;color&gt; &lt;description&gt;
                ]
                $$
    }
}
&lt;/pre&gt;

Would this work?]]></description>
		<content:encoded><![CDATA[<p>Could someone more familiar with perl6 please extend this story a bit?<br />
Specifically, the referenced synopsis page has ‘token’ and ‘rule’ statements that seem like they would be useful in this story.</p>
<pre>
grammar Inventory {
    token product { \d+ }
    token quantity { \d+ }
    token color { \S+ }
    token description { \N* }
    rule TOP { ^^ &lt;product&gt; &lt;quantity&gt;
                [
                | &lt;description&gt; '(' &lt;color&gt; ')'
                | &lt;color&gt; &lt;description&gt;
                ]
                $$
    }
}
</pre>
<p>Would this work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gorm</title>
		<link>http://perl6advent.wordpress.com/2009/12/10/day-10-a-regex-story/#comment-85</link>
		<dc:creator><![CDATA[Gorm]]></dc:creator>
		<pubDate>Thu, 10 Dec 2009 17:37:23 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=22#comment-85</guid>
		<description><![CDATA[Could someone more familiar with perl6 please extend this story a bit?
Specifically, the referenced synopsis page has &#039;token&#039; and &#039;rule&#039; statements that seem like they would be useful in this story.

My (uninformed) take:

grammar Inventory {
    token product { \d+ }
    token quantity { \d+ }
    token color { \S+ }
    token description { \N* }
    rule TOP { ^^    
                [
                &#124;  &#039;(&#039;   &#039;)&#039;
                &#124;  
                ]
                $$
    }
}

Would this work?]]></description>
		<content:encoded><![CDATA[<p>Could someone more familiar with perl6 please extend this story a bit?<br />
Specifically, the referenced synopsis page has &#8216;token&#8217; and &#8216;rule&#8217; statements that seem like they would be useful in this story.</p>
<p>My (uninformed) take:</p>
<p>grammar Inventory {<br />
    token product { \d+ }<br />
    token quantity { \d+ }<br />
    token color { \S+ }<br />
    token description { \N* }<br />
    rule TOP { ^^<br />
                [<br />
                |  '('   ')'<br />
                |<br />
                ]<br />
                $$<br />
    }<br />
}</p>
<p>Would this work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pmichaud</title>
		<link>http://perl6advent.wordpress.com/2009/12/10/day-10-a-regex-story/#comment-84</link>
		<dc:creator><![CDATA[pmichaud]]></dc:creator>
		<pubDate>Thu, 10 Dec 2009 15:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=22#comment-84</guid>
		<description><![CDATA[In general, null patterns are disallowed in Perl 6 -- one has to explicitly request matching against an empty string (often either &#039;&#039; or &lt;?&gt;).

Because of this, we&#039;re able to say that a leading &quot;empty&quot; alternation (pipe) is simply ignored in a pattern.  That makes it easy to write an alternation group as shown in the example above, where each alternative begins with a pipe character and the pipes/grouping brackets can be aligned.

Pm]]></description>
		<content:encoded><![CDATA[<p>In general, null patterns are disallowed in Perl 6 &#8212; one has to explicitly request matching against an empty string (often either &#8221; or &lt;?&gt;).</p>
<p>Because of this, we&#8217;re able to say that a leading &#8220;empty&#8221; alternation (pipe) is simply ignored in a pattern.  That makes it easy to write an alternation group as shown in the example above, where each alternative begins with a pipe character and the pipes/grouping brackets can be aligned.</p>
<p>Pm</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bened</title>
		<link>http://perl6advent.wordpress.com/2009/12/10/day-10-a-regex-story/#comment-83</link>
		<dc:creator><![CDATA[bened]]></dc:creator>
		<pubDate>Thu, 10 Dec 2009 15:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://perl6advent.wordpress.com/?p=22#comment-83</guid>
		<description><![CDATA[Nice story, I liked the ending. ; )

What&#039;s with the first pipe in the group:
[
&#124; ...
&#124; ...
]
Doesn&#039;t this match empty strings too, like (?:&#124;...&#124;...) would have in Perl 5?]]></description>
		<content:encoded><![CDATA[<p>Nice story, I liked the ending. ; )</p>
<p>What&#8217;s with the first pipe in the group:<br />
[<br />
| ...<br />
| ...<br />
]<br />
Doesn&#8217;t this match empty strings too, like (?:|&#8230;|&#8230;) would have in Perl 5?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
