On 09/03/2011 11:41 PM, Arpad Ray wrote:
Haven't had much of a look yet but I really like the concept :)
Glad to hear that. I had this idea for a long time, but I've never got
time to look at it.
A couple of minor things to note:
- Now would be a good time to make it follow the PHP codi
>> First, you seem to try to lex the PHP code yourself too. Why don't you
>> use PHP's internal lexing capabilities?
>
> I can't. This is documented in the README.
I should definitely have read your README first before answering ;)
But I don't quite get your argument in the README that the internal
On Sun, Sep 4, 2011 at 9:21 AM, Nikita Popov wrote:
> Hi Flavius!
>
> I am working on PHP Parser in user land code
> (https://github.com/nikic/PHP-Parser), which currently has
> capabilities to parse PHP 5.3 into an AST and compile the nodes back
> to PHP source.
Just as a side note: we do have a
On 09/04/2011 09:21 AM, Nikita Popov wrote:
Hi Flavius!
Hi Nikita
First, you seem to try to lex the PHP code yourself too. Why don't you
use PHP's internal lexing capabilities?
I can't. This is documented in the README.
Second, you seem to try to parse PHP using your own grammar. From my
Hi Flavius!
I am working on PHP Parser in user land code
(https://github.com/nikic/PHP-Parser), which currently has
capabilities to parse PHP 5.3 into an AST and compile the nodes back
to PHP source.
>From my experience in building it, some notes:
First, you seem to try to lex the PHP code yours
Hi Arpad
2011/9/3 Arpad Ray :
> - Variable declarations should always begin a block, some platforms
> will bork otherwise.
Actually this is required for the C standard, the early ones that we
use in PHP, whereas C++ allows them anywhere in a block, like PHP does
:)
--
regards,
Kalle Sommer Nie
Hi,
Haven't had much of a look yet but I really like the concept :)
A couple of minor things to note:
- Now would be a good time to make it follow the PHP coding standards,
before it gets much larger or other devs get involved.
- Variable declarations should always begin a block, some platforms
w
Hi
I'm Flavius Aspra and over the past weeks [1] I've worked on a small
extension, which I think it has a lot of potential. Thanks to everyone
for being patient with me on #php.pecl during this time - I've learned a
lot!
Meta will enable userland scripts to get the AST of a PHP source code,
to m