repeatUntilLoopStmt method
Implementation
Stmt repeatUntilLoopStmt() {
final token = consume(TokenType.kRepeat, 'Expected "repeat" keyword.');
final body = bodyStmt(terminal: TokenType.kUntil);
consume(
TokenType.kUntil,
'Expected repeat-loop to terminate with "until" expression.',
);
final expr = math();
return RepeatUntilLoopStmt(token, untilExpr: expr, body: body);
}