Programming language Chora: Statements
Chora provides a rich set of program statements, you use to formulate the desired logic of a regular method, slot method, onget method or onset method. Using the statements you can implement loops, conditions, declare local variables, and much more. Following statements are available:
Statement |
Short description |
---|---|
Declare a local variable. |
|
Declare a local array. |
|
Iterate in a loop. |
|
Iterate in a loop. |
|
Iterate in a loop. |
|
Exit a for, while or do-while loop. |
|
Jump to the begin of a for, while or do-while loop. |
|
Control the program flow. |
|
Control the program flow. |
|
Fall through to the next clause in a switch statement. |
|
End the method execution. |
|
Send a signal to a slot. |
|
Post a signal to a slot. |
|
Post a signal to a slot. |
|
Raise an exception. |
|
Print debug output. |
|
Print debug output. |
|
Register an observer. |
|
De-register an observer. |
|
Notify registered observers. |
|
Execute a native code block |
|
Execute a block of statements. |
|
Do nothing (empty statement). |
|
Evaluate an expression. |