Home
last modified time | relevance | path

Searched refs:parse (Results 1 – 25 of 35) sorted by relevance

12

/PHP-Parser/test/PhpParser/
H A DParserTestAbstract.php18 $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 DJsonDecoderTest.php17 $stmts = $parser->parse($code);
H A DNodeDumperTest.php87 $stmts = $parser->parse($code);
H A DConstExprEvaluatorTest.php12 $expr = $parser->parse('<?php ' . $exprString . ';')[0]->expr;
H A DPrettyPrinterTest.php33 $output = canonicalize($prettyPrinter->$method($parser->parse($code)));
195 $oldStmts = $parser->parse($code);
234 $oldStmts = $parser->parse($code);
H A DCodeParsingTest.php34 $stmts = $parser->parse($code, $errors);
/PHP-Parser/lib/PhpParser/Node/Scalar/
H A DFloat_.php31 $float = self::parse($str);
45 public static function parse(string $str): float { function in PhpParser\\Node\\Scalar\\Float_
H A DString_.php56 $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 DParser.php16 public function parse(string $code, ?ErrorHandler $errorHandler = null): ?array; function
/PHP-Parser/test/PhpParser/Node/Scalar/
H A DStringTest.php11 $nodes = $parser->parse('<?php echo "sequence \x41";');
41 String_::parse($string)
H A DDNumberTest.php12 $nodes = $parser->parse('<?php echo 1_234.56;');
H A DNumberTest.php11 $nodes = $parser->parse('<?php echo 1_234;');
/PHP-Parser/
H A DUPGRADE-2.0.md6 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 DUPGRADE-3.0.md14 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 DParentConnectingVisitorTest.php12 $ast = (new ParserFactory())->createForNewestSupportedVersion()->parse(
H A DNodeConnectingVisitorTest.php14 $ast = (new ParserFactory())->createForNewestSupportedVersion()->parse(
H A DNameResolverTest.php485 $stmts = $parser->parse($source);
514 $stmts = $parser->parse($source);
574 $stmts = $parser->parse($code);
/PHP-Parser/bin/
H A Dphp-parse58 $stmts = $parser->parse($code, $errorHandler);
68 $stmts = $parser->parse($code);
/PHP-Parser/doc/component/
H A DFAQ.markdown22 $ast = $parser->parse($code);
44 $ast = $parser->parse($code);
H A DJSON_representation.markdown24 $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 DError_handling.markdown39 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 Dtarget.php104 $stmts = $parser->parse($input);
114 $printedStmts = $parser->parse($printed);
/PHP-Parser/test_old/
H A Drun.php181 $origStmts = $parser->parse($origCode);
209 $ppStmts = $parser->parse($code);
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown28 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 D0_Introduction.markdown26 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

Completed in 20 milliseconds

12