枪手 / 语法
PHP的词法分析库
dev-main
2024-07-17 19:54 UTC
Requires
- php: >=8.3
- ghostwriter/case-converter: ^1.0.0
- ghostwriter/collection: ^2.0.0
- ghostwriter/container: ^4.0.2
- ghostwriter/event-dispatcher: ^5.0.2
- ghostwriter/json: ^3.0.0
- ghostwriter/option: ^1.5.1
- ghostwriter/result: ^1.3.0
Requires (Dev)
- ghostwriter/coding-standard: dev-main
This package is auto-updated.
Last update: 2024-09-17 20:15:33 UTC
README
PHP的词法分析库(词法分析器、标记化器、解析器、生成器)
警告
该项目尚未完成,仍在开发中。
安装
您可以通过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
变更日志
有关最近更改的更多信息,请参阅CHANGELOG.md。
安全
如果您发现任何与安全相关的问题,请通过电子邮件nathanael.esayeas@protonmail.com
联系,而不是使用问题跟踪器。
支持
致谢
许可
BSD-3-Clause许可。有关更多信息,请参阅许可文件。