Skip to content

A standalone version (no Eclipse dependency) of the PHP parser embedded in PDT.

License

Notifications You must be signed in to change notification settings

Tocea/pdt-standalone-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDT standalone parser##

This software provide a standalone version of the PHP parser used by the PDT v3.2.0 Eclipse plugin. It has no dependency on Eclipse or third parties Eclipse plugins.

Installation

Checkout the source code and install it with maven in your local repository.

git clone http://github.com/Tocea/pdt-standalone-parser.git
cd pdt-standalone-parser
mvn clean install

Usage

You need to a dependency on the maven project :

<dependency>
  <groupId>com.tocea</groupId>
  <artifactId>pdt-standalone-parser/artifactId>
  <version>1.0.0</version>
</dependency>

To parse a php4 file, use the following code :

ASTParser parser = ASTParser.newParser(PHPVersion.PHP4);
Program ast = parser.setSource(new File("<your file>"));
...

Licence

This software is released under EPL license.

About

A standalone version (no Eclipse dependency) of the PHP parser embedded in PDT.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published