Common Intermediate Language/Basic syntax

The syntax of CIL is similar to C-based languages and traditional assembly languages.

Statements
Statements are used to perform operations in CIL. Statements consist of an instruction with and any needed arguments after.

Blocks
Blocks are used to group elements and create bodies (e.g. method body). They are created by placing both an opening and closing curly-brace, with elements in between.

Comments
Comments are used to create inline documentation within the source code. Comments are ignored by the compiler and do not affect the resulting program. CIL has two types of comments:


 * Single-line comments : is used to create these comments, and anything after will be part of the comment until the end of the line.


 * Multi-line comments : These comments can be multiple lines long. These comments are started with and ended with ; Any text between will be ignored by the compiler.