The Cpyte programming language compiler
Project description
Check out the official documentation here.
Note: Version 1.6.1 had a critical division by zero error that wasn't caught.
Examples
You'll find comprehensive examples in the examples/ directory that cover C imports, header imports, 64-bit support, and standard library usage:
| File | Description |
|---|---|
examples/c_import_example.cpy |
Importing and calling functions from C source files |
examples/example_math.c |
C source with math utility functions for the C import example |
examples/h_import_example.cpy |
Importing functions declared in C header files |
examples/example_functions.h / example_functions.c |
Header and implementation for the H import example |
examples/64bit_example.cpy |
Comprehensive int64/uint64 arithmetic, hex literals, type promotion |
examples/c_library_imports.cpy |
Using built-in C libraries (stdio, stdlib, math, string, time) |
examples/mixed_features.cpy |
Combines C imports, H imports, 64-bit, structs, pointers, linked lists |
examples/mixed_helpers.c / mixed_helpers.h |
Supporting C/header files for the mixed features example |
You can also import .cpy files — the examples show how to use import "other.cpy" to bring in public functions and structs from other Cpy files.
Run any example with:
python source/mainpie.py --jit examples/<filename>.cpy
Note
Cpyte is experimental software. The compiler is continuously tested with fuzzing, and we're still discovering and fixing correctness bugs. While many programs compile and run correctly, I can't make any guarantees about correctness or stability.
If you decide to use Cpyte, always use the latest version — older versions have bugs that are pretty easy to run into.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cpyte-1.8.4.tar.gz.
File metadata
- Download URL: cpyte-1.8.4.tar.gz
- Upload date:
- Size: 80.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9674e0341d99ee1a1fb93c6f0d5e74fa00e788946150726c7c3dd9c8ea9a9eee
|
|
| MD5 |
9195a2dccd5c85be7b9aa2475dee0128
|
|
| BLAKE2b-256 |
380c725bcdf70ec75827b7c42877e93db2e45b60dd16d8b0291dbdd78f69555e
|
File details
Details for the file cpyte-1.8.4-py3-none-any.whl.
File metadata
- Download URL: cpyte-1.8.4-py3-none-any.whl
- Upload date:
- Size: 81.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e17a56adf6e7831f06ac52c5c25c1a36f8ba1dba0f7783ac80d921e3655964e4
|
|
| MD5 |
b7201339b8c53b2597348108aca31468
|
|
| BLAKE2b-256 |
2e2e806042bb157e41ba5b3c9c275ffa718e5e83009ffe77e2311929c8f9769b
|