<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>notkeepingitreal.com: Nathan Sobo: Treetop: Bringing the Elegance of Ruby to Syntactic Analysis</title>
    <link>http://notkeepingitreal.com/articles/2007/11/02/nathan-sobo-treetop-bringing-the-elegance-of-ruby-to-syntactic-analysis</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Nathan Sobo: Treetop: Bringing the Elegance of Ruby to Syntactic Analysis</title>
      <description>&lt;p&gt;These slight technical difficulties. Handled fairly elegantly. Hot guy.&lt;/p&gt;


	&lt;p&gt;I was surpised with how many of you said you had written a parser when Jim Weirich asked the question this morning, since I would have expected very few folks to have written parsers with classic context-free generated grammars. And then again, I was surpised with how few of you said you had written a parser when Jim Weirich asked the question this morning, since I know that &lt;strong&gt;lots&lt;/strong&gt; of folks have written parsers &amp;#8211; at least parsers like regular expressions to parse strings.&lt;/p&gt;


	&lt;p&gt;Parsing Expression Grammars are mad hot since they can do recursion &amp;#8211; and Treetop is a Parsing Expression Grammar.&lt;/p&gt;


	&lt;p&gt;Arbitrary ruby is not allowed inside of a treetop grammar as at yet &amp;#8211; maybe in the future.&lt;/p&gt;


	&lt;p&gt;And&amp;#8230;this live coding followed. Good times parsing a mathematical expression and testing the various pieces.&lt;/p&gt;


	&lt;p&gt;One of the cool things about Treetop is that it does not &amp;#8220;lex&amp;#8221;, unlike many other parsers. There are cool posibilities with sharing well-constructed grammars and reusing grammars inside of other grammars to construct more complex grammars. Neat. Really enjoyable presentation.&lt;/p&gt;</description>
      <pubDate>Fri, 02 Nov 2007 14:23:00 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:f90b5a2c-0657-4bc6-8440-72170ba3e096</guid>
      <author>Kevin</author>
      <link>http://notkeepingitreal.com/articles/2007/11/02/nathan-sobo-treetop-bringing-the-elegance-of-ruby-to-syntactic-analysis</link>
      <category>Rubyconf</category>
      <trackback:ping>http://notkeepingitreal.com/articles/trackback/1856</trackback:ping>
    </item>
  </channel>
</rss>
