Skip to content
C

cpi

Tiny C++ Interpreter

Open source

#2108in Developer Tools
0In stores

Description

cpi is a tiny interpreter for C++20 and C++23 from the TreeFrog Framework project. It lets you run C++ interactively at a prompt, much like…

Highlights

  • Interactive C++20/C++23 prompt
  • Runs a file or code from stdin
  • Uses GCC, LLVM or MSVC internally
  • Builds on Linux and Windows with Qt 6
  • Open source with GitHub releases

Ratings & Reviews

No ratings yet

Be the first to rate cpi.

People also visit

C

cpp-pro

Writes, optimizes, and debugs C++ applications

AI Skills
Get
B

build2

C/C++ build system and package manager

Developer Tools
Launch
C

Cdecl

Composing and deciphering C (or C++) declarations or casts, aka ‘‘gibberish.’’

Developer Tools
Launch
V

Vix

A modern C++ runtime for building fast and reliable applications

Developer Tools
Launch
C

cpp-testing

Use only when writing/updating/fixing C++ tests, configuring GoogleTest/CTest

AI Skills
Get
C

CP Editor

The IDE for competitive programming | Fetch, Code, Compile, Run, Check, Submit

Developer Tools
Launch

cpi FAQ

What is cpi?

A tiny C++ interpreter that runs C++20 or C++23 code interactively or from a file.

What do I need to build it?

Qt toolkit version 6 and a C++ compiler: GNU, LLVM or MSVC. The compiler is used internally as the interpreter.

How do I install it on Linux?

Run qmake, make and sudo make install, then check with cpi -v.

How do I use interactive mode?

Run cpi (cpi.bat on Windows) and type C++ at the cpi> prompt; type .help for more information.

Where is the source?

On GitHub at treefrogframework/cpi.

What are the best cpi alternatives?

Popular alternatives to cpi include build2, Cdecl and Vix. See all cpi alternatives

Developer Stuff

Badges