glayzzle / glayzzle/php-parser
How to turn ast into PHP code
Open
- Dominant language
- JavaScript
- Stars
- 565
- Forks
- 75
- PR merge metrics
- No merged PRs in 30d
Description
const parser = new engine({
// some options :
parser: {
extractDoc: true,
php7: true,
},
ast: {
withPositions: true,
},
});
// Load a static file (Note: this file should exist on your computer)
const phpcode = fs.readFileSync("./1.php", {
encoding: "utf-8"
});
let ast=parser.parseCode(phpcode);
----------------------
now:
How to turn ast into PHP code?
Contributor guide
Assessment
This issue has not been assessed yet.