Skip to content

z11i/jlox

Repository files navigation

Java implementation of the Lox language

This is a Java implementation of the Lox language from the book Crafting Interpreters. It is an interpreter for a dynamically typed language with classes, inheritance, and closures.

Running

make run

EBNF of Lox

expression     → literal
               | unary
               | binary
               | grouping ;
literal        → NUMBER | STRING | "true" | "false" | "nil" ;
grouping       → "(" expression ")" ;
unary          → ( "-" | "!" ) expression ;
binary         → expression operator expression ;
operator       → "==" | "!=" | "<" | "<=" | ">" | ">="
               | "+"  | "-"  | "*" | "/" ;

About

Java implementation of the Lox language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published