Basic Syntax

Summary
Statements are much like they are in any modern programming language.
Comments are a staple of good programming, and Rapture would be lacking without it’s own.

Statement Termination

Statements are much like they are in any modern programming language.  They encapsulate a single bit of programmatic ‘action’, be it a procedure call or a loop.  They are terminated by semicolons for single statements, and can be grouped using a pair of curly braces.

a = 1;
b = 2;
if( a = 1 )then { x = 1; y = 1; }

Comments

Comments are a staple of good programming, and Rapture would be lacking without it’s own.  Comments in Rapture are multi-line style with a “(*” beginning a block of comment text and “*)” terminating one.  It should be noted that comments are nestable, unlike those in C.  Let’s see an example:

(* This is a comment *)
(* This is a
multi-line
comment. *)
(* (* This is one comment that is
inside *) another one. *)

There are currently no single-line comment types (though this is likely to change in a future release of Rapture).