Login  |  Packages  |  Support  |  Bugs
Top Level :: Tools and Utilities :: zephir_parser :: 2.0.1

zephir_parser 2.0.1

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.1
(stable)
### Added
- Added grammar rule for `<static>` cast and method return type. `STATIC` is a reserved keyword token, so `<static>` never reached the existing `LESS IDENTIFIER GREATER` cast rule and was rejected as a syntax error. A dedicated `LESS STATIC GREATER` production now emits the literal `"static"` string in the same AST shape that `<self>` (and any other `<IDENTIFIER>` cast) produces, so the downstream compiler picks it up with no further parser-level changes. Enables `public function foo() -> <static>` for late-static-binding return types in Zephir
([zephir-lang/zephir#2505](https://github.com/zephir-lang/zephir/issues/2505)).

[ Latest Tarball ] [ Changelog ] [ View Statistics ]
[ Browse Source ] [ Package Bugs ]

Dependencies for release 2.0.1
PHP Version: PHP version 8.5.99 or older
PHP Version: PHP 7.0.0 or newer
PEAR Package: PEAR 1.10 or newer
PRIVACY POLICY  |  CREDITS
Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed May 20 12:00:02 2026 UTC
Bandwidth and hardware provided by: pair Networks