Skip to content

imbianchi/jlox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Interpreter (jlox)

Java

This repository contains a Java implementation of an interpreter based on the "Crafting Interpreters" ebook by Bob Nystrom. The goal of this project is to provide a clear and concise implementation of an interpreter using plain Java, with a focus on simplicity and readability.

Table of Contents

Introduction

The "Crafting Interpreters" ebook serves as the foundation for this project, guiding the implementation of a fully functional interpreter. The focus is on understanding the principles of crafting interpreters and applying them using plain Java.

Check: Crafting Interpreters.

Getting Started

Follow these steps to get the interpreter up and running:

  1. Clone the repository: git clone https://github.com/imbianchi/jlox.git
  2. Navigate to the project directory: cd jlox
  3. Build the solution: javac -d out src/*.java
  4. Run the interpreter: java -cp out Main

Usage

Once the interpreter is running, you can input your own programs or use the provided examples from the Crafting Interpreters ebook. Explore the source code to gain insights into the interpreter's implementation details.

License

This project is licensed under the MIT License, allowing for both personal and commercial use.