Git Product home page Git Product logo

tempbottle / pyclanglite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from statiskit/clanglite

0.0 2.0 0.0 103 KB

This Python Interface to Clang 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. The intent is to propose an API that is relatively unstable (contrarily to libclang) for each release of Clang, providing only the basic functionality needed to support development tools.

License: Other

Python 26.69% C++ 73.31%

pyclanglite's Introduction

PyClangLite

This Python Interface to Clang 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. The intent is to propose an API that is relatively unstable (contrarily to libclang) for each release of Clang, providing only the basic functionality needed to support development tools.

Documentation

Official documentation is available at virtualplants.github.io

Install

To install VPlants.AutoWIG, you need to install these dependencies:

In particular to install LLVM and Clang, you need to follow instructions on the Getting Started page of LLVM (http://llvm.org/docs/GettingStarted.html) to install both LLVM and Clang . Nevertheless, note that PyClangLite needs LLVM/Clang installed as shared libraries and runtime type information. As a consequence, on a Ubuntu distribution, you should type

git clone https://github.com/llvm-mirror/llvm.git
cd llvm
git checkout release_38
cd ..
git clone https://github.com/llvm-mirror/clang.git
cd clang
git checkout release_38
cd ..
cd llvm/tools
ln -s ../../clang
cd ../..
mkdir build
cd build
sudo apt-get install cmake
cmake -G "Unix Makefiles" -DBUILD_SHARED_LIBS=1 -DLLVM_ENABLE_RTTI=1 ../llvm
make
sudo make install
cd ..
rm -rf build llvm clang
sudo apt-get install libboost-python-dev zlib1g-dev scons
git clone https://github.com/openalea/deploy.git
cd deploy
sudo python setup.py install
cd ..
sudo rm -rf deploy
git clone https://github.com/openalea/sconsx.git
cd sconsx
sudo python setup.py install
cd ..
sudo rm -rf sconsx
git clone https://github.com/pfernique/PyClangLite.git
cd PyClangLite
sudo python setup.py install
cd ..
sudo rm -rf PyClangLite

Contribute

If you want to contribute, please have a look to the github workflow

pyclanglite's People

Contributors

pfernique avatar

Watchers

 avatar  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.