Searched refs:Parser (Results 1 – 25 of 33) sorted by relevance
12
/PHP-Parser/lib/PhpParser/ |
H A D | ParserFactory.php | 5 use PhpParser\Parser\Php7; 6 use PhpParser\Parser\Php8; 14 public function createForVersion(PhpVersion $version): Parser { 31 public function createForNewestSupportedVersion(): Parser { 39 public function createForHostVersion(): Parser {
|
H A D | Parser.php | 5 interface Parser { interface
|
/PHP-Parser/test/PhpParser/ |
H A D | ParserFactoryTest.php | 8 use PhpParser\Parser\Php7; 9 use PhpParser\Parser\Php8; 15 $this->assertInstanceOf(Parser::class, $factory->createForHostVersion());
|
H A D | JsonDecoderTest.php | 16 $parser = new Parser\Php7(new Lexer());
|
H A D | CodeParsingTest.php | 21 public function createParser(?string $version): Parser { 29 public function getParseOutput(Parser $parser, $code, array $modes) {
|
H A D | ConstExprEvaluatorTest.php | 11 $parser = new Parser\Php7(new Lexer());
|
H A D | NodeAbstractTest.php | 554 $parser = new Parser\Php7(new Lexer());
|
/PHP-Parser/ |
H A D | UPGRADE-2.0.md | 1 Upgrading from PHP-Parser 1.x to 2.0 6 PHP-Parser now requires PHP 5.4 or newer to run. It is however still possible to *parse* PHP 5.2 and 11 Parser instances should now be created through the `ParserFactory`. Old direct instantiation code 17 use PhpParser\Parser, PhpParser\Lexer; 18 $parser = new Parser(new Lexer\Emulative); 48 ### Rename of the `PhpParser\Parser` class 50 `PhpParser\Parser` is now an interface, which is implemented by `Parser\Php5`, `Parser\Php7` and 51 `Parser\Multiple`. Parser tokens are now defined in `Parser\Tokens`. If you use the `ParserFactory`
|
H A D | UPGRADE-1.0.md | 1 Upgrading from PHP-Parser 0.9 to 1.0 6 PHP-Parser now requires PHP 5.3 or newer to run. It is however still possible to *parse* PHP 5.2 so… 25 $parser = new \PhpParser\Parser(new PhpParser\Lexer\Emulative); 30 the autoloader will not be able to load `PHPParser\Parser` or other case variants. 98 project built on top of PHP-Parser instead. 121 [code_gen]: https://github.com/nikic/PHP-Parser/wiki/Projects-using-the-PHP-Parser#code-generation
|
H A D | README.md | 1 PHP Parser 4 …//coveralls.io/repos/github/nikic/PHP-Parser/badge.svg?branch=master)](https://coveralls.io/github… 231 [doc_3_x]: https://github.com/nikic/PHP-Parser/tree/3.x/doc 232 [doc_4_x]: https://github.com/nikic/PHP-Parser/tree/4.x/doc 233 [doc_master]: https://github.com/nikic/PHP-Parser/tree/master/doc
|
H A D | UPGRADE-3.0.md | 1 Upgrading from PHP-Parser 2.x to 3.0 14 PHP-Parser now requires PHP 5.5 or newer to run. It is however still possible to *parse* PHP 5.2, 58 Both the `throwOnError` option and the `getErrors()` method have been removed in PHP-Parser 3.0. 89 $parser7 = new Parser\Php7($lexer); 90 $parser5 = new Parser\Php5($lexer); 139 * `Parser::getErrors()`. Use `ErrorHandler\Collecting` instead.
|
H A D | UPGRADE-5.0.md | 1 Upgrading from PHP-Parser 4.x to 5.0 6 PHP-Parser now requires PHP 7.4 or newer to run. It is however still possible to *parse* code for o… 28 * The `PhpParser\Parser\Php5` class has been removed. 29 …* The `PhpParser\Parser\Multiple` class has been removed. While not strictly related to PHP 5 supp… 40 … `creatForHostVersion()` are available since PHP-Parser 4.18.0, to allow libraries to support PHP-… 159 The `Name::getParts()` method is available since PHP-Parser 4.16.0, to allow libraries to support 160 PHP-Parser 4 and 5 at the same time more easily. 510 $parser = new Parser\Php7($lexer);
|
H A D | UPGRADE-4.0.md | 1 Upgrading from PHP-Parser 3.x to 4.0 6 PHP-Parser now requires PHP 7.0 or newer to run. It is however still possible to *parse* PHP 5.2-5.6
|
H A D | CHANGELOG.md | 79 * Added check to detect use of PHP-Parser with libraries that define `T_*` compatibility tokens 141 * The `Parser::getLexer()` method has been replaced by `Parser::getTokens()`. 241 * PHP 7.1 is now required to run PHP-Parser. 254 * Added `Parser::getLexer()` method. 648 existing doc strings. PHP-Parser will now use the new interpretation. 994 * Added optional `ErrorHandler` argument to `Parser::parse()`, `Lexer::startLexing()` and 1006 * Due to the error handling changes, the `Parser` interface and `Lexer` API have changed. 1038 The following changes are also part of PHP-Parser 2.1.1: 1228 * `PhpParser\Parser` is now an interface, implemented by `Parser\Php5`, `Parser\Php7` and 1230 * Token constants are now defined on `PhpParser\Parser\Tokens` rather than `PhpParser\Parser`. [all …]
|
/PHP-Parser/test/PhpParser/Parser/ |
H A D | Php7Test.php | 3 namespace PhpParser\Parser;
|
H A D | Php8Test.php | 3 namespace PhpParser\Parser;
|
/PHP-Parser/tools/fuzzing/ |
H A D | target.php | 10 if (class_exists(PhpParser\Parser\Php7::class)) { 25 $parser = new PhpParser\Parser\Php7($lexer);
|
/PHP-Parser/doc/component/ |
H A D | Performance.markdown | 13 can expect that code using PHP-Parser will be approximately *five times slower*. 38 Many objects in this project are designed for reuse. For example, one `Parser` object can be used to
|
H A D | Name_resolution.markdown | 6 import table state, as well the type of the referenced symbol. PHP-Parser implements name 34 the global `\strlen()`. Because PHP-Parser does not have the necessary context to decide this,
|
H A D | Error_handling.markdown | 39 an instance of `ErrorHandler\Collecting` can be passed to the `Parser::parse()` method. A usage exa…
|
H A D | Constant_expression_evaluation.markdown | 15 PHP-Parser supports evaluation of such constant expressions through the `ConstExprEvaluator` class:
|
H A D | Lexer.markdown | 6 by the lexer can then be retrieved using `PhpParser\Parser::getTokens()`. 62 using `Parser::getTokens()`.
|
/PHP-Parser/test/PhpParser/NodeVisitor/ |
H A D | NameResolverTest.php | 484 $parser = new PhpParser\Parser\Php7(new PhpParser\Lexer\Emulative()); 513 $parser = new PhpParser\Parser\Php7(new PhpParser\Lexer\Emulative()); 570 $parser = new PhpParser\Parser\Php8(new PhpParser\Lexer\Emulative());
|
/PHP-Parser/doc/ |
H A D | 0_Introduction.markdown | 32 These are illegal in PHP 8, but are legal in earlier versions. However, PHP-Parser does not 35 PHP-Parser 4.x had full support for parsing PHP 5. PHP-Parser 5.x has only limited support, with the
|
/PHP-Parser/grammar/ |
H A D | parser.template | 8 namespace PhpParser\Parser;
|
Completed in 23 milliseconds
12