Plang uses a C-style syntax for statements, and a Prolog-style syntax for expressions (usually called terms). The simplest application is the traditional "Hello World":
:- import(stdout). main(Args) { stdout::writeln("Hello World!"); }
See the Hello World example for a more complex introduction to Plang's syntax.
The following sections describe the various aspects of the Plang syntax: