<?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: Writing an Interpretter Using JavaCC</title>
	<atom:link href="http://www.anandsekar.com/2006/01/15/writing-a-interpretter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anandsekar.com/2006/01/15/writing-a-interpretter/</link>
	<description>ரெங்கசாமி ஆனந்த் சேகர் ராஜசேகர்</description>
	<lastBuildDate>Sat, 24 Jul 2010 10:05:17 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ken Beesley</title>
		<link>http://www.anandsekar.com/2006/01/15/writing-a-interpretter/comment-page-1/#comment-353</link>
		<dc:creator>Ken Beesley</dc:creator>
		<pubDate>Tue, 07 Aug 2007 05:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.pullaveli.com/?p=8#comment-353</guid>
		<description>Is it my browser? or is the display of this example somewhat garbled, especially the TOKEN production?</description>
		<content:encoded><![CDATA[<p>Is it my browser? or is the display of this example somewhat garbled, especially the TOKEN production?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anandsekar</title>
		<link>http://www.anandsekar.com/2006/01/15/writing-a-interpretter/comment-page-1/#comment-82</link>
		<dc:creator>anandsekar</dc:creator>
		<pubDate>Wed, 06 Jun 2007 18:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.pullaveli.com/?p=8#comment-82</guid>
		<description>The easiest way is to use reflection. However if you want to parse the file and inspect you could use the grammar for java from the community and tune it to your liking. The grammar is available at https://javacc.dev.java.net/servlets/ProjectDocumentView?documentID=882&amp;showInfo=true</description>
		<content:encoded><![CDATA[<p>The easiest way is to use reflection. However if you want to parse the file and inspect you could use the grammar for java from the community and tune it to your liking. The grammar is available at <a href="https://javacc.dev.java.net/servlets/ProjectDocumentView?documentID=882&#038;showInfo=true" rel="nofollow">https://javacc.dev.java.net/servlets/ProjectDocumentView?documentID=882&#038;showInfo=true</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gem</title>
		<link>http://www.anandsekar.com/2006/01/15/writing-a-interpretter/comment-page-1/#comment-81</link>
		<dc:creator>Gem</dc:creator>
		<pubDate>Wed, 06 Jun 2007 17:03:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.pullaveli.com/?p=8#comment-81</guid>
		<description>Hi Anand,

Great resource!
I would like to know whether we can find the information like package name, file name, method names, getter and setter methods of an object from a java file. I am trying to figure this out, and am hoping your tutorial would be of help. Please send me an email if you have more information regarding my specific issue.

Thanks a lot.
Gem.</description>
		<content:encoded><![CDATA[<p>Hi Anand,</p>
<p>Great resource!<br />
I would like to know whether we can find the information like package name, file name, method names, getter and setter methods of an object from a java file. I am trying to figure this out, and am hoping your tutorial would be of help. Please send me an email if you have more information regarding my specific issue.</p>
<p>Thanks a lot.<br />
Gem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anandsekar</title>
		<link>http://www.anandsekar.com/2006/01/15/writing-a-interpretter/comment-page-1/#comment-45</link>
		<dc:creator>anandsekar</dc:creator>
		<pubDate>Sat, 02 Jun 2007 16:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.pullaveli.com/?p=8#comment-45</guid>
		<description>I have fixed the link to the source code. You can use ecplise or any IDE to run this.</description>
		<content:encoded><![CDATA[<p>I have fixed the link to the source code. You can use ecplise or any IDE to run this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: leo</title>
		<link>http://www.anandsekar.com/2006/01/15/writing-a-interpretter/comment-page-1/#comment-43</link>
		<dc:creator>leo</dc:creator>
		<pubDate>Sat, 02 Jun 2007 16:29:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.pullaveli.com/?p=8#comment-43</guid>
		<description>hi to all
nice tutorial but i have a question: which IDE can i use to run this example?

thanks in advance

bye</description>
		<content:encoded><![CDATA[<p>hi to all<br />
nice tutorial but i have a question: which IDE can i use to run this example?</p>
<p>thanks in advance</p>
<p>bye</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anandsekar</title>
		<link>http://www.anandsekar.com/2006/01/15/writing-a-interpretter/comment-page-1/#comment-14</link>
		<dc:creator>anandsekar</dc:creator>
		<pubDate>Fri, 21 Jul 2006 17:43:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.pullaveli.com/?p=8#comment-14</guid>
		<description>Hi Ada,

Your code needs to have the main method

public static void main(String args[])

for it to be entry point of execution</description>
		<content:encoded><![CDATA[<p>Hi Ada,</p>
<p>Your code needs to have the main method</p>
<p>public static void main(String args[])</p>
<p>for it to be entry point of execution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ada</title>
		<link>http://www.anandsekar.com/2006/01/15/writing-a-interpretter/comment-page-1/#comment-13</link>
		<dc:creator>Ada</dc:creator>
		<pubDate>Mon, 10 Jul 2006 15:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.pullaveli.com/?p=8#comment-13</guid>
		<description>Hi Anand,

Thanks for your reply. I found these code are contained in the generated ExpressionParser.java.  Why when i try to run it, it complains &quot;The selection does not  contain a main type&quot;? Am i missing something? Why my eclipse does not recognize these code as my main type? Sorry if this is a stupid question but please help me.

Thanks,
Kam Ting</description>
		<content:encoded><![CDATA[<p>Hi Anand,</p>
<p>Thanks for your reply. I found these code are contained in the generated ExpressionParser.java.  Why when i try to run it, it complains &#8220;The selection does not  contain a main type&#8221;? Am i missing something? Why my eclipse does not recognize these code as my main type? Sorry if this is a stupid question but please help me.</p>
<p>Thanks,<br />
Kam Ting</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anandsekar</title>
		<link>http://www.anandsekar.com/2006/01/15/writing-a-interpretter/comment-page-1/#comment-12</link>
		<dc:creator>anandsekar</dc:creator>
		<pubDate>Mon, 10 Jul 2006 14:50:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.pullaveli.com/?p=8#comment-12</guid>
		<description>Hi Ada,

The parser generator generates all the classes requried for parsing the langugage, to use the parser you would need to invoke the parser. Here is a sample code to invoke the parser.
#
public static void main(String args[]) throws Exception {
#
    ExpressionParser parser = new ExpressionParser(new java.io.FileReader(args[0]));
#
    //ExpressionParser parser = new ExpressionParser(System.in);
#
    ASTstart expr=parser.start();
#
    ExpressionVisitor v=new ExpressionVisitor();
#
    System.out.println(expr.jjtAccept(v,null));
#
  }
#
}
#</description>
		<content:encoded><![CDATA[<p>Hi Ada,</p>
<p>The parser generator generates all the classes requried for parsing the langugage, to use the parser you would need to invoke the parser. Here is a sample code to invoke the parser.<br />
#<br />
public static void main(String args[]) throws Exception {<br />
#<br />
    ExpressionParser parser = new ExpressionParser(new java.io.FileReader(args[0]));<br />
#<br />
    //ExpressionParser parser = new ExpressionParser(System.in);<br />
#<br />
    ASTstart expr=parser.start();<br />
#<br />
    ExpressionVisitor v=new ExpressionVisitor();<br />
#<br />
    System.out.println(expr.jjtAccept(v,null));<br />
#<br />
  }<br />
#<br />
}<br />
#</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ada</title>
		<link>http://www.anandsekar.com/2006/01/15/writing-a-interpretter/comment-page-1/#comment-11</link>
		<dc:creator>Ada</dc:creator>
		<pubDate>Fri, 07 Jul 2006 10:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.pullaveli.com/?p=8#comment-11</guid>
		<description>Hi All,

I&#039;m new to javacc. When i try to run the generated code, i got the following error.

Exception in thread &quot;main&quot; java.lang.NoClassDefFoundError: ExpressionParser/java

Have i did anything wrong? Please help me, thanks.

Ada</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I&#8217;m new to javacc. When i try to run the generated code, i got the following error.</p>
<p>Exception in thread &#8220;main&#8221; java.lang.NoClassDefFoundError: ExpressionParser/java</p>
<p>Have i did anything wrong? Please help me, thanks.</p>
<p>Ada</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anandsekar</title>
		<link>http://www.anandsekar.com/2006/01/15/writing-a-interpretter/comment-page-1/#comment-10</link>
		<dc:creator>anandsekar</dc:creator>
		<pubDate>Thu, 15 Jun 2006 15:01:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.pullaveli.com/?p=8#comment-10</guid>
		<description>Hi Erno,

You have completed the lexical and the syntactical analyis phase, your next step would be to generate the abstract syntax tree. You can do this using JJTree, The abstract syntax tree would be the hierachical view of the program, as shown in the diagram in the tutorial. Once the tree is created you could traverse the tree and execute each node.

I recommend you to download the source code, I have a very simple example and I think you would find it useful. I have used javacc and jjtree in the example

anand</description>
		<content:encoded><![CDATA[<p>Hi Erno,</p>
<p>You have completed the lexical and the syntactical analyis phase, your next step would be to generate the abstract syntax tree. You can do this using JJTree, The abstract syntax tree would be the hierachical view of the program, as shown in the diagram in the tutorial. Once the tree is created you could traverse the tree and execute each node.</p>
<p>I recommend you to download the source code, I have a very simple example and I think you would find it useful. I have used javacc and jjtree in the example</p>
<p>anand</p>
]]></content:encoded>
	</item>
</channel>
</rss>
