Lexical Analysis library for PHP (Lexer, Tokenizer, Parser, Generator)
Warning
This project is not finished yet, work in progress.
You can install the package via composer:
composer require ghostwriter/syntax
// work in progress
# This is for development; dogfooding to parse and generate the AST for test fixture files.
syntax /path/to/file.php
# -s|--save: Save or Update the AST of the PHP file as JSON file ['file.php => file.php.json'] in the same location.
composer test
Please see CHANGELOG.md for more information what has changed recently.
If you discover any security related issues, please email nathanael.esayeas@protonmail.com
instead of using the issue tracker.
The BSD-3-Clause. Please see License File for more information.