Skip to main content

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:

  1. I want to learn about language design and implementation

  2. 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

  3. Python is my main language these days and I want to use something I’m most comfortable with

  4. 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.

  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylox-0.0.1.tar.gz (4.7 kB view details)

Uploaded Source

Built Distributions

pylox-0.0.1-py3.6.egg (9.9 kB view details)

Uploaded Source

pylox-0.0.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

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

Hashes for pylox-0.0.1.tar.gz
Algorithm Hash digest
SHA256 109a4511425c488c5d0a1619ae50a0126b84f2c6b5eb3dfba6e7be544675a3da
MD5 3cd792ab6311e2865a9d1d00b1ad75eb
BLAKE2b-256 9df40e2b8cbd85110fab94d51aa49fc87d6fa113faa1b6b5eed7ff0412445472

See more details on using hashes here.

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

Hashes for pylox-0.0.1-py3.6.egg
Algorithm Hash digest
SHA256 3871806a554a7b2c92292e5060eccea21eba3cc06de082ce754a53e472950f05
MD5 db6bf6d537e3633bf42dd074936cb5a4
BLAKE2b-256 2065d69a885160542d77b17c1c609053fa7fe1f88a85042cf9726ddec3383e70

See more details on using hashes here.

File details

Details for the file pylox-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pylox-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b705b6553d83f84baa759a1d2432c2fe920a6a23593455fb0cadbaf801d41640
MD5 322f79002404f29abd58b1bae9ef117c
BLAKE2b-256 6e3490b3971a190104c9cd49b4288b78435ca54f6e6f5fcb76e670c4e037f017

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page