Welcome!

Hello Weavers! This is the main documentation for the Cloth compiler project.

The Cloth compiler is the core of the Cloth programming language. Cloth is a modern, strongly-typed object-oriented language aimed at low level systems work with an upfront a high level type system. It feels somewhat familiar to C-style languages with inspirations taken from many languages, including C, C++, Java, Kotlin, and Go.

Cloth gives programmers explicit control over object lifetimes. References to an instance share its lifetime, and an owning list can take responsibility for deleting it. See Object ownership.

A class can define named states with their own payloads and methods. Each instance of that class has one active state at a time. See Named states.

Manuals

Contributing

Cloth welcomes contributions to the compiler and its documentation. Submit changes for review through a pull request. The terms for submitting contributions are set out in the project’s Apache License 2.0 with the LLVM exception.

View chapter on GitHub