Implemented AST pretty-printer

This commit is contained in:
Dmitry Stogov 2015-02-19 11:11:17 +03:00
parent e7ee01980e
commit 6b779596d7
2 changed files with 1143 additions and 0 deletions

File diff suppressed because it is too large Load diff

View file

@ -203,6 +203,7 @@ ZEND_API zend_ast *zend_ast_create_list(uint32_t init_children, zend_ast_kind ki
ZEND_API zend_ast *zend_ast_list_add(zend_ast *list, zend_ast *op);
ZEND_API void zend_ast_evaluate(zval *result, zend_ast *ast, zend_class_entry *scope);
ZEND_API zend_string *zend_ast_export(const char *prefix, zend_ast *ast, const char *suffix);
ZEND_API zend_ast *zend_ast_copy(zend_ast *ast);
ZEND_API void zend_ast_destroy(zend_ast *ast);