Metadata-Version: 2.4
Name: toyc
Version: 0.1.2
Summary: A toy compiler with GPU backends (Vulkan + OpenGL)
Author: spy1345a
License: MIT License
        
        Copyright (c) 2026 spy1345a
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
        associated documentation files (the "Software"), to deal in the Software without restriction, including
        without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
        following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial
        portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
        LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
        EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
        IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
        USE OR OTHER DEALINGS IN THE SOFTWARE.
        
Project-URL: Homepage, https://github.com/spy1345a/toyc-repo
Project-URL: Repository, https://github.com/spy1345a/toyc-repo
Keywords: compiler,gpu,vulkan,opengl,toy
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Compilers
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: pyopengl>=3.1
Requires-Dist: vulkan>=1.3.275.1
Provides-Extra: vulkan
Requires-Dist: vulkan; extra == "vulkan"
Provides-Extra: opengl
Requires-Dist: PyOpenGL; extra == "opengl"

# toyc

A toy compiler with Vulkan and OpenGL GPU backends, written in Python.

## Install

```bash
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

```python
from toyc import compiler


```

## License

See [LICENSE](toyc/LICENSE).
