<?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/"
		>
<channel>
	<title>Comments on: Implementing a scripting language with Antlr (Part 2: Parser)</title>
	<atom:link href="http://tech.puredanger.com/index.php/2007/01/15/antlr-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.puredanger.com/2007/01/15/antlr-2/</link>
	<description>Alex Miller&#039;s technical blog</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:39:50 -0800</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
	<item>
		<title>By: scott</title>
		<link>http://tech.puredanger.com/2007/01/15/antlr-2/comment-page-1/#comment-282089</link>
		<dc:creator>scott</dc:creator>
		<pubDate>Tue, 01 Mar 2011 05:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2007/01/15/antlr-2/#comment-282089</guid>
		<description>I know this is nit picky, but the rest of your article is so well written.  I would suggesting fixing these mechanical problems:

1)  notation which indicates that we should a-&gt;ADD node A with children B
2)  is attractive as it builds your objects write-&gt;RIGHT into the parser and you can effectively build a custom</description>
		<content:encoded><![CDATA[<p>I know this is nit picky, but the rest of your article is so well written.  I would suggesting fixing these mechanical problems:</p>
<p>1)  notation which indicates that we should a-&gt;ADD node A with children B<br />
2)  is attractive as it builds your objects write-&gt;RIGHT into the parser and you can effectively build a custom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sourav</title>
		<link>http://tech.puredanger.com/2007/01/15/antlr-2/comment-page-1/#comment-256277</link>
		<dc:creator>Sourav</dc:creator>
		<pubDate>Sat, 16 Oct 2010 02:35:02 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2007/01/15/antlr-2/#comment-256277</guid>
		<description>Hiiii,  structDecl returns[GlobalDeclaration result]

 	: n=STRUCT IDENT LBRACE f=fieldDeclList+  r=RBRACE	

 	{ $result = new StructDecl(loc(n), n.getText(),f.result); }

 	;





fieldDeclList returns[FieldDecl result]

:t=type n=IDENT SEMI 

{ $result=new FieldDecl(loc(n),t.result,n.getText());}

;

Here in structDecl rule,i am sending loc(n),n.getText() and f.result but my problem is i am sending f as a single variable and i want to send as a list variable,how to do that?</description>
		<content:encoded><![CDATA[<p>Hiiii,  structDecl returns[GlobalDeclaration result]</p>
<p> 	: n=STRUCT IDENT LBRACE f=fieldDeclList+  r=RBRACE	</p>
<p> 	{ $result = new StructDecl(loc(n), n.getText(),f.result); }</p>
<p> 	;</p>
<p>fieldDeclList returns[FieldDecl result]</p>
<p>:t=type n=IDENT SEMI </p>
<p>{ $result=new FieldDecl(loc(n),t.result,n.getText());}</p>
<p>;</p>
<p>Here in structDecl rule,i am sending loc(n),n.getText() and f.result but my problem is i am sending f as a single variable and i want to send as a list variable,how to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M Shekhar</title>
		<link>http://tech.puredanger.com/2007/01/15/antlr-2/comment-page-1/#comment-1413</link>
		<dc:creator>M Shekhar</dc:creator>
		<pubDate>Mon, 26 Mar 2007 20:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2007/01/15/antlr-2/#comment-1413</guid>
		<description>Alex, I took at look at Vocubularies and seems like that is not what I&#039;m looking for. My problem is similar to this thread that someone had started sometime back, but apparently had no responses.

http://www.antlr.org:8080/pipermail/antlr-interest/2005-September/013603.html

Let me know, if you have any pointers to this problem.

Thanks,
manju</description>
		<content:encoded><![CDATA[<p>Alex, I took at look at Vocubularies and seems like that is not what I&#8217;m looking for. My problem is similar to this thread that someone had started sometime back, but apparently had no responses.</p>
<p><a href="http://www.antlr.org:8080/pipermail/antlr-interest/2005-September/013603.html" rel="nofollow">http://www.antlr.org:8080/pipermail/antlr-interest/2005-September/013603.html</a></p>
<p>Let me know, if you have any pointers to this problem.</p>
<p>Thanks,<br />
manju</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: M Shekhar</title>
		<link>http://tech.puredanger.com/2007/01/15/antlr-2/comment-page-1/#comment-1412</link>
		<dc:creator>M Shekhar</dc:creator>
		<pubDate>Mon, 26 Mar 2007 20:36:26 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2007/01/15/antlr-2/#comment-1412</guid>
		<description>Thanks Alex, that helps.</description>
		<content:encoded><![CDATA[<p>Thanks Alex, that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://tech.puredanger.com/2007/01/15/antlr-2/comment-page-1/#comment-1404</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Mon, 26 Mar 2007 13:31:14 +0000</pubDate>
		<guid isPermaLink="false">http://tech.puredanger.com/2007/01/15/antlr-2/#comment-1404</guid>
		<description>Regarding error handling, I posted &lt;a href=&quot;http://tech.puredanger.com/2007/02/01/recovering-line-and-column-numbers-in-your-antlr-ast/&quot; rel=&quot;nofollow&quot;&gt; about recovering line and column numbers in an AST&lt;/a&gt; earlier.  Beyond that, I have not done much yet with error recovery in antlr.  

Antlr does support the integration of multiple grammars and even grammar extension through the notion of &quot;vocabularies&quot;.  You might check out the antlr doc on &lt;a href=&quot;http://www.antlr.org/doc/vocab.html&quot; rel=&quot;nofollow&quot;&gt;Vocabularies&lt;/a&gt; for some more info.</description>
		<content:encoded><![CDATA[<p>Regarding error handling, I posted <a href="http://tech.puredanger.com/2007/02/01/recovering-line-and-column-numbers-in-your-antlr-ast/" rel="nofollow"> about recovering line and column numbers in an AST</a> earlier.  Beyond that, I have not done much yet with error recovery in antlr.  </p>
<p>Antlr does support the integration of multiple grammars and even grammar extension through the notion of &#8220;vocabularies&#8221;.  You might check out the antlr doc on <a href="http://www.antlr.org/doc/vocab.html" rel="nofollow">Vocabularies</a> for some more info.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

