Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » How to use PDT as a standalone tool
How to use PDT as a standalone tool [message #1840494] Fri, 16 April 2021 13:17
can liture is currently offline can litureFriend
Messages: 1
Registered: April 2021
Junior Member
Hello!

I have used Eclipse JDT to do some static analysis for Java Projects.
Now I want to use Eclipse PDT to do some static analysis.

I have used JDT to parse the Java source codes. Similarly, I use the PDT API just like the way I use JDT API.

DOM model API is the way I use to parse PHP source codes:

`Program.p = (Program) ASTParser.createAST()`

In JDT, I use the API to batch parse Java source codes and resolve bindings:
`ASTParser.createASTs(...)`

In PDT, I can't to batch parse PHP source codes, and can't resolve bindings as a standalone tool.And I can't use PHP ASTView to view the AST structures(the link to download PHP ASTView plugin seems to not found)

The most thing is that I can't resolve bindings as a standalone tool.
Just to say, I extract some core .jar packages in the folders of PDT IDE, and use APIs of these packages to construct my own static analysis tool without Eclipse Plugin Environment.

But I can't Batch Parse the codes and resolve the bindings.I think resolving the bindings or auto-inferencing types API without the plugin environment is most important for building a PHP static analysis tool.
Previous Topic:PHP class "cannot be resolved to a type" error
Next Topic:Missing Inspect Element on last few versions
Goto Forum:
  


Current Time: Thu May 02 04:52:15 GMT 2024

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

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

Back to the top