Download Graphana - user manual

Transcript
Name
If-then-else
Syntax
if(Cond)
T henStmnt
[ else
ElseStmnt ]
Description
T henStmnt if Cond is true. Executes
ElseStmnt if it is given and Cond is false.
Executes
Returns:
•
Result of
•
T henStmnt
Cond
Undened if
if
Cond
is true
is false and no else is
given.
•
Result of
ElseStmnt
if
Cond
is false and
an else is given.
While loop
For loop
Vector
Vector access
Set
Try-catch
while(Cond)
Stmnt
for(Init;Cond;Iter)
Stmnt
(x1 ,x2 , ... xn )
Ide[i]
{x1 ,x2 , ... xn }
try
T ryStmnt
[catch(ErrIde)
CatchStmnt]
Executes
Stmnt as long as Cond (Boolean) is full-
lled.
Firstly executes
and
Iter
Init and then repeatedly Stmnt
Cond (Boolean) is fulllled.
as long as
Returns a vector with the given entries.
i-th entry
Ide. The rst entry is
is size(Ide)-1.
Returns the
of the (existing) vector
at
i=0.
The last entry
Returns a set containing the given values.
Executes
T ryStmnt.
If an error occurs, execu-
tion is aborted, the error is stored in
and
CatchStmnt
is executed.
ErrIde
Returns true if
and only if there was no error in the execution
of
T ryStmnt
Further information:
Graphana language is not case sensitive, but the identiers of vertices are.
•
The
•
Whitespaces can be inserted arbitrarily.
•
It is not possible to declare variables with the same identier as a prex keyword of the
syntax, an operation or a type.
•
Identiers must not start with a digit.
13