Introduction
Chuchu is a small, statically typed programming language built in Rust. Its compiler, Cheeku, turns .chuchu source files into native executables through LLVM.
The language combines readable statements with inferred local types, explicit function signatures, and checked numerical operations.
assign greeting_number to 42
show greeting_number
Output
42
A small vocabulary
| You want to… | Write… |
|---|---|
| Declare a variable | assign count to 0 |
| Change its value | reassign count to count + 1 |
| Print a value | show count |
| Make a decision | if count > 0 { show count } |
| Repeat work | while count < 5 { reassign count to count + 1 } |
| Define a function | function double(x: int) -> int { return x * 2 } |
Choose a path
- New to Chuchu? Install Cheeku, then write your first program.
- Looking up syntax? Start with variables, types, or functions.
- Working with numbers? Explore arrays and built-in functions.
- Interested in the compiler? Read about architecture and optimization.
Early development
These docs describe the current 0.1 codebase. Chuchu is evolving, and syntax and APIs may change. The validated native environment is macOS on Apple Silicon. See language status for supported features and limits.
Chuchu and Cheeku
Chuchu is the language and the Rust library/package name (chuchu). Cheeku is the command-line compiler (cheeku). Compiling a program creates an executable; it does not run the program automatically.