cpi

A lightweight C++ interpreter for executing C++ code directly

brewmacoslinux
Try with needOr install directly
Source

About

Tiny c++ interpreter

Commands

cpi

Examples

Execute a C++ file directly$ cpi script.cpp
Run C++ code interactively in REPL mode$ cpi
Execute inline C++ code with arguments$ cpi -e 'int main() { std::cout << "Hello" << std::endl; }'