Skip to content

dccarter/cxy

Repository files navigation

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 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

mkdir build-dir
cd build-dir
cmake ..
make

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages