Expression |
Result |
';
foreach (explode("\n", $exprs) as $expr) {
if ('' === $expr) {
continue;
}
try {
$parser->parse(new PHPParser_Lexer('' . $expr . ' | PASS | ';
} catch (PHPParser_Error $e) {
echo '' . $expr . ' | FAIL |
';
echo '' . $e->getMessage() . ' |
';
}
}
echo '';