Metadata-Version: 2.4
Name: cpyte
Version: 1.8.4
Summary: The Cpyte programming language compiler
Author: Hoang Duy Tung
License: MIT
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: llvmlite>=0.45
Requires-Dist: lsprotocol>=2025.0.0

Check out the official documentation [here](https://gitea.5gnew.io.vn/duytung/Cpyte/src/branch/main/source/cpyte/cpy_language_documentation.md).

**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:
```bash
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.
