Comments (13)
I am glad to announce that I have completed 99% of the PHP 8.0 features and the new release is already available. ๐๐๐
Link: https://github.com/VKCOM/php-parser/releases/tag/v0.8.0-rc.2
Why 99%? Heh, maybe I missed something or made mistakes that I didn't catch, so by the time PHP 8.1 support comes out, I will test the changes in our NoVerify and maybe find them ๐.
I tested the parser on several PHP 8 and PHP 7 projects, as well as our huge codebase (several million lines of code) and everything seems to be fine.
Also, NoVerify with the new parser found exactly the same number of errors in our codebase as with the old one, which adds confidence that nothing was broken.
from php-parser.
Or otherwse:
@z7zmey I saw a php8
branch. Do you work oon it? Do you need help?
from php-parser.
Link to my fork: https://github.com/i582/php-parser
from php-parser.
wow, looks nice already! I'll try to check it out with our php8 codebase tomorrow
from php-parser.
Parser now fully supports 8.0-8.2 syntax ๐
See https://github.com/VKCOM/php-parser/releases/tag/v0.8.2.
from php-parser.
@z7zmey where is the https://github.com/z7zmey/php-parser/blob/master/internal/php7/php7.y file coming from? Did you make this yourself or is this provided by PHP?
from php-parser.
+1 from my side. I can also provide help if needed.
from php-parser.
Hey
For NoVerify and NoColor, we need PHP 8 support right now, but since development is
frozen, we decided to start developing on a fork.
If anyone would like to help with the implementation of PHP 8's new features, we would be very happy.
I'll provide a link to the fork we will be doing development a bit later, probably on Monday.
In the meantime, if you want to participate in the development, write to me on the telegram
@petr_makhnev
to cooperate.
from php-parser.
Using the grammar from PHP-Parser, it seems that adding all new features will be quite simple since all that remains is to write specific logic for each new grammar rule.
from php-parser.
wow, looks nice already! I'll try to check it out with our php8 codebase tomorrow
It will be great, full-scale testing on projects is yet to come.
I have tested so far only on PHPUnit, and to my delight, the parser
does not give errors, and if the parsed files are turned back into code,
then it is fully equal with the original code.
from php-parser.
@i582 Great that you are doing this!! ๐ช
Would it be an idea to move your fork to a GitHub organization so that it can live forever, is not bound to your name, allow you to pass it on to someone else if you ever get bored with it?
from php-parser.
@i582 Great that you are doing this!! ๐ช
Would it be an idea to move your fork to a GitHub organization so that it can live forever, is not bound to your name, allow you to pass it on to someone else if you ever get bored with it?
After I finish we move it to VKCOM organization. See VKCOM/php-parser#1
I plan to continue in VKCOM fork and develop in it PHP 8.1.
My fork was created because the organization could not fork for several days ๐
from php-parser.
@i582 Great! ๐
I'll subscribe to VKCOM/php-parser#1 then.
from php-parser.
Related Issues (20)
- [dev] syntax error: unexpected T_STRING at line 5 HOT 2
- Question: nikic / PHP-Parser AST compatibility HOT 3
- Wrong line number for multiline strings with variables
- malformed json HOT 1
- parser.Parse hangs up HOT 1
- Json string not valid HOT 1
- NamespaceResolver does not resolve PHP 7.4 typed properties
- ๅคงไฝฌ ้ๅธธๅๅฎณ๏ผ
- Runtime exception when using "go get github.com/z7zmey/php-parser" HOT 2
- Revise usage example for version 0.8 on master.
- Prestashop sql statements / verify escaping or type cast
- invalid position for ast.ExprArrayItem HOT 1
- AST of parent class HOT 1
- PHPDoc parser
- A panic in lexer.go: [runtime error: index out of range] HOT 1
- Some lexer errors are printed to stderr HOT 1
- No reliable way to work with parenthesis HOT 4
- panic: runtime error: index out of range && invalid memory address or nil pointer dereference HOT 1
- name.Parts problem
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-parser.