A REPL-style "development environment" for small C++ snippets. For cases where an online compiler is out of the question.
(the example uses the dbg(…)
macro
which is included in minicpp
)
- Start the watcher that recompiles and runs the snippet:
./run
- Edit
main.cpp
. Save the file to trigger a new compile-and-run cycle.
If you want to start from scratch, you can call
./reset
Make sure that inotifywait
is installed. It should be available
for most Linux distributions (the package is typically called inotify-tools
).
Apart from that, you just need to clone the repository:
git clone --recursive https://github.com/sharkdp/minicpp