Difference between revisions of "A Recital Primer"

From Recital Documentation Wiki
Jump to: navigation, search
(Single line comments)
(Single line comments)
Line 12: Line 12:
 
The // command allows comment lines to be inserted in programs to enhance their readability and maintainability. The // command allows all characters following it on a line, to be treated as a comment and to be ignored by Recital. The // command can be placed anywhere on a line, even following an executable command.
 
The // command allows comment lines to be inserted in programs to enhance their readability and maintainability. The // command allows all characters following it on a line, to be treated as a comment and to be ignored by Recital. The // command can be placed anywhere on a line, even following an executable command.
  
<code lang="recital>
+
<code lang="recital">
 
// declare variables
 
// declare variables
 
private x,y,z
 
private x,y,z

Revision as of 00:39, 25 October 2009

A Recital Primer

Lexical Structure

Keywords

Lines and Indentation

Comments

Single line comments

The // command allows comment lines to be inserted in programs to enhance their readability and maintainability. The // command allows all characters following it on a line, to be treated as a comment and to be ignored by Recital. The // command can be placed anywhere on a line, even following an executable command.

// declare variables
private x,y,z

Multi line comments

The /* */ denote block comments. These can be inserted in programs to enhance their readability and maintainability.

The /* denotes the start of the comment block, the */ the end of the comment block.

All characters between the two comment block delimiters are treated as comments and ignored by Recital.

Data Types

Identifiers

Operators

Expressions

Statements

Control Flow

Looping

Functions

Defining a Function

Calling a Function

Classes

Libraries