Menu

Keywords

Laura Hermanns

Functional keywords

Keyword Description
stop Stops the program execution (calls "exit(0)").
import Imports a package (using namespace).
include Directly includes a file into the source code. This should not be used to import declaration header files.
ret Declares a return statement inside a function. If the function does not has the 'void' type denoter as return type, the 'ret' statement must be followed by an expression.
type Declares a template typename or a type definition, e.g. "class Test<type t=""> { ... }" or "type GLint := int".</type>
package Declares a package namespace, e.g. "package Video { ... }" or "package Video.Renderer.OpenGL { ... }".
static Declares a function or variable to be static.
if Declares a conditional block. Must be followed by a boolean expression.
elif Declares an alternative conditional block. Must be leaded by an 'if' block.
else Declares the default alternative block. Must be leaded by an 'elif' or 'if' block.
switch Declares a switch/case statement. Must be followed by at least one 'case' or a single 'def' statement.
case Declares a case block in a switch/case statement. The expression can be a constant- integral, boolean or string expression.
def Declares the default block in a switch/case statement.
loop Declares a loop. This can be a for-, for-each- or while loop.
do Declares a do-while loop. Must be followed by a command block and the closing 'loop' statement.
next Jumps to the next iteration in the current loop (continue) or to the next case block in a switch/case statement.
break Break out of a loop.
private Declares the following statements to be private (inside a class and the global scope).
public Declares the following statements to be public (inside a class and the global scope).
protect Declares the following statements to be protected (inside a class only).
class Declares a new class.
inherit Declares a class to inherit (public) for other classes, e.g. "class Test inherit Foo, Bar { ... }".
init Declares an initializer function inside a class (or rather a constructor).
release Declares the release function inside a class (or rather the destructor).
abstract Declares a class member function to be abstract (or rather pure virtual).
virtual Declares a class member function to be virtual. In that case, classes - which inherit from this class - may override the function (polymorphism).
this Returns a raw- or smart pointer depending on the l-value's type.
new Allocates a new managed memory object (smart pointer).
try Declares a try-catch block. Must be followed by at least one 'catch' block.
catch Declares a catch block.
throw Throws an exception.
enum Declares an enumeration.
flags Declares a flag enumeration. Its entries can only be initialized with a combination of other entries declared in this flag enumeration.

Literal keywords

Keyword Description
null Null pointer literal.
true Boolean literal.
false Boolean literal.

Type denoter keywords

Keyword Description
auto Auto type denoter. Automatically detects the type depending on a variables initializer.
void Void type denoter. Can only be used as function return type.
const Constant type denoter. Must be followed by a non-constant type denoter.
bool Boolean type denoter.
byte 8-bit signed integral type denoter.
ubyte 8-bit unsigned integral type denoter.
short 16-bit signed integral type denoter.
ushort 16-bit unsigned integral type denoter.
int 32-bit signed integral type denoter.
uint 32-bit unsigned integral type denoter.
dint 64-bit signed integral type denoter.
udint 64-bit unsigned integral type denoter.
float 32-bit floating point type denoter.
double 64-bit floating point type denoter.
quad 128-bit floating point type denoter.
string String type denoter in ASCII format.
wstring String type denoter in unicode format.

Special keywords

Keyword Description
once Declares the current source file to be included only once into the output program.
cpp Declares a block of 'inline C++ code'.

Reserved but no-functional keywords

Keyword Description
using None.
ptr None.
operator None.

Related

Wiki: Home

MongoDB Logo MongoDB