Giter VIP home page Giter VIP logo

many-lox's Introduction

Many Lox

This repo is a collection of my implementations of the Lox interpreter from the book Crafting Interpreters, by Bob Nystrom.

I don't know if I will complete any of the implementations, but I want to attempt to implement it in as many languages as possible to be able to compare the languages across each step of the process, and with the hopes that it makes it easier for anyone looking to build their own interpreter to have a point of reference for starting.

Legend
In Progress ๐Ÿšง
Complete โœ…
Stuck / Need Help โš ๏ธ

Tree-Walk Interpreter

Full recoded playlist on YouTube.

Phase / Chapter Elm (elm-lox) Haskell (haskell-lox)
Scanning โœ… https://www.youtube.com/watch?v=dA10oUBGk0A โœ… https://www.youtube.com/watch?v=ZVCcKUmwEtI
Representing Code
Parsing Expressions
Evaluating Expressions
Statements and State
Control Flow
Functions
Resolving and Binding
Classes
Inheritance

Bytecode Virtual Machine

TBD

Notes

When implementing the Scanner, use the scanner_*.lox files in the order:

  1. scanner_minimal.lox
  2. scanner_with_operators.lox
  3. scanner_with_whitespace.lox
  4. scanner_with_comments.lox
  5. scanner_with_strings.lox
  6. scanner_with_numbers.lox
  7. scanner_with_identifiers.lox

many-lox's People

Contributors

wolfadex avatar

Stargazers

 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.