Skip to main content

This program simulates an interpreter for C++ in that it allows one to execute individual statements one at a time. It could be used for quick testing and prototyping. It is built to work on Linux operating systems. Requires g++ and nano. Here is an example of a possible cppInterpreter session:

C++ : int i;

C++ : int j;

C++ : i=1; j=2;

C++ : cout << i+j;
3
C++ : cout << "Hello World!";
Hello World!
C++ : int add(int a, int b){
... : return a+b;
... : }

C++ : int k = add(2,3);

C++ : cout << k;
5
C++ :

Contact me to ask questions or give comments on how to improve my code.

Release history Release notifications | RSS feed

This release

1.1.0 This release

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page