https://github.com/ghostwriter/syntax
[WIP]Lexical Analysis library for PHP (Tokenizer, Lexer, Parser, Generator)
https://github.com/ghostwriter/syntax
generator ghostwriter lexer parser php syntax tokenizer
Last synced: 3 months ago
JSON representation
[WIP]Lexical Analysis library for PHP (Tokenizer, Lexer, Parser, Generator)
- Host: GitHub
- URL: https://github.com/ghostwriter/syntax
- Owner: ghostwriter
- License: bsd-3-clause
- Created: 2022-10-15T21:45:58.000Z (over 2 years ago)
- Default Branch: 0.1.x
- Last Pushed: 2025-02-07T06:05:43.000Z (3 months ago)
- Last Synced: 2025-02-07T06:24:23.585Z (3 months ago)
- Topics: generator, ghostwriter, lexer, parser, php, syntax, tokenizer
- Language: PHP
- Homepage: https://github.com/ghostwriter/syntax
- Size: 395 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Syntax
[](https://github.com/sponsors/ghostwriter)
[](https://github.com/ghostwriter/syntax/actions/workflows/automation.yml)
[](https://www.php.net/supported-versions)
[](https://packagist.org/packages/ghostwriter/syntax)Lexical Analysis library for PHP (Lexer, Tokenizer, Parser, Generator)
> **Warning**
>
> This project is not finished yet, work in progress.## Installation
You can install the package via composer:
``` bash
composer require ghostwriter/syntax
```## Usage
```php
// work in progress
```## Commands
```bash
# 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.
```## Testing
``` bash
composer test
```## Changelog
Please see [CHANGELOG.md](./CHANGELOG.md) for more information what has changed recently.
## Security
If you discover any security related issues, please email `[email protected]` instead of using the issue tracker.
## Support
[[`Become a GitHub Sponsor`](https://github.com/sponsors/ghostwriter)]
## Credits
- [Nathanael Esayeas](https://github.com/ghostwriter)
- [All Contributors](https://github.com/ghostwriter/syntax/contributors)## License
The BSD-3-Clause. Please see [License File](./LICENSE) for more information.