Comments (3)
There is no assignment
production, did you mean variable
? That would be better than what we have right now, though it's not entirely correct. The RHS of instanceof is a "new variable", which is a slightly restricted form of "variable", which is currently not the grammar :/
from php-langspec.
If I remember PHP's grammar correctly, "new variable" was actually very restricted. To the point where it is basically just something like:
instanceof-type-designator:
qualified-name
new-variable
new-variable
simple-variable
qualified-name :: simple-variable
new-variable [ expression<sub>opt</sub> ]
new-variable { expression }
new-variable -> member-name
new-variable :: simple-variable
from php-langspec.
It sounds a little bit complicated… The PHP grammar has so much different nodes…
from php-langspec.
Related Issues (20)
- 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
- Confused by `clone-expression` definition HOT 2
- "case-sensitive" and "case-insensitive" are easy to mix up HOT 3
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.