cpprepl

deadly simple repl for cpp

Usage no npm install needed!

<script type="module">
  import cpprepl from 'https://cdn.skypack.dev/cpprepl';
</script>

README

c(pp)repl

demo

a simple c/cpp repl with ghci style commands

Install

npm i -g cpprepl

Config

cpprepl --clang++ # use clang++
cpprepl --g++     # or use g++ for default
crepl
crepl --clang

Usage

cpprepl --help
crepl -help

Commands

>>= :m iostream // load iostream
>>= :b i // show i in binary
>>= :t i // show i's type
>>= :q   // to quit