pdrolopes / crafting_interpreters

Project for the crafting interpreters book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crafting Interpreters - Rust Implementation

A personal Rust implementation of the interpreter presented by Robert Nystrom in his book Crafting Interpreters.

Usage

Install Rust

$ curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
$ rustup install nightly

Detailed instructions

Download the project

$ git clone https://github.com/pdrolopes/crafting_interpreters.git

Build the project

$ cd crafting_interpreters
$ cargo +nightly build

Running

$ ./target/debug/crafting_interpreters

Writing your program

> print "Hello World";
Hello World

The Lox Language

The interpreter reads the Lox language, created by Nystrom.
You can find more details about it on this link.

About

Project for the crafting interpreters book


Languages

Language:Rust 100.0%