<?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: Full JavaScript parser for PHP</title>
	<atom:link href="http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/</link>
	<description>Tim Whitlock&#039;s home in the Blogohedron</description>
	<lastBuildDate>Wed, 07 Jul 2010 22:22:24 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ospx</title>
		<link>http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/comment-page-1/#comment-579</link>
		<dc:creator>ospx</dc:creator>
		<pubDate>Thu, 26 Nov 2009 21:58:47 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/#comment-579</guid>
		<description>honor to whom honor is due! 
comes out in the nick of time</description>
		<content:encoded><![CDATA[<p>honor to whom honor is due!<br />
comes out in the nick of time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/comment-page-1/#comment-513</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sat, 14 Nov 2009 18:26:42 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/#comment-513</guid>
		<description>jParser is available for download now
http://web.2point1.com/2009/11/14/jparser-and-jtokenizer-released/</description>
		<content:encoded><![CDATA[<p>jParser is available for download now<br />
<a href="http://web.2point1.com/2009/11/14/jparser-and-jtokenizer-released/" rel="nofollow">http://web.2point1.com/2009/11/14/jparser-and-jtokenizer-released/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harald</title>
		<link>http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/comment-page-1/#comment-495</link>
		<dc:creator>harald</dc:creator>
		<pubDate>Thu, 22 Oct 2009 12:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/#comment-495</guid>
		<description>anyway ... i implemented this gettext thing using a regexp like tim suggested. still hope, that this parser library will be available somewhen in future ... thanks!</description>
		<content:encoded><![CDATA[<p>anyway &#8230; i implemented this gettext thing using a regexp like tim suggested. still hope, that this parser library will be available somewhen in future &#8230; thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: harald</title>
		<link>http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/comment-page-1/#comment-493</link>
		<dc:creator>harald</dc:creator>
		<pubDate>Thu, 22 Oct 2009 10:08:39 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/#comment-493</guid>
		<description>hello,

i found your website searching for a solution for the exact same problem like udo. is it possible to get in contact with him? i would like to know, if he implemented such thing using a regexp parser or if he found an other solution.

hope you&#039;ll find some time for releasing / open-sourcing your parser, tim :)</description>
		<content:encoded><![CDATA[<p>hello,</p>
<p>i found your website searching for a solution for the exact same problem like udo. is it possible to get in contact with him? i would like to know, if he implemented such thing using a regexp parser or if he found an other solution.</p>
<p>hope you&#8217;ll find some time for releasing / open-sourcing your parser, tim :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/comment-page-1/#comment-475</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 14 Oct 2009 12:18:33 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/#comment-475</guid>
		<description>folks - I don&#039;t have time to open source this right now. really sorry, but the code needs some attention before it&#039;s released.</description>
		<content:encoded><![CDATA[<p>folks &#8211; I don&#8217;t have time to open source this right now. really sorry, but the code needs some attention before it&#8217;s released.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Volker</title>
		<link>http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/comment-page-1/#comment-474</link>
		<dc:creator>Volker</dc:creator>
		<pubDate>Wed, 14 Oct 2009 12:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/#comment-474</guid>
		<description>This seems to be s powerful javscript parser. But where can I DOWNLOAD it? I didn&#039;t find any download information.</description>
		<content:encoded><![CDATA[<p>This seems to be s powerful javscript parser. But where can I DOWNLOAD it? I didn&#8217;t find any download information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/comment-page-1/#comment-188</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sat, 14 Mar 2009 10:23:54 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/#comment-188</guid>
		<description>Had some major server problems. Moving all example code to another domain
See: http://timwhitlock.info/plug/examples/JavaScript/JParser.php
Now need to find-and-replace across the blog .. ouch</description>
		<content:encoded><![CDATA[<p>Had some major server problems. Moving all example code to another domain<br />
See: <a href="http://timwhitlock.info/plug/examples/JavaScript/JParser.php" rel="nofollow">http://timwhitlock.info/plug/examples/JavaScript/JParser.php</a><br />
Now need to find-and-replace across the blog .. ouch</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/comment-page-1/#comment-187</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 13 Mar 2009 10:58:34 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/#comment-187</guid>
		<description>Hi!
I can not find the subj on your site :( All links are dead (&quot;Can`t find the server&quot;)
Where I can find this great parser?
10x!</description>
		<content:encoded><![CDATA[<p>Hi!<br />
I can not find the subj on your site :( All links are dead (&#8221;Can`t find the server&#8221;)<br />
Where I can find this great parser?<br />
10x!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/comment-page-1/#comment-170</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Thu, 12 Feb 2009 10:54:59 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/#comment-170</guid>
		<description>Hi Udo.
As this project is not my full time job, I&#039;m not able to act very quickly on this kind of request. I really do appreciate your interest though and I&#039;d love to get some code posted soon. I will email you personally when I get something up, but can&#039;t promise when that will be. 

Looking at what you want to do with it, I&#039;m not sure you need a full parser. I think your requirement could be achieved with a simpler method. Perhaps just running a single RegExp over the whole thing. The following pattern should match the gettext call assuming a double-quoted string literal is the first argument. have a go!
&lt;pre&gt;
&lt;?php
$input = &#039;// example js source
somediv.innerHTML = gettext(&quot;Please login first&quot;);
anotherdiv.innerHTML = gettext ( &quot;And another&quot;, junk );&#039;;

preg_match_all(&#039;/gettext\s*\(\s*&quot;((?:\\\\.&#124;[^\r\n&quot;\\\\])*)&quot;/&#039;, $input, $matches );
var_dump( $matches[1] );&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi Udo.<br />
As this project is not my full time job, I&#8217;m not able to act very quickly on this kind of request. I really do appreciate your interest though and I&#8217;d love to get some code posted soon. I will email you personally when I get something up, but can&#8217;t promise when that will be. </p>
<p>Looking at what you want to do with it, I&#8217;m not sure you need a full parser. I think your requirement could be achieved with a simpler method. Perhaps just running a single RegExp over the whole thing. The following pattern should match the gettext call assuming a double-quoted string literal is the first argument. have a go!</p>
<pre>
&lt;?php
$input = '// example js source
somediv.innerHTML = gettext("Please login first");
anotherdiv.innerHTML = gettext ( "And another", junk );';

preg_match_all('/gettext\s*\(\s*"((?:\\\\.|[^\r\n"\\\\])*)"/', $input, $matches );
var_dump( $matches[1] );</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Udo</title>
		<link>http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/comment-page-1/#comment-169</link>
		<dc:creator>Udo</dc:creator>
		<pubDate>Thu, 12 Feb 2009 10:33:36 +0000</pubDate>
		<guid isPermaLink="false">http://web.2point1.com/2008/05/09/full-javascript-parser-for-php/#comment-169</guid>
		<description>Thanks for your reply.

I would probably need only a subset of the functions of your compiler. In fact I only need to know which functions in a .js file are being called and which (constant) parameters are passed to them. 

Something like:

somediv.innerHTML = gettext(&quot;Please login first&quot;);

The text &quot;Please login first&quot; is what I need.

Any chance to get your source? I can&#039;t seem to find any other JS parser in PHP...</description>
		<content:encoded><![CDATA[<p>Thanks for your reply.</p>
<p>I would probably need only a subset of the functions of your compiler. In fact I only need to know which functions in a .js file are being called and which (constant) parameters are passed to them. </p>
<p>Something like:</p>
<p>somediv.innerHTML = gettext(&#8221;Please login first&#8221;);</p>
<p>The text &#8220;Please login first&#8221; is what I need.</p>
<p>Any chance to get your source? I can&#8217;t seem to find any other JS parser in PHP&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
