Skip to content

rust implementation for the Monkey programming language from the book: "Writing An Interpreter In Go by Thorsten Ball"

Notifications You must be signed in to change notification settings

DaAlbrecht/interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust Interpreter for "Writing An Interpreter In Go"

Table of Contents

This repository contains a Rust implementation of the book "Writing An Interpreter In Go" by Thorsten Ball. The book walks through the process of building an interpreter for a simple programming language using the Go programming language. In this repository, I aim to replicate the interpreter using Rust.

Motivation

The primary motivation behind this project is to learn about interpreters and gain a deeper understanding of the concepts and techniques taught in the book.

Features

  • Lexer: Tokenizes input source code into meaningful tokens.
  • Parser: Parses the tokens into an abstract syntax tree (AST).
  • Evaluator: Evaluates the AST and performs computations according to the programming language's rules.

Getting Started

To run the interpreter, follow these steps:

  1. Clone this repository to your local machine.
git clone https://github.com/DaAlbrecht/interpreter.git
  1. Navigate to the project directory.
cd interpreter
  1. Build and run the interpreter.
cargo run

About

rust implementation for the Monkey programming language from the book: "Writing An Interpreter In Go by Thorsten Ball"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages