Getting Started
This guide assumes jiang is installed and available on your PATH. If not, start with Installation.
Write a Program
Section titled “Write a Program”Create hello.jiang:
A Jiang function always has a return type. The process entry point is main; print writes 42 and a newline, while return 0 indicates success.
Compile to an Executable
Section titled “Compile to an Executable”Run it:
The program prints 42, then echo $? shows the exit status 0.
Install the VS Code extension for completion, hover documentation, and navigation.
Inspect LLVM IR
Section titled “Inspect LLVM IR”During language development it is often useful to inspect the generated LLVM IR:
Use -o to write the IR to a file:
Language Shape
Section titled “Language Shape”Jiang source is declaration-oriented. A small file usually contains type declarations, functions, and a main function:
Next, read the syntax overview and types guide.