libclang can also be used to get the AST.
There're some Java bindings to libclang out there:
* https://github.com/udalov/jclang (uses JNA, deprecated project, Apache
License).
* Project Panama "jextract" tool (similar to JNAerator?)
https://inside.java/2020/10/06/jextract/ can be used to convert the
libclang API to Java/Panama
https://github.com/sundararajana/panama-jextract-samples/tree/master/libclang
* OpenJDK's Panama bindings
https://hg.openjdk.java.net/panama/dev/file/dd41d194695c/src/jdk.internal.clang/share/classes/jdk/internal/clang/
(JNI?, GPL)
Some other links that may be of interest:
* libclang API concepts https://github.com/burnflare/libclang-experiments
* Clang's 12 "Choosing the Right Interface for Your Application"
https://clang.llvm.org/docs/Tooling.html
El 11/4/21 a las 0:53, Siddhesh Rane escribió:
Lets use LSP only for getting AST
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists