Skip to content
/ pylox Public

A Python 3.x implementation of Lox, from Crafting Interpreters

Notifications You must be signed in to change notification settings

moreati/pylox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pylox

An interpreter for Lox from Crafting Interpreters by Bob Nystrom. Pylox is incomplete and not intended to be useful, even as a reference. It is learning in progress. I'm merely translating Java snippets to Python 3.x as I read through the book.

Differences to jlox

Lox

Lox is a high-level programming language created as a teaching aid. It has a C-like syntax, dynamic typing, automatic memory management, first class functions, closures, and class-based object orientation.

The standand library contains a single function: clock(). Code examples tend to be breakfast themed.

Crafting Interpreters includes 2 implementations of Lox: jlox & clox. Readers have also implmented various other lox implementations.

About

A Python 3.x implementation of Lox, from Crafting Interpreters

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages