https://github.com/dccarter/cxy
https://github.com/dccarter/cxy
Last synced: 16 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dccarter/cxy
- Owner: dccarter
- Created: 2023-03-12T06:54:46.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-12-05T15:13:03.000Z (2 months ago)
- Last Synced: 2025-12-07T05:14:52.696Z (2 months ago)
- Language: C
- Size: 2.37 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Agents: AGENTS.md
Awesome Lists containing this project
- awesome-programming-languages - Cxy - Cxy is a statically typed programming language that is transpiled to C. Some of the feature supported by Cxy (Uncategorized / Uncategorized)
README
## `cxy`
**C-xy** (pronounced sexy) is a typed compiled programming language. `cxy` started as a compiler design learning
project and personal hobby project. The language references code from different languages in the www
### Playground
Try `cxy` on this [playground](https://cxy-lang.suilteam.io/)
```c
func main(args: [string]) {
for (const arg, _: args) {
println(arg)
}
}
```
### Key Language features
`cxy` supports most features that would be supported by most
object-oriented programming languages (see the `tests/lang` and
`src/cxy/stdlib` directories for some of the supported features)
* Rich syntax that is easy to grasp.
* Object-oriented with support for user defined value types (structs and tuples) and
reference types (classes).
* Interoperable with `c` programming language.
* Meta programming (generics and compile time evaluation).
* Reference counting memory management.
* Transpiles to readable `c` code.
* Comes with an LLVM backend (Deprecated)
#### Building
Requires `cmake` (any version greater that `3.16`), clang and LLVM. The following commands
should build the compiler binary `cxy` and an `stdlib` folder
```bash
mkdir build-dir
cd build-dir
cmake ..
make
```
#### Installation Script
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/dccarter/cxy/refs/heads/main/src/tools/download-cxy.sh)"
```