| Package Information |
| Summary |
Zephir code parser. |
| Maintainers |
Anton Vasiliev <
anton at phalcon dot io >
(lead)
[wishlist]
[details]
|
| License |
MIT |
| Description |
Zephir Parser is a code parser, delivered as a C extension for the PHP language. |
| Homepage |
https://github.com/zephir-lang/php-zephir-parser
|
Release notes
Version 2.0.0
(stable)
|
Sun, Apr 05, 2026 - Zephir Parser 2.0.0
= Added:
- Added support for array destructuring assignment syntax `let [a, b, c] = expr;`, matching PHP 7.1+ short list convention. Supports skipped slots (`let [a, , c] = arr;`) and all-caps variable names. Parser-only; compiler code generation tracked in zephir#2496 (#18) - Added `docs/grammar.ebnf` containing the complete Zephir grammar in EBNF notation for railroad diagram visualization (#106)
= Fixed:
- All-uppercase identifiers (e.g. `RBF`, `LU`, `A`) are now accepted as class names, method names, function names, variable names, property names, and parameters. Previously the scanner emitted XX_T_CONSTANT for any all-caps token and grammar rules for name positions only accepted XX_T_IDENTIFIER, causing a syntax error (#39) |