Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cpyte-1.8.3.tar.gz (80.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cpyte-1.8.3-py3-none-any.whl (81.2 kB view details)

Uploaded Python 3

File details

Details for the file cpyte-1.8.3.tar.gz.

File metadata

  • Download URL: cpyte-1.8.3.tar.gz
  • Upload date:
  • Size: 80.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for cpyte-1.8.3.tar.gz
Algorithm Hash digest
SHA256 8adef46e9d1f0ba6419d615fa6ad6b020a43e47f8ac07cc8857bb90b4511fe6c
MD5 7b4212f68fcea0cf25d7b27e9ce4c840
BLAKE2b-256 5f80f5f739edaa2346c238241375fe3d61ee22931d357551fdc60d46a31ed419

See more details on using hashes here.

File details

Details for the file cpyte-1.8.3-py3-none-any.whl.

File metadata

  • Download URL: cpyte-1.8.3-py3-none-any.whl
  • Upload date:
  • Size: 81.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for cpyte-1.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 10331be5b5a289309e16415fd4137081b8abd9155b6ca91c4f5e6cfac139ae65
MD5 210274a605bea6d07d614059d283160f
BLAKE2b-256 53a31b3297b3f6c554981d972c325722d15558e6e9fbca2ee4d8df4fe56f9501

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page