php-ast icon indicating copy to clipboard operation
php-ast copied to clipboard

Extension exposing PHP 7 abstract syntax tree

Results 11 php-ast issues
Sort by recently updated
recently updated
newest added

Hello and thank you for your work. When can we expect a precompiled DLL for windows for php-ast 1.1.0? Do you need help here somewhere?

It looks like between *PHP 7* and *PHP 8* the return code of `zend_prepare_string_for_scanning()` was changed from "int" to "void", see `includes/php/Zend/zend_language_scanner.h` for the respective installation. PHP 7: `ZEND_API int...

Change the release checklist to start creating releases again. https://pecl.php.net/package/ast still doesn't have releases, and the php 8.2.0 stable release is close to being published A similar workflow succeeded in...

For example: ```php class MyKlass { public function createBook() { $book = new Book(); return $book; } public function formatter() { $formatter = Utils::getFormatter(); return $formatter; } } ``` How...

(Before php 7, there wasn't an AST at all, so leave in the note about AST belonging to php 7)

This PR adds the ability to extend the `Node` class and parse code into your own classes. The idea is to offer a [similar API to the tokenizer extension](https://www.php.net/manual/en/phptoken.tokenize.php): ```php

1. Remove AST_LIST and mark it as deprecated, and remove it whenever AST version 50 is removed. Related to #94 - It was overlooked AST_LIST is still used in https://github.com/phan/phan/blob/1.2.2/src/Phan/Analysis/PreOrderAnalysisVisitor.php#L613...

I want to suggest to include this extension into the core to provide an API for miscellaneous userland extensions. Main idea is to give a userland code control over the...

Hello, I think it will be a good idea to publish this package on Packagist, for the PHP stub?