https://github.com/moreati/pylox
A Python 3.x implementation of Lox, from Crafting Interpreters
https://github.com/moreati/pylox
Last synced: 5 months ago
JSON representation
A Python 3.x implementation of Lox, from Crafting Interpreters
- Host: GitHub
- URL: https://github.com/moreati/pylox
- Owner: moreati
- Created: 2017-06-03T14:04:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-09T21:49:32.000Z (over 8 years ago)
- Last Synced: 2025-05-06T19:12:34.351Z (5 months ago)
- Language: Python
- Homepage: http://craftinginterpreters.com/
- Size: 31.3 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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].[bob nystrom]: http://stuffwithstuff.com/
[clox]: https://github.com/munificent/craftinginterpreters/tree/master/c
[crafting interpreters]: http://craftinginterpreters.com/
[jlox]: https://github.com/munificent/craftinginterpreters/tree/master/java/com/craftinginterpreters
[lox]: http://craftinginterpreters.com/the-lox-language.html
[lox implementations]: https://github.com/munificent/craftinginterpreters/wiki/Lox-implementations