Cling – The New Interactive Interpreter for ROOT 6
Cling – The New Interactive Interpreter for ROOT 6
复制标题
Cling – ROOT 6 的全新交互式解释器
DOI:
10.1088/1742-6596/396/5/052071
复制
发表时间:
2012
期刊:
影响因子:
--
通讯作者:
P. Russo
中科院分区:
文献类型:
--
作者:
V. Vasilev;P. Canal;A. Naumann;P. Russo
Cling is an interactive C++ interpreter, built on top of Clang and LLVM compiler infrastructure. Like its predecessor Cint, Cling realizes the read-print-evaluate-loop 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. We show how to match the interpreter concept to the compiler library and generalize common set of requirements for building up an interactive interpreter. We reason the design and implementation decisions as solution to the challenge of implementing interpreter behaviour as an extension of the compiler library. We present the new features, e.g. how C++11 will come to Cling and how Cint-specific extensions are being adopted. We clarify the state of integration in the ROOT framework and the induced change set. We explain how ROOT dictionaries are simplified due to the new interpreter.