Git Product home page Git Product logo

Comments (13)

i582 avatar i582 commented on July 3, 2024 9

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.

Wulfheart avatar Wulfheart commented on July 3, 2024 1

Or otherwse:
@z7zmey I saw a php8 branch. Do you work oon it? Do you need help?

from php-parser.

i582 avatar i582 commented on July 3, 2024 1

Link to my fork: https://github.com/i582/php-parser

from php-parser.

brainexe avatar brainexe commented on July 3, 2024 1

wow, looks nice already! I'll try to check it out with our php8 codebase tomorrow

from php-parser.

i582 avatar i582 commented on July 3, 2024 1

Parser now fully supports 8.0-8.2 syntax ๐ŸŽ‰

See https://github.com/VKCOM/php-parser/releases/tag/v0.8.2.

from php-parser.

ruudk avatar ruudk commented on July 3, 2024

@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.

brainexe avatar brainexe commented on July 3, 2024

+1 from my side. I can also provide help if needed.

from php-parser.

i582 avatar i582 commented on July 3, 2024

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.

i582 avatar i582 commented on July 3, 2024

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.

i582 avatar i582 commented on July 3, 2024

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.

ruudk avatar ruudk commented on July 3, 2024

@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 avatar i582 commented on July 3, 2024

@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.

ruudk avatar ruudk commented on July 3, 2024

@i582 Great! ๐ŸŽ‰

I'll subscribe to VKCOM/php-parser#1 then.

from php-parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.