Cling - The Interactive C++ Interpreter
Go to file
2016-08-07 19:25:19 +02:00
cmake/modules From Bertrand: add ClingConfig.cmake. 2016-06-15 14:14:34 +02:00
demo Remove trailing spaces 2014-08-13 16:08:36 +02:00
docs Improve release notes, fix grammar. 2016-08-07 19:25:19 +02:00
include/cling Remove extra ";". 2016-07-28 11:09:24 +02:00
lib Do not return early if the "{" is in a CPP macro! 2016-07-29 16:59:08 +02:00
patches Remove old file. 2016-07-22 20:54:47 +02:00
test The "." is needed for lit to parse the regex; require 5*hex. 2016-07-30 21:14:15 +02:00
tools CPT: Use assets from locally cloned cling 2016-08-05 18:14:07 +02:00
www Clarify external contribution conditions. 2016-08-07 19:25:19 +02:00
.travis.yml Install python on osx, cpt uses pip. 2016-08-07 18:23:01 +02:00
appveyor.yml Allow failures on windows for now. 2016-08-05 11:23:41 +02:00
CMakeLists.txt Install cling Jupyter kernel. 2016-07-22 19:29:12 +02:00
CREDITS.txt Add Frederich Munch. 2016-07-25 11:59:27 +02:00
LastKnownGoodLLVMSVNRevision.txt Note new llvm rev. 2016-07-12 10:44:20 +02:00
LICENSE.TXT Remove trailing spaces 2014-08-13 16:08:36 +02:00
Module.mk With the cmake build of LLVM, not all header ends up in the inst directory. 2016-07-28 19:29:15 +02:00
README.md Clarify external contribution conditions. 2016-08-07 19:25:19 +02:00
VERSION Bump new dev version. 2016-07-06 14:01:23 +02:00

Unix and OSX Build Status

Cling - The Interactive C++ Interpreter

Overview

Cling is an interactive C++ interpreter, built on top of Clang and LLVM compiler infrastructure. Cling realizes the read-eval-print loop (REPL) concept, in order to leverage rapid application development. Implemented as a small extension to LLVM and Clang, the interpreter reuses their strengths such as the praised concise and expressive compiler diagnostics.

See also cling's web page.

Please note that some of the resources are rather old and most of the stated limitations are outdated.

Installation

Release Notes

See our release notes to find what's new.

Binaries

Our nightly binary snapshots can be found [here](for download at https://root.cern.ch/download/cling/)

Building from Source with Cling Packaging Tool

Cling's tree has a user-friendly, command-line utility written in Python called Cling Packaging Tool (CPT) which can build Cling from source and generate installer bundles for a wide range of platforms. CPT requires Python 2.7 or later.

If you have Cling's source cloned locally, you can find the tool in tools/packaging directory. Alternatively, you can download the script manually, or by using wget:

wget https://raw.githubusercontent.com/root-mirror/cling/master/tools/packaging/cpt.py
chmod +x cpt.py
./cpt.py --check-requirements && ./cpt.py --create-dev-env Debug --with-workdir=./cling-build/

Usage

Full documentation of CPT can be found in tools/packaging.

/some/install/dir/bin/cling '#include <stdio.h>' 'printf("Hello World!\n")'`

To get started run:

/some/install/dir/bin/cling --help`

or type

/some/install/dir/bin/cling
[cling]$ .help`

Jupyter

Cling comes with a Jupyter kernel. After building cling, install Jupyter and run jupyter kernelspec install cling. It requires a fairly new Jupyter. Make sure cling is in your PATH when you start jupyter!

See also the tools/Jupyter subdirectory for more information.

Developers' Corner

Cling's latest doxygen documentation

Contributions

Every contribution is considered a donation and its copyright and any other related rights become exclusive ownership of the person who merged the code or in any other case the main developers of the "Cling Project".

We warmly welcome external contributions to the Cling! By providing code, you agree to transfer your copyright on the code to the "Cling project". Of course you will be duly credited and your name will appear on the contributors page, the release notes, and in the CREDITS file shipped with every binary and source distribution. The copyright transfer is necessary for us to be able to effectively defend the project in case of litigation.

License

Please see our LICENSE.