added ASTparser for trees