The content on this page is written in Chinese, and then traslated into English by machine. More accurate traslations are welcome at: https://github.com/wa-lang/man/tree/master/en

Ending's law: "Any application that can be compiled to WebAssembly, will be compiled to WebAssembly eventually."

2. Program structure

Like other programming languages, a Wa-lang program is composed of many small parts. This chapter introduces global variable declarations, function declarations, constant declarations, import declarations, and type declarations.