<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Tue, 21 May 2013 04:07:48 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Skaldrom's Blog: Want to create your own progranning language? Lexer & Parser in PHP!]]></title>
      <guid>http://www.phpdeveloper.org/news/8963</guid>
      <link>http://www.phpdeveloper.org/news/8963</link>
      <description><![CDATA[<i>Skaldrom</i> passed along a <a href="http://blog.oncode.info/2007/10/25/eine-eigene-programmiersprache-erschaffen-lexer-und-parser-in-php/">link to an article</a> he's written up to show how to use one of the more powerful PEAR packages in a simple "Hello World" kind of script - the <a href="http://pear.php.net/package/PHP_LexerGenerator">PHP_LexerGenerator</a> and <a href="http://pear.php.net/package/PHP_ParserGenerator">PHP_ParserGenerator</a> packages.
</p>
<blockquote>
Who doesn't dream about it: Your own programming language, because the syntax and the word are expression! A step continue to go to ascend and from the programming language user to the language creator! This is now possible in PHP, but unfortunately only with minimum documentation.
</blockquote>
<p>
He <a href="http://blog.oncode.info/2007/10/25/eine-eigene-programmiersprache-erschaffen-lexer-und-parser-in-php/">provides an example</a> of the Lexer/Generator in action - handling a simple mathematical operation. The execution code is first with the Lexer definition file and the code for the parser following. Lastly, he has included the code to make things work - passing the test string into his custom Lexer which is passed off to the Parser and a value returned.
</p>]]></description>
      <pubDate>Fri, 02 Nov 2007 11:12:00 -0500</pubDate>
    </item>
  </channel>
</rss>
