toyc
A toy compiler with Vulkan and OpenGL GPU backends, written in Python.
Install
pip install toyc
What's inside
- Lexer / Parser / AST — tokenizes and parses a simple toy language
- Evaluator — tree-walk interpreter
- VM — bytecode virtual machine
To do
- GPU backends — Vulkan and OpenGL compute backends via
toyc.gpu
Usage
from toyc import compiler
License
See LICENSE.
Metadata
Release files for toyc 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| toyc-0.1.2.tar.gz | 13.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| toyc-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.4 kB
Release files / toyc-0.1.2.tar.gz
| Download URL | toyc-0.1.2.tar.gz |
|---|---|
| Size | 13.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32c2b4a5fb7bdf99c33a3dab51be9dd12896b8b0ac0de98e55c1bd9c3a80d3be
|
|
BLAKE2b-256 checksum How to use checksums |
1a587b0511bdd66d6d4b9b0c6c6cb65b1024e66c42e5ea1123fbd294ac4f86d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / toyc-0.1.2-py3-none-any.whl
| Download URL | toyc-0.1.2-py3-none-any.whl |
|---|---|
| Size | 18.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed2e2479e875478603988ac9fccd2ab2e8d60573a17e2d96e28cd380110a90d5
|
|
BLAKE2b-256 checksum How to use checksums |
d9efd2e8d72b9c1d430f742cf959a9cef5c352651f430bd505dcb71c67d3a311
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|