<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>pyrex &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/pyrex/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Sat, 19 Jun 2010 15:55:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>pyrex &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>ActionScript Parsing, the YACC revenge :)</title>
		<link>https://blog.sephiroth.it/2006/12/10/actionscript-parsing-the-yacc-revenge/</link>
					<comments>https://blog.sephiroth.it/2006/12/10/actionscript-parsing-the-yacc-revenge/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Mon, 11 Dec 2006 00:47:30 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[antlr]]></category>
		<category><![CDATA[bison]]></category>
		<category><![CDATA[ecma]]></category>
		<category><![CDATA[ecmascript]]></category>
		<category><![CDATA[elastic]]></category>
		<category><![CDATA[gnu flex]]></category>
		<category><![CDATA[parser]]></category>
		<category><![CDATA[pyrex]]></category>
		<category><![CDATA[yacc]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=188</guid>

					<description><![CDATA[After my first <a target="_blank" href="http://www.sephiroth.it/weblog/archives/2006/12/an_experience_with_antlr_with_java_an.php">attempts with ANTLR</a> scanners in python/java I decided to start back with Bison/Flex again to see the difference in performances...
]]></description>
										<content:encoded><![CDATA[<p>After my first <a title="An experience with antlr, java and python" href="https://blog.sephiroth.it/2006/12/01/an-experience-with-antlr-java-and-python/" target="_blank">attempts with ANTLR</a> scanners in python/java I decided to start back with Bison/Flex again to see the difference in performances.<br />
So first I need to wrote from scratch the grammar/lexer files using only the <a href="http://www.mozilla.org/js/language/es4/" target="_blank">ECMAScript 4</a> specifications and much patience (the <a href="http://svn.berlios.de/wsvn/elastic/trunk/elastiC/src/elastic_p.y?op=file&amp;rev=0&amp;sc=0">elastic grammar file</a> help me a lot too).</p>
<p>After finishing a first version of the parser I tested it on the same file (75Kb actionscript file) which both java and python parsed in more than 1 second.<br />
The result was unbelievable: <span style="font-weight: bold;">0.02</span> seconds for that file!</p>
<p>Then I tested it on multiple files, and for about 320 files of the whole adobe corelib library it took 220ms</p>
<p>Ok, the parser it&#8217;s not yet complete and doesn&#8217;t care about regexp and xml syntax, but its performance convinced me enough&#8230;<br />
Now, the next step is to finish and test the parser and finally create a python library using <a href="http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/" target="_blank">pyrex</a>, then a benchmark test again.</p>
<p>If someone is interested in testing the parser, <a href="https://blog.sephiroth.it/wp-content/uploads/2006/12/parser.exe">download it</a> (use &#8220;<span style="font-style: italic;">parser &#8211;help</span>&#8221; form the command line for usage help), but remember this is only a first test.. not really helpful right now (I just wanted to share my text/parsing experiences).</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2006/12/10/actionscript-parsing-the-yacc-revenge/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
