Comments (4)
yield from
also has incorrect precedence.
from php-langspec.
Also the yield
precedence is not correctly specified, in particular regarding the interaction with arrays, that is [yield "foo" => "bar"]
, which is [(yield "foo" => "bar")]
rather than [(yield "foo") => "bar"]
.
from php-langspec.
Precedence fixed for by-ref assign (1058a50), yield from (b0dadd5) and print (63d72a6).
The issue with the yield vs array literal precedence remains, and I'm not sure if there's any reasonable way to specify that in grammar. I didn't manage to get this to work without precedence annotations in the parser.
from php-langspec.
Opened #235 for the yield issue, closing this one.
from php-langspec.
Related Issues (20)
- Versions/Editions are needed HOT 1
- Should `$a instanceof $b instanceof $c` be permitted in implementation/specification? HOT 3
- Array initializer does not include in ',' HOT 1
- isset variable list may include trialing ',' HOT 3
- use function from namespace is not tested
- Describe list expression differently to remove some constraits
- Unicode codepoints are used in the specification, but the specification does not define encoding HOT 15
- yield and array initializer precedence not specified correctly
- print-expression production rule not used? HOT 1
- string-variable production rule not used? HOT 1
- Specify when imported names become available
- Misleading conversion float to int HOT 1
- No definition of lambda syntax HOT 1
- Add curl OOP-style to PHP 8 HOT 1
- Update statement specification for the "throw expression" rfc?
- Support changes in php 8.0 syntax? HOT 1
- primary-expression and assignment-expression not being used HOT 2
- Test issue
- The optional methods and properties overriding rules are required.
- Fix build failure due to Xdebug changes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-langspec.