Fix example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343094 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Anatol Belski 2017-09-17 10:14:28 +00:00
parent 76f007a25f
commit 3e159c5b46

View file

@ -124,7 +124,7 @@ foreach ($exp as $in) {
$p->consume($in, $lex);
while (Parser::ACTION_ERROR != $p->action && Parser::ACTION_ACCEPT != $p->action) {
switch ($act) {
switch ($p->action) {
case Parser::ACTION_ERROR:
throw new ParserException("Parser error");
break;