<?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: Flex and Bison in C++: An Example</title>
	<atom:link href="http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/</link>
	<description>Tips, tricks, and technology... you know... stuff!</description>
	<lastBuildDate>Tue, 17 Jan 2012 16:00:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: johndescs</title>
		<link>http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-800</link>
		<dc:creator>johndescs</dc:creator>
		<pubDate>Thu, 24 Nov 2011 17:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-800</guid>
		<description>A huge thanks for the example. All around were only snippets so you tarball was very welcome. 

For information it lasted me around 6 hours to convert a simple C flex-bison to C++.</description>
		<content:encoded><![CDATA[<p>A huge thanks for the example. All around were only snippets so you tarball was very welcome. </p>
<p>For information it lasted me around 6 hours to convert a simple C flex-bison to C++.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allan</title>
		<link>http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-778</link>
		<dc:creator>Allan</dc:creator>
		<pubDate>Fri, 28 Oct 2011 17:46:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-778</guid>
		<description>Hi! Thanks for the code. Is really helping me.

How can I change the yyin in this case? In the regular FLEX/BISON I just assign a FILE to yyin in the main. I don&#039;t know what to do in this case.

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi! Thanks for the code. Is really helping me.</p>
<p>How can I change the yyin in this case? In the regular FLEX/BISON I just assign a FILE to yyin in the main. I don&#8217;t know what to do in this case.</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Albi</title>
		<link>http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-777</link>
		<dc:creator>Albi</dc:creator>
		<pubDate>Sat, 22 Oct 2011 21:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-777</guid>
		<description>Hi man! Thanks for this piece of code. It&#039;s been really helpful.</description>
		<content:encoded><![CDATA[<p>Hi man! Thanks for this piece of code. It&#8217;s been really helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daniel</title>
		<link>http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-624</link>
		<dc:creator>daniel</dc:creator>
		<pubDate>Mon, 16 May 2011 14:58:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-624</guid>
		<description>I mean answers for John and Jung concerning compiling your example in windows with g++ or with visual c++ 6.0 dev studio (not .NET)</description>
		<content:encoded><![CDATA[<p>I mean answers for John and Jung concerning compiling your example in windows with g++ or with visual c++ 6.0 dev studio (not .NET)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daniel</title>
		<link>http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-623</link>
		<dc:creator>daniel</dc:creator>
		<pubDate>Mon, 16 May 2011 14:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-623</guid>
		<description>Robert have you got any answers for jung?  I am also struggling with the errors.
Thanks
Daniel</description>
		<content:encoded><![CDATA[<p>Robert have you got any answers for jung?  I am also struggling with the errors.<br />
Thanks<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jung</title>
		<link>http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-440</link>
		<dc:creator>jung</dc:creator>
		<pubDate>Sat, 05 Feb 2011 03:45:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-440</guid>
		<description>hmm. skip special characters.

*  FlexLexer.h   line 47
-#include iostream.h
+#include iostream
+using std::istream;
+using std::ostream;

* lex.yy.cc  line 23~25
-#include stdlib.h
-class istream;
-#include unistd.h
+#include stdio.h
+#include stdlib.h
+#include iostream
+using namespace std ;</description>
		<content:encoded><![CDATA[<p>hmm. skip special characters.</p>
<p>*  FlexLexer.h   line 47<br />
-#include iostream.h<br />
+#include iostream<br />
+using std::istream;<br />
+using std::ostream;</p>
<p>* lex.yy.cc  line 23~25<br />
-#include stdlib.h<br />
-class istream;<br />
-#include unistd.h<br />
+#include stdio.h<br />
+#include stdlib.h<br />
+#include iostream<br />
+using namespace std ;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jung</title>
		<link>http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-439</link>
		<dc:creator>jung</dc:creator>
		<pubDate>Sat, 05 Feb 2011 03:43:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-439</guid>
		<description>hi.
now i tested your example code on mingw.

here g++ (mingw) compile method.

&gt; g++ lex.yy.cc Main.cpp waffleshop.tab.c -o waffleshop
&gt; returns quite a lot error reports.

modify FlexLexer.h and lex.yy.cc files like below. ( - remove + add)

*  FlexLexer.h   line 47
-#include 
+#include 
+using std::istream;
+using std::ostream;

* lex.yy.cc  line 23~25
-#include 
-class istream;
-#include 
+#include 
+#include 
+#include 
+using namespace std ;

* result
C:\ex\parser&gt;waffleshop
10
INTEGER / 5 = 2
HI
5
INTEGER / 5 = 1
200
INTEGER / 5 = 40
^C

;-)</description>
		<content:encoded><![CDATA[<p>hi.<br />
now i tested your example code on mingw.</p>
<p>here g++ (mingw) compile method.</p>
<p>&gt; g++ lex.yy.cc Main.cpp waffleshop.tab.c -o waffleshop<br />
&gt; returns quite a lot error reports.</p>
<p>modify FlexLexer.h and lex.yy.cc files like below. ( &#8211; remove + add)</p>
<p>*  FlexLexer.h   line 47<br />
-#include<br />
+#include<br />
+using std::istream;<br />
+using std::ostream;</p>
<p>* lex.yy.cc  line 23~25<br />
-#include<br />
-class istream;<br />
-#include<br />
+#include<br />
+#include<br />
+#include<br />
+using namespace std ;</p>
<p>* result<br />
C:\ex\parser&gt;waffleshop<br />
10<br />
INTEGER / 5 = 2<br />
HI<br />
5<br />
INTEGER / 5 = 1<br />
200<br />
INTEGER / 5 = 40<br />
^C</p>
<p>;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Hollencamp</title>
		<link>http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-23</link>
		<dc:creator>Robert Hollencamp</dc:creator>
		<pubDate>Wed, 01 Sep 2010 15:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-23</guid>
		<description>The &lt;a href=&quot;http://sam.zoy.org/wtfpl/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;WTFPL&lt;/a&gt; sounds good to me; if you would prefer a different license let me know. Leaving a post saying &#039;this is useful, thanks&#039; would be great, but there are absolutely no restrictions on what you do with the code.</description>
		<content:encoded><![CDATA[<p>The <a href="http://sam.zoy.org/wtfpl/" target="_blank" rel="nofollow">WTFPL</a> sounds good to me; if you would prefer a different license let me know. Leaving a post saying &#8216;this is useful, thanks&#8217; would be great, but there are absolutely no restrictions on what you do with the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Micah Villmow</title>
		<link>http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-22</link>
		<dc:creator>Micah Villmow</dc:creator>
		<pubDate>Tue, 31 Aug 2010 23:19:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-22</guid>
		<description>Robert,
 What is the code license on your examples?
Thanks,</description>
		<content:encoded><![CDATA[<p>Robert,<br />
 What is the code license on your examples?<br />
Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Hollencamp</title>
		<link>http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-21</link>
		<dc:creator>Robert Hollencamp</dc:creator>
		<pubDate>Sun, 27 Jun 2010 05:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.thebinaryidiot.com/archives/2010/03/06/flex-bison-cpp-example/#comment-21</guid>
		<description>I didn&#039;t try building this particular project, but I have worked with bison and flex in Visual Studio. You will need &lt;a href=&quot;http://gnuwin32.sourceforge.net/packages/bison.htm&quot; rel=&quot;nofollow&quot;&gt;Bison&lt;/a&gt; and &lt;a href=&quot;http://gnuwin32.sourceforge.net/packages/flex.htm&quot; rel=&quot;nofollow&quot;&gt;Flex&lt;/a&gt;. Microsoft &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa730877(VS.80).aspx&quot; rel=&quot;nofollow&quot;&gt;provides a custom build rule&lt;/a&gt; for Visual Studio that makes it fairly easy to integrate these tools into the VS IDE.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t try building this particular project, but I have worked with bison and flex in Visual Studio. You will need <a href="http://gnuwin32.sourceforge.net/packages/bison.htm" rel="nofollow">Bison</a> and <a href="http://gnuwin32.sourceforge.net/packages/flex.htm" rel="nofollow">Flex</a>. Microsoft <a href="http://msdn.microsoft.com/en-us/library/aa730877(VS.80).aspx" rel="nofollow">provides a custom build rule</a> for Visual Studio that makes it fairly easy to integrate these tools into the VS IDE.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

