if (this.index < this.text.length) {
try {
scan();
} catch (TableFunctionMalformedException e) {
// a sintax error here represents a statement other than an else statement
throw new NoDefaultDistributionDeclaredException(e);
}
} else {
// No statement was found at all (that means no else statement).
// Debug.println("END OF TABLE");
throw new NoDefaultDistributionDeclaredException();
}
if (token == 'l') {
// The else statement should be a child statement of the upper container,
// that means, it is on the same level of currently evaluated IF clause
else_statement(upperIf);
} else {
// The statement found was not an else statement
throw new NoDefaultDistributionDeclaredException();
}
// we may have another if/else clause after this...
}