# Tutorial Development with Clang-Repl

DevFeed: [Tutorial Development with Clang-Repl](<https://devfeed.tech/articles/tutorial-development-with-clang-repl-43097.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2023-10-5-tutorial-development-with-clang-repl/>)

Author: Krishna Narayanan

Published: 2023-10-05T00:00:00Z

Content type: tutorial

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [clang](<https://devfeed.tech/topics/clang.md>), [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [interoperability](<https://devfeed.tech/topics/interoperability.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

Tags: [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [clang](<https://devfeed.tech/tags/clang.md>), [clang-repl](<https://devfeed.tech/tags/clang-repl.md>), [compiler-research](<https://devfeed.tech/tags/compiler-research.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [experiment](<https://devfeed.tech/tags/experiment.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [https](<https://devfeed.tech/tags/https.md>), [interactive](<https://devfeed.tech/tags/interactive.md>), [interop](<https://devfeed.tech/tags/interop.md>), [interoperability](<https://devfeed.tech/tags/interoperability.md>), [offers](<https://devfeed.tech/tags/offers.md>), [programming](<https://devfeed.tech/tags/programming.md>), [review](<https://devfeed.tech/tags/review.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

This tutorial describes a Google Summer of Code project developing tutorials and documentation for Clang-Repl, CppInterOp, Xeus-cpp, and Xeus-clang-repl. It covers Clang-Repl capabilities, C++ interoperability with Python, documentation setup, and using Xeus-Clang-Repl with Jupyter Notebooks.

## Source excerpt

Introduction I'm Krishna Narayanan, a final undergraduate at Veermata Jijabai TechnologicalInstitute, Mumbai and I am talking about my GSoC project in this blog postwhich mentions the goals, tasks we have accomplished during this summer tenure.My GSoC project aims to develop tutorials demonstrating the current capabilities ofClang-repl. The need for Clang-repl is that it presents opportunities for rigorousopen-source development. However, even though it is inspired by cling, not all ofClang-repl and Cling are the same, i.e., they are similar, but work needs to be done toadd Xeus protocol support for Clang-repl.In a similar convention, tutorials were demonstrated for CppInterOp (clang-based C++),Xeus-cpp (interactive programming environment for C++) and Xeus-clang-repl. Contributions: This is the list of contributions according to the pull requests I have sent: 1. Update Clang-Repl Documentation https://reviews.llvm.org/D152109 https://reviews.llvm.org/D156858 https://github.com/llvm/llvm-project/pull/65650 This patch adds support for Clang-Repl documentation, basically, it provides alldetails regarding the usage of Clang-Repl. It emphasises the features of Clang-Replthat it offers to the user. The REPL nature enables users to prototype,experiment and gives a user-friendly experience. Similarly, the second patchadds Clang-Repl Execution Handling Results by Saqib in which we enabled thegraphviz extension for the llvm/clang documents to support the graphviz conventionfor pictorial representation (under review). 2. Add C++ InterOp Documentation Setup https://github.com/compiler-research/CppInterOp/pull/87 https://github.com/compiler-research/CppInterOp/pull/99 https://github.com/compiler-research/CppInterOp/pull/105 https://github.com/compiler-research/CppInterOp/pull/121 https://github.com/compiler-research/CppInterOp/pull/134 CppInterOp is a clang-based C++ Interoperability library, which enables interoperabilitywith C++ code to more interactive languages like Python.