- Declared in:
- LKLoop.h
AST node representing early loop termination.
If a label is specified, the LKLoop with the same label is ended. Otherwise, breaks out of the closest surrounding loop.
Return a new break statement with the given label.
- Declared in:
- LKLoop.h
AST node representing a skip to the next loop iteration.
If a label is specified, skips to the end of the LKLoop with the same label. Otherwise, does the same for the closest surrounding loop.
Return a new continue statement with the given label.
- Declared in:
- LKLoop.h
AST node representing a loop construct.
The loop may have pre- and post-conditions that will terminate the loop when evaluated to false, or one might rely on LKReturn or LKBreak to end the loop.
It is possible to set a list of statements that will be executed after each iteration, typically to increment a counter or similar. Initialization may be done from a statement list in this node as well.
Each LKLoop may be labelled to make it possible to break or continue outer loops when there are nested flows of control.
Return a new loop with the specified statements.
Initialise a new loop with the specified statements.
Return expression tested for truth after each loop iteration.
Return expression tested for truth before each loop iteration.
Set a label used for break or continue in nested loops.
Set expression tested for truth after each loop iteration.
Set expression tested for truth before each loop iteration.
Set the statements for the loop body.
Set the statements executed after each iteration of the loop.
Return the list of statements executed after each iteration of the loop.
Label used for break or continue in nested loops.
List of statements to initialize the loop.
Expression to be tested for truth after each loop iteration.
Expression to be tested for truth before each loop iteration.
List of statements in the loop body.
List of statements executed after each iteration of the loop.
- Declared in:
- LKLoop.h
Abstract superclass for LKBreak and LKContinue, implementing shared behavior.
Return string "break" or "continue" depending on type of control statement.
Initialise a new break or continue statement with the given label.