README.md
January 25, 2026 ยท View on GitHub
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
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
cprogramming language. - Meta programming (generics and compile time evaluation).
- Reference counting memory management.
- Transpiles to readable
ccode. - 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
mkdir build-dir
cd build-dir
cmake ..
make
Installation Script
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/dccarter/cxy/refs/heads/main/src/tools/download-cxy.sh)"