Releases: xp-framework/ast
Releases · xp-framework/ast
7.1.1: Yield expression fixes
- Fixed
yield
without expression in various situations - @thekid
7.1.0: PHP enum support
- Merged PR #23: Add syntactic support for PHP 8.1 enums. Implementation
in the compiler is in pull request xp-framework/compiler#106
(@thekid)
7.0.4: Standalone operator fix
- Fixed Call to undefined method ::emitoperator() caused by standalone
operators, see xp-framework/compiler#105
(@thekid)
7.0.3: Match expressions fix
- Fixed children() accessor for
match
expressions and conditions, see
xp-framework/compiler#101
(@thekid) - Fixed PHP 8.1 compatiblity by ensuring we do not pass NULL to strlen()
(@thekid)
7.0.2: Argument parser fix
- Fixed argument parser to queue correctly when handling ambiguity between
named arguments and global constants (see xp-framework/compiler#98)
(@thekid)
7.0.1: Braces fix
- Fixed xp-framework/compiler#98:
(fstat(STDOUT))
causes a parse error
(@thekid)
7.0.0: Extended match statement, cleanup & performance
- Fixed multiple semicolons yielding syntax errors, skip them instead
(@thekid) - Removed support for using curly braces as offset (e.g.
$value{0}
)
(@thekid) - Merged PR #22: Stream tokens directly instead of using if/else cascade
(@thekid) - Merged PR #18: Allow match without expression:
match { ... }
. See
https://wiki.php.net/rfc/match_expression_v2#allow_dropping_true
(@thekid) - Merged PR #17: Refactor parsing to allow blocks anywhere an expression
is allowed. This not only allowsfn() => { ... }
but also using blocks
inmatch
expressions.
(@thekid) - Merged PR #21: Remove legacy XP annotations (
#[@annotation]
) - @thekid - Merged PR #19: Remove support for Hack language annotations - @thekid
- Merged PR #20: Remove transformations API - @thekid
6.1.0: Non-capturing catches
- Added support for non-capturing catches, see this PHP 8 RFC:
https://wiki.php.net/rfc/non-capturing_catches
(@thekid)
6.0.0: Omit start tag
5.4.0: Deprecate hacklang style annotations
- Merged PR #9: Deprecate hacklang-style annotations in favor PHP 8
attributes. This is step 2 of xp-framework/compiler#86
(@thekid)