Skip to main content

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)

Source distribution for toyc 0.1.2
File Size Uploaded
toyc-0.1.2.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for toyc 0.1.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.4

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page