Lines Matching refs:parse
28 In order to parse code, you first have to create a parser instance:
52 Subsequently, you can pass PHP code (including the opening `<?php` tag) to the `parse()` method in
72 $stmts = $parser->parse($code);
79 A parser instance can be reused to parse multiple files.
154 You can also use the `php-parse` script to obtain such a node dump by calling it either with a file
158 vendor/bin/php-parse file.php
159 vendor/bin/php-parse "<?php foo();"
234 // parse
235 $stmts = $parser->parse($code);
257 As you can see, the source code was first parsed using `PhpParser\Parser->parse()`, then changed an…
297 // parse
298 $stmts = $parser->parse($code);
430 // parse
431 $stmts = $parser->parse($code);