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
  • GPU backends — Vulkan and OpenGL compute backends via toyc.gpu

Usage

from toyc import compiler

# example usage here once you have a public API

License

See LICENSE.

Metadata

Release files for toyc 0.1.1

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.1
File Size Uploaded
toyc-0.1.1.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for toyc 0.1.1
File Interpreter ABI Platform
toyc-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 31.4 kB

Release files / toyc-0.1.1.tar.gz

Download URL toyc-0.1.1.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
77665474cc3c664b6d0c8264d1eb752c021a17b10fe9a072f998bbae71d2e7e1
BLAKE2b-256 checksum
How to use checksums
6f3fbca4093cd3a1160bf44856ee0822386ac9f5f541d3173761b4d86b838013
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

Release files / toyc-0.1.1-py3-none-any.whl

Download URL toyc-0.1.1-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3c45757c3311cd0ba996e18b146a693bec260c7b6c877a476916f4d66d6a849
BLAKE2b-256 checksum
How to use checksums
637c2913d3c75bedc496f3b4aa27188f6a10ceb51f918ab9ec97332574c4412f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.16

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

0.1.2

2 release files

This release

0.1.1 This release

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