PhpParser\ParserAbstract::__construct PHP Method

__construct() public method

Creates a parser instance.
public __construct ( Lexer $lexer, array $options = [] )
$lexer Lexer A lexer
$options array Options array. Currently no options are supported.
    public function __construct(Lexer $lexer, array $options = array()) {
        $this->lexer = $lexer;
        $this->errors = array();

        if (isset($options['throwOnError'])) {
            throw new \LogicException(
                '"throwOnError" is no longer supported, use "errorHandler" instead');
        }
    }