Using the Compiler Locally (Optional)
If you want to practice on your own machine, you can download and install the Cangjie SDK.
Save the code as a file with the .cj extension, such as hello.cj, then compile and run it using the cjc command:
cjc hello.cj -o hello && ./hello
cjc will compile the source file and generate an executable. The -o option specifies the output filename; when omitted, it defaults to generating a main file.
The code on the right demonstrates the standard program structure. You can create a file locally and try compiling it.
Note
All examples in this tutorial can be run directly in the browser; local installation is entirely optional.