Python implementation of Lox programming language
Project description
pylox is Python implementation of Lox programming language which is a demo language from [Crafting Interpreters](http://www.craftinginterpreters.com/) book by [Bob Nystrom](https://github.com/munificent).
I’m doing this because:
I want to learn about language design and implementation
I don’t want to just read the book or copy and paste the code from it and I want to do something else than C or Java
Python is my main language these days and I want to use something I’m most comfortable with
Maybe after Python version I decide to reimplement it (or make my own toy language) in Go. Or force myself to learn Rust which seems like a good idea.
Fun.
This is work in progress.
Requirements
Python 3.6 for no particular reasons except f-strings are used in few places. Other than that, it could easily be ported to even Python 2.7 (but I don’t plan to).
Run it
python3 -m pylox [script]
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file pylox-0.0.1.tar.gz
.
File metadata
- Download URL: pylox-0.0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 109a4511425c488c5d0a1619ae50a0126b84f2c6b5eb3dfba6e7be544675a3da |
|
MD5 | 3cd792ab6311e2865a9d1d00b1ad75eb |
|
BLAKE2b-256 | 9df40e2b8cbd85110fab94d51aa49fc87d6fa113faa1b6b5eed7ff0412445472 |
File details
Details for the file pylox-0.0.1-py3.6.egg
.
File metadata
- Download URL: pylox-0.0.1-py3.6.egg
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3871806a554a7b2c92292e5060eccea21eba3cc06de082ce754a53e472950f05 |
|
MD5 | db6bf6d537e3633bf42dd074936cb5a4 |
|
BLAKE2b-256 | 2065d69a885160542d77b17c1c609053fa7fe1f88a85042cf9726ddec3383e70 |
File details
Details for the file pylox-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: pylox-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b705b6553d83f84baa759a1d2432c2fe920a6a23593455fb0cadbaf801d41640 |
|
MD5 | 322f79002404f29abd58b1bae9ef117c |
|
BLAKE2b-256 | 6e3490b3971a190104c9cd49b4288b78435ca54f6e6f5fcb76e670c4e037f017 |