Giter VIP home page Giter VIP logo

neslib.clang's Introduction

Neslib.Clang - libclang for Delphi

Libclang is the C Interface to Clang's C family of compilers. It provides a relatively small API that exposes facilities for parsing source code into an abstract syntax tree (AST), loading already-parsed ASTs, traversing the AST, associating physical source locations with elements within the AST, and other facilities that support Clang-based development tools.

This C interface to Clang will never provide all of the information representation stored in Clang's C++ AST, nor should it: the intent is to maintain an API that is relatively stable from one release to the next, providing only the basic functionality needed to support development tools.

You can find an article about libclang for Delphi on my blog.

Neslib.Clang leverages libclang in two ways:

The unit Neslib.Clang.Api providers the header translations for libclang version 6.0. You can use these header translations as you would use libclang from a C language. The documentation for the C API can be found here: https://clang.llvm.org/doxygen/index.html

The unit Neslib.Clang provides a higher level abstraction of the libclang API. It provides a thin class model on top of the libclang API, making it easier to use from Delphi. In addition, it provides automatic memory management so you don't have to worry about what resources to release and when.

Documentation for the Neslib.Clang unit can be found in the Neslib.Clang.Chm file or on-line at https://neslib.github.io/Neslib.Clang.

License

Neslib.Clang is licensed under the Simplified BSD License. See License.txt for details.

neslib.clang's People

Contributors

erikvanbilsen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.