Lines Matching refs:code
6 This is a PHP parser written in PHP. Its purpose is to simplify static code analysis and
18 * Parsing PHP 7, and PHP 8 code into an abstract syntax tree (AST).
19 * Invalid code can be parsed into a partial AST.
22 * Converting an AST back to PHP code.
27 * Builders to simplify AST construction for code generation.
37 Parse some PHP code into an AST and dump the result in human-readable form:
45 $code = <<<'CODE'
56 $ast = $parser->parse($code);
168 Finally, we can convert the new AST back to PHP code:
177 This gives us our original code, minus the `var_dump()` call inside the function:
208 * Converting AST back to PHP code
210 * Formatting-preserving code transformations
218 * Error recovery (parsing of syntactically incorrect code)