Your First Program
// Hello world program
extern printf(i8*, ...) i32;
fn main() void {
printf("Hello, world!\n");
}
From this block of code, we can already deduce a lot about the general syntax of the language. X++ is heavily inspired by the syntax of both Rust and C.