<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=PHP_ParserGenerator&amp;PHPSESSID=6sh8hov6085gl1gd4s43b0k8h0</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/16703" />
      <rdf:li rdf:resource="http://pear.php.net/bug/13416" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12730" />
      <rdf:li rdf:resource="http://pear.php.net/bug/12652" />
      <rdf:li rdf:resource="http://pear.php.net/bug/11647" />
      <rdf:li rdf:resource="http://pear.php.net/bug/11361" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/16703">
      <title>PHP_ParserGenerator: Bug 16703 [Open] terminals starting with Z letter cause problems</title>
      <link>http://pear.php.net/bugs/16703</link>
      <content:encoded><![CDATA[<pre>PHP_ParserGenerator Bug
Reported by taras
2009-10-15T17:57:57+00:00
PHP: Irrelevant OS:  Package Version: 0.1.5

Description:
------------
Terminals starting with Z letter are not created and could block creation of other terminals.

Result could be:
Fatal error: Uncaught exception 'Exception' with message 'state has no actions associated' in E:\xampp\php\PEAR\PHP\ParserGenerator\Data.php:669
Stack trace:
#0 E:\xampp\php\PEAR\PHP\ParserGenerator.php(502): PHP_ParserGenerator_Data-&gt;FindActions()

or while testing parser together with lexer generated by PHP_LexerGenerator , some constants could not be seen (constants representing not created terminals):
------------------------------- Parsing -------------------------------
Fatal error: Undefined class constant ...

Logical error is in line 474 in file ParserGenerator.php 
for($i = 1; ord($lem-&gt;symbols[$i]-&gt;name[0]) &lt; ord ('Z'); $i++);
should be:
for($i = 1; ord($lem-&gt;symbols[$i]-&gt;name[0]) &lt;= ord ('Z'); $i++);

Test script:
---------------
grammar in file .y
/* The common stuff */
start(res) 				::=	expr.
expr 					::= A.
expr					::= Z.
expr					::= B.
expr					::= C.
expr					::= D.

Expected result:
----------------
should create in parser class constants
  const TP_A                              =  1;
  const TP_Z                              =  1;
  const TP_B                              =  1;
  const TP_C                              =  1;
  const TP_D                              =  1;

Actual result:
--------------
creates parser class with such constants:
    const TP_A                              =  1;</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_ParserGenerator Bug
Reported by taras
2009-10-15T17:57:57+00:00
PHP: Irrelevant OS:  Package Version: 0.1.5

Description:
------------
Terminals starting with Z letter are not created and could block creation of other terminals.

Result could be:
Fatal error: Uncaught exception 'Exception' with message 'state has no actions associated' in E:\xampp\php\PEAR\PHP\ParserGenerator\Data.php:669
Stack trace:
#0 E:\xampp\php\PEAR\PHP\ParserGenerator.php(502): PHP_ParserGenerator_Data-&gt;FindActions()

or while testing parser together with lexer generated by PHP_LexerGenerator , some constants could not be seen (constants representing not created terminals):
------------------------------- Parsing -------------------------------
Fatal error: Undefined class constant ...

Logical error is in line 474 in file ParserGenerator.php 
for($i = 1; ord($lem-&gt;symbols[$i]-&gt;name[0]) &lt; ord ('Z'); $i++);
should be:
for($i = 1; ord($lem-&gt;symbols[$i]-&gt;name[0]) &lt;= ord ('Z'); $i++);

Test script:
---------------
grammar in file .y
/* The common stuff */
start(res) 				::=	expr.
expr 					::= A.
expr					::= Z.
expr					::= B.
expr					::= C.
expr					::= D.

Expected result:
----------------
should create in parser class constants
  const TP_A                              =  1;
  const TP_Z                              =  1;
  const TP_B                              =  1;
  const TP_C                              =  1;
  const TP_D                              =  1;

Actual result:
--------------
creates parser class with such constants:
    const TP_A                              =  1;</pre>]]></description>
      <dc:date>2009-10-15T18:02:55+00:00</dc:date>
      <dc:creator>tkostyk &amp;#x61;&amp;#116; fidointelligence &amp;#x64;&amp;#111;&amp;#x74; pl</dc:creator>
      <dc:subject>PHP_ParserGenerator Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/13416">
      <title>PHP_ParserGenerator: Feature/Change Request 13416 [Open] Provide an option to choose the parser template file</title>
      <link>http://pear.php.net/bugs/13416</link>
      <content:encoded><![CDATA[<pre>PHP_ParserGenerator Feature/Change Request
Reported by rix0r
2008-03-17T15:03:15+00:00
PHP: 5.2.3 OS: Windows XP Package Version: CVS

Description:
------------
Please provide an option for the parser generator to use a different template file than the standard Lempar.php. This allows better customisation of the generated parser by the user.</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_ParserGenerator Feature/Change Request
Reported by rix0r
2008-03-17T15:03:15+00:00
PHP: 5.2.3 OS: Windows XP Package Version: CVS

Description:
------------
Please provide an option for the parser generator to use a different template file than the standard Lempar.php. This allows better customisation of the generated parser by the user.</pre>]]></description>
      <dc:date>2008-03-17T15:09:49+00:00</dc:date>
      <dc:creator>rix0rrr &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_ParserGenerator Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12730">
      <title>PHP_ParserGenerator: Bug 12730 [Open] Generated Parser destructor *can* loop forever</title>
      <link>http://pear.php.net/bugs/12730</link>
      <content:encoded><![CDATA[<pre>PHP_ParserGenerator Bug
Reported by urkle
2007-12-19T12:58:34+00:00
PHP: 5.2.4 OS: Fedora 8 x86_64 Package Version: 0.1.5

Description:
------------
The __destructor() method that is created from Lempar.php has the ability to loop forever if yyidx never gets updated (ie. Error VERY early on).

Proposed fix.

Initialize public $yyidx = -1 to fix (line 248 in Lempar.php)</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_ParserGenerator Bug
Reported by urkle
2007-12-19T12:58:34+00:00
PHP: 5.2.4 OS: Fedora 8 x86_64 Package Version: 0.1.5

Description:
------------
The __destructor() method that is created from Lempar.php has the ability to loop forever if yyidx never gets updated (ie. Error VERY early on).

Proposed fix.

Initialize public $yyidx = -1 to fix (line 248 in Lempar.php)</pre>]]></description>
      <dc:date>2007-12-19T12:58:34+00:00</dc:date>
      <dc:creator>eddie &amp;#x61;&amp;#116; omegaware &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_ParserGenerator Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/12652">
      <title>PHP_ParserGenerator: Bug 12652 [Open] Generated ParseryyToken class has broken __toString()</title>
      <link>http://pear.php.net/bugs/12652</link>
      <content:encoded><![CDATA[<pre>PHP_ParserGenerator Bug
Reported by urkle
2007-12-10T13:28:01+00:00
PHP: 5.2.5 OS: Fedora 8 x86_64 Package Version: 0.1.5

Description:
------------
The __toString() function (in Lempar.php) tries to return an undefined property $this-&gt;_string instead of trying to return $this-&gt;string.

CVS HEAD has the same issue.</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_ParserGenerator Bug
Reported by urkle
2007-12-10T13:28:01+00:00
PHP: 5.2.5 OS: Fedora 8 x86_64 Package Version: 0.1.5

Description:
------------
The __toString() function (in Lempar.php) tries to return an undefined property $this-&gt;_string instead of trying to return $this-&gt;string.

CVS HEAD has the same issue.</pre>]]></description>
      <dc:date>2008-02-09T04:39:58+00:00</dc:date>
      <dc:creator>eddie &amp;#x61;&amp;#116; omegaware &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_ParserGenerator Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/11647">
      <title>PHP_ParserGenerator: Bug 11647 [Assigned] substitution of @X works incorrectly</title>
      <link>http://pear.php.net/bugs/11647</link>
      <content:encoded><![CDATA[<pre>PHP_ParserGenerator Bug
Reported by r0vert
2007-07-19T14:24:21+00:00
PHP: Irrelevant OS:  Package Version: CVS

Description:
------------
If using @X for the code of a rule it should be use the token number instead of the token value.


Test script:
---------------
match ::= TYPE(A) TEXT(T). { doSomething(@X, T) }

Expected result:
----------------
doSomething($this-&gt;yystack[$this-&gt;yyidx + -1]-&gt;major, $this-&gt;yystack[$this-&gt;yyidx + 0]-&gt;minor)

Actual result:
--------------
doSomething($this-&gt;yystack[$this-&gt;yyidx + -1]-&gt;minor, $this-&gt;yystack[$this-&gt;yyidx + 0]-&gt;minor)</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_ParserGenerator Bug
Reported by r0vert
2007-07-19T14:24:21+00:00
PHP: Irrelevant OS:  Package Version: CVS

Description:
------------
If using @X for the code of a rule it should be use the token number instead of the token value.


Test script:
---------------
match ::= TYPE(A) TEXT(T). { doSomething(@X, T) }

Expected result:
----------------
doSomething($this-&gt;yystack[$this-&gt;yyidx + -1]-&gt;major, $this-&gt;yystack[$this-&gt;yyidx + 0]-&gt;minor)

Actual result:
--------------
doSomething($this-&gt;yystack[$this-&gt;yyidx + -1]-&gt;minor, $this-&gt;yystack[$this-&gt;yyidx + 0]-&gt;minor)</pre>]]></description>
      <dc:date>2007-08-20T09:08:16+00:00</dc:date>
      <dc:creator>rovert &amp;#x61;&amp;#116; wowway &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHP_ParserGenerator Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/11361">
      <title>PHP_ParserGenerator: Feature/Change Request 11361 [Open] better help message</title>
      <link>http://pear.php.net/bugs/11361</link>
      <content:encoded><![CDATA[<pre>PHP_ParserGenerator Feature/Change Request
Reported by cweiske
2007-06-19T02:41:49+00:00
PHP: Irrelevant OS:  Package Version: 0.1.5

Description:
------------
When executing &quot;phplemon --help&quot;, an &quot;undefined option -h&quot; message is shown. A newline should be added after it.

Further, a proper help message should be available like &quot;phplemon [options] file.lmn\nphplemon generates bla bla&quot; and then the options listed.</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHP_ParserGenerator Feature/Change Request
Reported by cweiske
2007-06-19T02:41:49+00:00
PHP: Irrelevant OS:  Package Version: 0.1.5

Description:
------------
When executing &quot;phplemon --help&quot;, an &quot;undefined option -h&quot; message is shown. A newline should be added after it.

Further, a proper help message should be available like &quot;phplemon [options] file.lmn\nphplemon generates bla bla&quot; and then the options listed.</pre>]]></description>
      <dc:date>2007-06-19T02:45:27+00:00</dc:date>
      <dc:creator>cweiske &amp;#x61;&amp;#116; php &amp;#x64;&amp;#111;&amp;#x74; net</dc:creator>
      <dc:subject>PHP_ParserGenerator Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
