Dne neděle 11. dubna 2021 8:03:45 CEST, antonio napsal(a): > 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/libclan > g * OpenJDK's Panama bindings > https://hg.openjdk.java.net/panama/dev/file/dd41d194695c/src/jdk.internal.cl > ang/share/classes/jdk/internal/clang/ (JNI?, GPL)
FYI: Sulong can execute Clang (as well as any other C/C++ code) on any JDK8+ https://llvm.org/devmtg/2016-01/slides/Sulong.pdf https://github.com/oracle/graal/tree/master/sulong and it can run damn fast with properly configured Graal compiler. -jt > 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: dev-unsubscr...@netbeans.apache.org > For additional commands, e-mail: dev-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists