https://github.com/sharkdp/minicpp
A REPL-style development environment for small C++ snippets
https://github.com/sharkdp/minicpp
bash cpp repl terminal
Last synced: 7 months ago
JSON representation
A REPL-style development environment for small C++ snippets
- Host: GitHub
- URL: https://github.com/sharkdp/minicpp
- Owner: sharkdp
- Created: 2019-09-02T08:33:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-28T10:54:16.000Z (over 1 year ago)
- Last Synced: 2024-12-08T04:50:29.824Z (over 1 year ago)
- Topics: bash, cpp, repl, terminal
- Language: Shell
- Homepage:
- Size: 14.6 KB
- Stars: 50
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# minicpp
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(…)`](https://github.com/sharkdp/dbg-macro/) macro
which is included in `minicpp`)
## How to
1. Start the watcher that recompiles and runs the snippet:
``` bash
./run
```
2. Edit `main.cpp`. Save the file to trigger a new compile-and-run cycle.
## Restart
If you want to start from scratch, you can call
``` bash
./reset
```
## Install
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:
``` bash
git clone --recursive https://github.com/sharkdp/minicpp
```