Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Using PDT's parser outside of the IDE
Using PDT's parser outside of the IDE [message #501546] Wed, 02 December 2009 17:43 Go to next message
raph  is currently offline raph Friend
Messages: 2
Registered: December 2009
Junior Member
Hello everyone,

I was wondering if PDT's PHP parser can be used outside of the IDE? In particular I want to access the AST of a PHP programm, modify it, and 'unparse' it back into PHP code.

I've read this article but there's no ASTParser.VERSION_PHP5 constant, and it is my impression that it is simply a 'PHPized' version of the original article and not really meant as a "'how-to'.

Any help is appreciated!

Re: Using PDT's parser outside of the IDE [message #501593 is a reply to message #501546] Wed, 02 December 2009 23:26 Go to previous message
Roy Ganor is currently offline Roy GanorFriend
Messages: 150
Registered: July 2009
Senior Member
It would be great if you take a look at our unit tests.
under org.eclipse.php.core.tests

Also there is a code builder class that takes an ast and builds a php script.

In general you should address these questions to the

Previous Topic:HTML and PHP mixed content
Next Topic:Keyboard Shortcut for phpDoc Tooltip?
Goto Forum:

Current Time: Mon Jun 21 21:09:14 GMT 2021

Powered by FUDForum. Page generated in 0.02206 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top