4 ms·
There is a WIP php parser developed by the community: https://github.com/steffengy/pesty-php/blob/master/src/parser.rs https://github.com/steffengy/pesty-php/bl
by dragostis 10y ago
There is a WIP php parser developed by the community: https://github.com/steffengy/pesty-php/blob/master/src/parser.rs https://github.com/steffengy/pesty-php/blob/master/src/parse...
And, yes, it does support multi-stage parsing. After the tokens are generated, there is a process! macro which handles them. This is where you can produce an AST.