Giter Club home page Giter Club logo

jlox's Introduction

Lox (programming language implementation)

This is the tree-walk interpreter Java implementation from the book.

Each branch (other than master) represents an addition to the language, encompassing all the challenges (well, at least those that involve Java code) proposed by the author throughout each chapter.

The branches are not updated in line with the master branch. For example:

  • The ternary-operator branch was created before the Interpreter class existed. As a result, it implements the ternary operator only in the Parser, so merging this branch would enable the language to parse ternary operators, but not execute them, which would be kind of useless.
  • The lambdas branch, the anonymous functions implementation, was created prior to the Resolver. As such, these lambdas lack runtime resolution checks and will fail due to unresolved passes, though technically functional otherwise (haha, functional, did you get it?)
  • etc.

Branches like extension-methods, addressing challenges later in the book dealing with classes and objects, could technically be merged into the main language, but I chose to let the master branch have the pristine implementation from the book for later reference.

jlox's People

Watchers

 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.