<?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"
	>
<channel>
	<title>Comments on: Little-known Delphi grammar feature of the day: control-character syntax</title>
	<atom:link href="http://blog.excastle.com/2007/09/05/little-known-delphi-grammar-feature-of-the-day-control-character-syntax/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.excastle.com/2007/09/05/little-known-delphi-grammar-feature-of-the-day-control-character-syntax/</link>
	<description>Life, .NET, and Cats</description>
	<pubDate>Fri, 21 Nov 2008 06:18:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Marcel Popescu</title>
		<link>http://blog.excastle.com/2007/09/05/little-known-delphi-grammar-feature-of-the-day-control-character-syntax/#comment-5704</link>
		<dc:creator>Marcel Popescu</dc:creator>
		<pubDate>Tue, 11 Sep 2007 18:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/09/05/little-known-delphi-grammar-feature-of-the-day-control-character-syntax/#comment-5704</guid>
		<description>I have actually used this syntax a lot. It makes sense to me to define&lt;br&gt;&lt;br&gt;const&lt;br&gt;  CR = ^M;&lt;br&gt;  LF = ^J;&lt;br&gt;&lt;br&gt;However, that doesn't say much :) Plus, with the general move towards Unicode, I really doubt anyone has any use for control characters.
</description>
		<content:encoded><![CDATA[<p>I have actually used this syntax a lot. It makes sense to me to define</p>
<p>const<br />
<br />  CR = ^M;<br />
<br />  LF = ^J;</p>
<p>However, that doesn&#8217;t say much <img src='http://blog.excastle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Plus, with the general move towards Unicode, I really doubt anyone has any use for control characters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe White</title>
		<link>http://blog.excastle.com/2007/09/05/little-known-delphi-grammar-feature-of-the-day-control-character-syntax/#comment-5703</link>
		<dc:creator>Joe White</dc:creator>
		<pubDate>Sat, 08 Sep 2007 10:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/09/05/little-known-delphi-grammar-feature-of-the-day-control-character-syntax/#comment-5703</guid>
		<description>Sure, I *could* do it. What I can't do is handle it in the lexer, where it ideally would belong. Having to handle it in the parser (and generate a parse tree I'd be satisfied with) is a little more involved.&lt;br&gt;&lt;br&gt;Impossible? Certainly not. An hour or two of work, perhaps, to write the tests, make them pass, and make sure that every parse rule that used to look for TokenType.StringLiteral now looks for ParseRule.StringLiteral.&lt;br&gt;&lt;br&gt;But as I said, I've never actually seen this syntax in the wild... so I'm more interested in spending that hour or two on something useful.
</description>
		<content:encoded><![CDATA[<p>Sure, I *could* do it. What I can&#8217;t do is handle it in the lexer, where it ideally would belong. Having to handle it in the parser (and generate a parse tree I&#8217;d be satisfied with) is a little more involved.</p>
<p>Impossible? Certainly not. An hour or two of work, perhaps, to write the tests, make them pass, and make sure that every parse rule that used to look for TokenType.StringLiteral now looks for ParseRule.StringLiteral.</p>
<p>But as I said, I&#8217;ve never actually seen this syntax in the wild&#8230; so I&#8217;m more interested in spending that hour or two on something useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Hausladen</title>
		<link>http://blog.excastle.com/2007/09/05/little-known-delphi-grammar-feature-of-the-day-control-character-syntax/#comment-5702</link>
		<dc:creator>Andreas Hausladen</dc:creator>
		<pubDate>Thu, 06 Sep 2007 08:43:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/09/05/little-known-delphi-grammar-feature-of-the-day-control-character-syntax/#comment-5702</guid>
		<description>But you wrote &#34;I have no plans to support it in my parser&#34;. So you have a parser.
</description>
		<content:encoded><![CDATA[<p>But you wrote &quot;I have no plans to support it in my parser&quot;. So you have a parser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe White</title>
		<link>http://blog.excastle.com/2007/09/05/little-known-delphi-grammar-feature-of-the-day-control-character-syntax/#comment-5701</link>
		<dc:creator>Joe White</dc:creator>
		<pubDate>Wed, 05 Sep 2007 23:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/09/05/little-known-delphi-grammar-feature-of-the-day-control-character-syntax/#comment-5701</guid>
		<description>Simple. The lexer doesn't know where the type blocks start and end. That's the parser's job.
</description>
		<content:encoded><![CDATA[<p>Simple. The lexer doesn&#8217;t know where the type blocks start and end. That&#8217;s the parser&#8217;s job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas Hausladen</title>
		<link>http://blog.excastle.com/2007/09/05/little-known-delphi-grammar-feature-of-the-day-control-character-syntax/#comment-5700</link>
		<dc:creator>Andreas Hausladen</dc:creator>
		<pubDate>Wed, 05 Sep 2007 14:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.excastle.com/2007/09/05/little-known-delphi-grammar-feature-of-the-day-control-character-syntax/#comment-5700</guid>
		<description>- ^M as a char cannot appear after &#34;:&#34;&lt;br&gt;- ^M as a char can appear after &#34;:=&#34; where ^M as a pointer declaration cannot appear.&lt;br&gt;- ^M as a char cannot appear after &#34;=&#34; in the &#34;type&#34; block, whereas ^M as a pointer cannot appear after &#34;=&#34; outside of a &#34;type&#34; block.&lt;br&gt;&lt;br&gt;So where is the problem?
</description>
		<content:encoded><![CDATA[<p>- ^M as a char cannot appear after &quot;:&quot;<br />
<br />- ^M as a char can appear after &quot;:=&quot; where ^M as a pointer declaration cannot appear.<br />
<br />- ^M as a char cannot appear after &quot;=&quot; in the &quot;type&quot; block, whereas ^M as a pointer cannot appear after &quot;=&quot; outside of a &quot;type&quot; block.</p>
<p>So where is the problem?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
