Searched refs:file (Results 1 – 17 of 17) sorted by relevance
/PHP-Parser/bin/ |
H A D | php-parse | 4 foreach ([__DIR__ . '/../../../autoload.php', __DIR__ . '/../vendor/autoload.php'] as $file) { 5 if (file_exists($file)) { 6 require $file; 39 foreach ($files as $file) { 40 if ($file === '-') { 43 } else if (strpos($file, '<?php') === 0) { 44 $code = $file; 47 if (!file_exists($file)) { 48 fwrite(STDERR, "File $file does not exist.\n"); 52 $code = file_get_contents($file); [all …]
|
/PHP-Parser/test_old/ |
H A D | run.php | 86 $codeExtractor = function($file, $code) { argument 94 $codeExtractor = function($file, $code) { argument 124 )\.phpt$~x', $file)) { 158 as $file) { 159 if (!$fileFilter($file)) { 164 $origCode = file_get_contents($file); 167 if (null === $origCode = $codeExtractor($file, $origCode)) { 195 echo $file, ":\n Result of format-preserving pretty-print differs\n"; 225 echo $file, ":\n Parse of pretty print failed with message: {$e->getMessage()}\n"; 233 echo $file, ":\n Parse failed with message: {$e->getMessage()}\n"; [all …]
|
/PHP-Parser/grammar/ |
H A D | README.md | 5 * `parser.template`: A `kmyacc` parser prototype file for PHP 11 The `.y` file is a normal grammar in `kmyacc` (`yacc`) style, with some transformations 26 * The `--debug` option enables emission of debug symbols and creates the `y.output` file. 27 * The `--keep-tmp-grammar` option preserves the preprocessed grammar file.
|
H A D | parser.template | 19 /* This is an automatically GENERATED file, which should not be manually edited. 21 * * the grammar file grammar/php.y 22 * * the skeleton file grammar/parser.template
|
/PHP-Parser/test/ |
H A D | bootstrap.php | 27 foreach ($it as $file) { 28 $fileName = $file->getPathname();
|
/PHP-Parser/test/code/parser/ |
H A D | emptyFile.test | 1 Empty file
|
/PHP-Parser/test/code/parser/stmt/namespace/ |
H A D | groupUsePositions.test | 1 Ensure correct file position attributes for group use prefix
|
/PHP-Parser/.github/workflows/ |
H A D | main.yml | 51 ini-file: "development" 68 ini-file: "development" 85 ini-file: "development"
|
/PHP-Parser/doc/component/ |
H A D | Error_handling.markdown | 15 the source code of the parsed file. An example for printing an error: 29 file.
|
H A D | JSON_representation.markdown | 139 From the command line, a JSON dump can be obtained using `vendor/bin/php-parse -j file.php`.
|
H A D | Pretty_printing.markdown | 25 array of statements and produces a full PHP file, including opening `<?php`.
|
H A D | Lexer.markdown | 65 positioning attributes to allow mapping nodes back to lines, tokens or file offsets:
|
H A D | Walking_the_AST.markdown | 215 If you are looking for all class declarations in a file (and assuming you're not interested in
|
/PHP-Parser/lib/PhpParser/ |
H A D | ConstExprEvaluator.php | 67 set_error_handler(function ($num, $str, $file, $line) { 68 throw new \ErrorException($str, 0, $num, $file, $line);
|
/PHP-Parser/doc/ |
H A D | 2_Usage_of_basic_components.markdown | 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 263 The `prettyPrintFile()` method can be used to print an entire file. This will include the opening `… 425 foreach ($files as $file) { 427 // read the file that should be converted 428 $code = file_get_contents($file->getPathName()); 439 // write the converted file to the target directory 441 substr_replace($file->getPathname(), $outDir, 0, strlen($inDir)),
|
H A D | 0_Introduction.markdown | 16 a file. On the other hand, the token stream is much harder to deal with for more complex analysis.
|
/PHP-Parser/ |
H A D | CHANGELOG.md | 208 * The `php-parse` binary now accepts `-` as the file name, in which case it will read from stdin. 536 * Added end line, token position and file position information for comments. 795 nodes. Please see the UPGRADE-4.0 file for an exhaustive list of affected nodes and some notes on 1122 end of a file (without a following node with which they could otherwise be associated). 1131 * Added start file offset information to `Comment` nodes. 1162 * A shebang line like `#!/usr/bin/env php` is now allowed at the start of a namespaced file. 1166 * The `prettyPrintFile()` method will not strip an opening `<?php` if the file starts with a
|
Completed in 39 milliseconds