Just learning about programming language theory and implementation by following the steps of the "Crafting Interpreters" book.
In order to make this easier I just following a test driven approach here.
To build the project and run the test first get cmake
using:
brew install cmake
And then run cmake
and make
:
cmake . # On the root folder.
make
I'm using the catch2 test framwork to generate a test binary that you can run using:
./lox_test