LOX is a C++ version of jlox which was implemented in Bob Nystrom’s great Crafting Interpreters book.
$ git clone git@github.com:wy-ei/lox.git
$ cd lox
$ mkdir build && cd build
& cmake ..
& make
run in REPL mode:
$ ./lox
> var a = 123;
> var b = 1;
> b + a;
124
> quit
run with lox script:
$ ./lox ./example/sum.lox
5050