Lines Matching refs:parser
36 * `void` and `iterable` types are now stored as strings if the PHP 7 parser is used. Previously
42 creating the parser, while collected errors were retrieved using the `getErrors()` method:
46 $parser = (new ParserFactory)->create(ParserFactor::ONLY_PHP7, $lexer, [
50 $stmts = $parser->parse($code);
51 $errors = $parser->getErrors();
63 $parser = (new ParserFactory)->create(ParserFactor::ONLY_PHP7, $lexer);
66 $stmts = $parser->parse($code, $errorHandler);
73 #### Multiple parser fallback in error recovery mode
75 As a result of this change, if a `Multiple` parser is used (e.g. through the `ParserFactory` using
77 parsing never throws in error recovery mode, the result from the first parser will always be
80 The PHP 7 parser is a superset of the PHP 5 parser, with the exceptions that `=& new` and
82 parser will be able to recover from the error in both cases. For this reason, this change will
125 constructors into the parser. This allows recovery from such errors, as well as representing the
143 * `throwOnError` parser option. Use `ErrorHandler\Collecting` instead.