Nystrom's Crafting Interpreters: An Implementation in C++
mkdir build
cd build
cmake ..
cmake --build .
Or, to optionally build and run tests and benchmarking, use this cmake command instead:
cmake .. -DENABLE_TESTING=TRUE
This project comes with vagrant files to make it easier to build on a variety of platforms with a variety of compilers.
cd vagrant/ubuntu-xenial64-g++-7
vagrant up
In the VM, run:
mkdir build
cd build
cmake /cpplox
cmake --build .
cd vagrant/w16s-vs17c
vagrant up
- Install CMake. The installer will be on the desktop. Select the option to add cmake to the system PATH.
- Install Visual Studio's Desktop Development with C++. Navigate to Control Panel > Programs and Features. Select Microsoft Visual Studio and press Change. Update the Visual Studio installer, then update Visual Studio itself. Finally, modify the installation and tick the box to install Desktop Development with C++.
In the VM, open a command prompt and run:
pushd \\vboxsvr\cpplox
mkdir build
cd build
cmake .. -A x64
cmake --build . --config Release
cd vagrant/w16s-vs15c
vagrant up
- Install CMake. The installer will be on the desktop. Select the option to add cmake to the system PATH.
- Install Visual C++. Navigate to Control Panel > Programs and Features. Select Microsoft Visual Studio and press Change. Modify the installation and tick the box to install Visual C++.
In the VM, open a command prompt and run:
pushd \\vboxsvr\cpplox
mkdir build
cd build
cmake .. -A x64
cmake --build . --config Release
Copyright 2018 Jeff Mott. MIT License.