/PHP-Parser/test/PhpParser/ |
H A D | ParserTestAbstract.php | 18 $parser->parse('<?php foo'); 25 $parser->parse('<?php use foo as self;'); 32 $parser->parse('<?php /*'); 50 $stmts = $parser->parse($code); 115 $parser->parse('dummy'); 123 $stmts = $parser->parse("<?php $code;"); 185 $stmts = $parser->parse('<?php list(list($x)) = $y; [[$x]] = $y;'); 195 $parser->parse('<?php echo "Foo";');
|
H A D | JsonDecoderTest.php | 17 $stmts = $parser->parse($code);
|
H A D | NodeDumperTest.php | 87 $stmts = $parser->parse($code);
|
H A D | ConstExprEvaluatorTest.php | 12 $expr = $parser->parse('<?php ' . $exprString . ';')[0]->expr;
|
H A D | PrettyPrinterTest.php | 33 $output = canonicalize($prettyPrinter->$method($parser->parse($code))); 195 $oldStmts = $parser->parse($code); 234 $oldStmts = $parser->parse($code);
|
H A D | CodeParsingTest.php | 34 $stmts = $parser->parse($code, $errors);
|
/PHP-Parser/lib/PhpParser/Node/Scalar/ |
H A D | Float_.php | 31 $float = self::parse($str); 45 public static function parse(string $str): float { function in PhpParser\\Node\\Scalar\\Float_
|
H A D | String_.php | 56 $string = self::parse($str, $parseUnicodeEscape); 71 public static function parse(string $str, bool $parseUnicodeEscape = true): string { function in PhpParser\\Node\\Scalar\\String_
|
/PHP-Parser/lib/PhpParser/ |
H A D | Parser.php | 16 public function parse(string $code, ?ErrorHandler $errorHandler = null): ?array; function
|
/PHP-Parser/test/PhpParser/Node/Scalar/ |
H A D | StringTest.php | 11 $nodes = $parser->parse('<?php echo "sequence \x41";'); 41 String_::parse($string)
|
H A D | DNumberTest.php | 12 $nodes = $parser->parse('<?php echo 1_234.56;');
|
H A D | NumberTest.php | 11 $nodes = $parser->parse('<?php echo 1_234;');
|
/PHP-Parser/ |
H A D | UPGRADE-2.0.md | 6 PHP-Parser now requires PHP 5.4 or newer to run. It is however still possible to *parse* PHP 5.2 and 31 …* `ParserFactory::PREFER_PHP7`: Try to parse code as PHP 7. If this fails, try to parse it as PHP … 32 …* `ParserFactory::PREFER_PHP5`: Try to parse code as PHP 5. If this fails, try to parse it as PHP …
|
H A D | UPGRADE-3.0.md | 14 PHP-Parser now requires PHP 5.5 or newer to run. It is however still possible to *parse* PHP 5.2, 50 $stmts = $parser->parse($code); 59 Instead an instance of `ErrorHandler\Collecting` should be passed to the `parse()` method: 66 $stmts = $parser->parse($code, $errorHandler); 76 `PREFER_PHP7` or `PREFER_PHP5`), it will now return the result of the first *non-throwing* parse. As 93 $stmts7 = $parser7->parse($code, $errors7); 96 $stmts5 = $parser5->parse($code, $errors5); 98 // If PHP 7 parse has errors but PHP 5 parse has no errors, use PHP 5 result
|
/PHP-Parser/test/PhpParser/NodeVisitor/ |
H A D | ParentConnectingVisitorTest.php | 12 $ast = (new ParserFactory())->createForNewestSupportedVersion()->parse(
|
H A D | NodeConnectingVisitorTest.php | 14 $ast = (new ParserFactory())->createForNewestSupportedVersion()->parse(
|
H A D | NameResolverTest.php | 485 $stmts = $parser->parse($source); 514 $stmts = $parser->parse($source); 574 $stmts = $parser->parse($code);
|
/PHP-Parser/bin/ |
H A D | php-parse | 58 $stmts = $parser->parse($code, $errorHandler); 68 $stmts = $parser->parse($code);
|
/PHP-Parser/doc/component/ |
H A D | FAQ.markdown | 22 $ast = $parser->parse($code); 44 $ast = $parser->parse($code);
|
H A D | JSON_representation.markdown | 24 $stmts = $parser->parse($code); 139 From the command line, a JSON dump can be obtained using `vendor/bin/php-parse -j file.php`.
|
H A D | Error_handling.markdown | 39 an instance of `ErrorHandler\Collecting` can be passed to the `Parser::parse()` method. A usage exa… 45 $stmts = $parser->parse($code, $errorHandler);
|
/PHP-Parser/tools/fuzzing/ |
H A D | target.php | 104 $stmts = $parser->parse($input); 114 $printedStmts = $parser->parse($printed);
|
/PHP-Parser/test_old/ |
H A D | run.php | 181 $origStmts = $parser->parse($origCode); 209 $ppStmts = $parser->parse($code);
|
/PHP-Parser/doc/ |
H A D | 2_Usage_of_basic_components.markdown | 28 In order to parse code, you first have to create a parser instance: 72 $stmts = $parser->parse($code); 79 A parser instance can be reused to parse multiple files. 158 vendor/bin/php-parse file.php 159 vendor/bin/php-parse "<?php foo();" 234 // parse 235 $stmts = $parser->parse($code); 297 // parse 298 $stmts = $parser->parse($code); 430 // parse [all …]
|
H A D | 0_Introduction.markdown | 26 What can it parse? 41 * Declarations of the form `global $$var[0]` are not supported in PHP 7 and will cause a parse 46 This allows to parse PHP 8.4 source code running on PHP 7.4, for example. This emulation is not
|