메소드 | 설명 | |
---|---|---|
__construct ( array $parsers ) | Create a parser which will try multiple parsers in an order of preference. | |
parse ( $code, PhpParser\ErrorHandler $errorHandler = null ) |
메소드 | 설명 | |
---|---|---|
tryParse ( PhpParser\Parser $parser, PhpParser\ErrorHandler $errorHandler, $code ) |
public __construct ( array $parsers ) | ||
$parsers | array |
public parse ( $code, PhpParser\ErrorHandler $errorHandler = null ) | ||
$errorHandler | PhpParser\ErrorHandler |