diff --git a/reference/parle/examples.xml b/reference/parle/examples.xml index f4d91794e4..190d93da85 100644 --- a/reference/parle/examples.xml +++ b/reference/parle/examples.xml @@ -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;