GithubHelp home page GithubHelp logo

happy-ferret / cpplox Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeff-mott-or/cpplox

0.0 2.0 0.0 136 KB

Following Nystrom's book Crafting Interpreters, implemented in C++.

CMake 8.48% C++ 83.85% Ruby 7.67%

cpplox's Introduction

Nystrom's Crafting Interpreters: An Implementation in C++

Build

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

Vagrant

This project comes with vagrant files to make it easier to build on a variety of platforms with a variety of compilers.

Build with g++-7 on Ubuntu

cd vagrant/ubuntu-xenial64-g++-7
vagrant up

Build

In the VM, run:

mkdir build
cd build

cmake /cpplox
cmake --build .

Build with MSVC 2017

cd vagrant/w16s-vs17c
vagrant up

First time boot manual steps

  1. Install CMake. The installer will be on the desktop. Select the option to add cmake to the system PATH.
  2. 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++.

Build

In the VM, open a command prompt and run:

pushd \\vboxsvr\cpplox

mkdir build
cd build

cmake .. -A x64
cmake --build . --config Release

Build with MSVC 2015

cd vagrant/w16s-vs15c
vagrant up

First time boot manual steps

  1. Install CMake. The installer will be on the desktop. Select the option to add cmake to the system PATH.
  2. 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++.

Build

In the VM, open a command prompt and run:

pushd \\vboxsvr\cpplox

mkdir build
cd build

cmake .. -A x64
cmake --build . --config Release

Copyright

Copyright 2018 Jeff Mott. MIT License.

cpplox's People

Contributors

jtmott-intel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.