Skip to content

ricardojlrufino/cplus-libparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cplus-libparser

Library for metadata extraction (information about classes, methods, variables) of source code in C/C++.
This library uses the Eclipse parser (standalone), and extracts the most relevant information (primarily used to autocomplete).

The main advantage is that it is entirely in Java and no requires native code (like JNI) .
The library makes the scanner in asynchronous mode and multi-thread, and can make the data parser in-memory (from strings)

This library was created with the main objective to be used in the Arduino IDE autocomplete system.

Build

Use maven to build, the generated jar include the necessary dependencies

mvn package

I believe this is a good example of using the CDT Parser outside of Eclipse, because there is almost no information or example of using.

The code has been optimized to use minimal Eclipse dependencies.

TIP: You can use the project eclipse-cdt-standalone-astparser to see a TreeView code of the source code structure, serving for debugging purposes

Thank you to everyone who has reported bugs and suggested fixes.

Diagram

Diagram

About

C++ Source metadata extractor using Eclipse CDT Parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages